Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 20,399
» Latest member: asauellittle8716
» Forum threads: 38,825
» Forum posts: 176,029

Full Statistics

Online Users
There are currently 29 online users.
» 0 Member(s) | 24 Guest(s)
Google, Bing, Apple, Mojeek

Latest Threads
What Happens At The End O...
Forum: General Coding Help
Last Post: asauellittle8716
23 minutes ago
» Replies: 0
» Views: 5
Opencv findContours Q
Forum: General Coding Help
Last Post: Pedroski55
23 minutes ago
» Replies: 1
» Views: 27
Погрузитесь в ясность аза...
Forum: General Coding Help
Last Post: luisfrancesz3208
29 minutes ago
» Replies: 0
» Views: 9
Struggles I Faced While E...
Forum: Code Review
Last Post: padma121
Yesterday, 09:12 AM
» Replies: 1
» Views: 4,586
Willing to pay for help w...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 08:37 AM
» Replies: 4
» Views: 174
Create dataframe from the...
Forum: Data Science
Last Post: OtiliaGen
Yesterday, 07:27 AM
» Replies: 7
» Views: 3,593
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
Dec-27-2025, 06:21 PM
» Replies: 1
» Views: 141
Calling python from anoth...
Forum: General Coding Help
Last Post: eedjsa
Dec-27-2025, 04:06 PM
» Replies: 9
» Views: 288
IP address for users
Forum: Networking
Last Post: itx_sumeet
Dec-27-2025, 05:53 AM
» Replies: 4
» Views: 7,105
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Pedroski55
Dec-27-2025, 01:10 AM
» Replies: 5
» Views: 9,954

 
  urlib2 issues
Posted by: Skaperen - Dec-29-2016, 07:03 AM - Forum: Web Scraping & Web Development - Replies (13)

is urllib2 a good choice for getting website contents? it is used in that code i posted regarding catchin IOError failing. it gets ..... More

Print this item

  exception not caught in my filetopystr.py
Posted by: Skaperen - Dec-29-2016, 06:07 AM - Forum: General Coding Help - Replies (8)

i have the call to main() wrapped to catch IOError (line 156 in the code below) so the output can be stopped in a POSIX/Unix/Linux comma..... More

Print this item

  read/print from file
Posted by: mcmxl22 - Dec-29-2016, 03:03 AM - Forum: General Coding Help - Replies (8)

I am trying to print a file based on this tutorial, (basic)files, and some other suggestions I fo..... More

Print this item

  Writing many variables to a file
Posted by: birdieman - Dec-28-2016, 10:09 PM - Forum: General Coding Help - Replies (3)

I am still a beginner to Python and have the following code to write about 14 variables to a file:
[python]


f.write('{} {} {} {} {} {} {} {} {} ..... More

Print this item

  Humble Bundle Game development offer
Posted by: Larz60+ - Dec-28-2016, 05:44 PM - Forum: News and Discussions - Replies (19)

Hey -

Humble Bundle has a year end game offer - $10 for the following
game ..... More

Print this item

  Car dashboard with TKinter
Posted by: TMJJ - Dec-28-2016, 03:06 PM - Forum: GUI - Replies (1)

Hi,

I want to program a car dashboard in python which will be shown on a touchscreen connected to a raspberry pi. 
I will be able to read speed, r..... More

Print this item

  Bokeh - dynamic update widget.Select values
Posted by: sixteenornumber - Dec-28-2016, 02:15 PM - Forum: GUI - No Replies

I'm using a Bokeh Select widget, from bokeh.models.widgets import Select which is essentially a dropdown on a web page. eg: ..... More

Print this item

  Sorting File
Posted by: iainstott - Dec-28-2016, 12:53 PM - Forum: General Coding Help - Replies (2)

Hi guys, hope everyone had a good xmas. 
I'm currently working on a script to sort an m3u file into a specific channel order. It's working to a degre..... More

Print this item

  Mouse.get_pressed() Overlapping Buttons
Posted by: KHendrikson - Dec-28-2016, 09:04 AM - Forum: Game Development - Replies (5)

Hi there.

I'm having trouble creating various menus with Pygame, since some of the menu buttons, although on different menu screens, share the same..... More

Print this item

  Wiindows 10 is Linux?
Posted by: wavic - Dec-28-2016, 07:15 AM - Forum: Bar - Replies (2)

Have you guys seen this? I'll not be surprised if it's true  Big Grin

Print this item

  modulo and order of operations
Posted by: freakbot - Dec-28-2016, 04:29 AM - Forum: General Coding Help - Replies (4)

I'm using 2.7.X
Working with the following:

print 100 - 25 * 3 % 4
When i run this i get 97 as the answer.

It seems like it I s..... More

Print this item

  empty lines
Posted by: Skaperen - Dec-28-2016, 03:17 AM - Forum: Board - Replies (10)

i am periodically and recently frequently seeing empty lines added to my posts. they are usually added to inserted code, but i have also seen them in ..... More

Print this item

  Python 3.5.2-bit install SNAFU
Posted by: Orthoducks - Dec-28-2016, 01:00 AM - Forum: General Coding Help - Replies (7)

My current "production" version of Python is the 64-bit version of release 2.7 under Windows 7. I'm trying to install the 64-bit version of release 3...... More

Print this item

  Change type of elements in a list by column
Posted by: tkj80 - Dec-28-2016, 12:04 AM - Forum: General Coding Help - Replies (7)

Hi,

say I have the following list:

myList = [['john', '1', '2:00pm'], ['becky', '2', '3:15pm'], ['tom', '3', '3:20pm']]

the type of every ele..... More

Print this item

  calling an object variable in a dictionary
Posted by: sunhear - Dec-27-2016, 09:50 PM - Forum: General Coding Help - Replies (3)

my code in python 2.7 is:
[python]
class char(object):
    'chactors'
 
    #Create instances of object 
    def __init__(self,name,d):
       ..... More

Print this item

  printing to a printer vs the screen
Posted by: birdieman - Dec-27-2016, 05:33 PM - Forum: General Coding Help - Replies (4)

As a beginner, I have searched this forum (though I may not be doing it right) and the internet to find out how to print to my printer vs a print comm..... More

Print this item

  Are there Bokeh users on this forum?
Posted by: sixteenornumber - Dec-27-2016, 03:08 PM - Forum: GUI - Replies (4)

Does anyone on this forum use Bokeh?

Print this item

  completed module: validip.py
Posted by: Skaperen - Dec-27-2016, 10:14 AM - Forum: Code sharing - Replies (8)

this module is also usable as a command to check if an IP address is valid.  given just one IP address, it is silent but sets the exit c..... More

Print this item

  Problems with moving from 3.5 to 3.6
Posted by: Hellerick - Dec-27-2016, 09:35 AM - Forum: Web Scraping & Web Development - Replies (7)

So I have Ubuntu and I wanted to try Python 3.6, so I installed it using "apt altinstall" command.

After playing around with it, I decided to see h..... More

Print this item

  why is this variable not printing out properly?
Posted by: dursland - Dec-27-2016, 07:00 AM - Forum: General Coding Help - Replies (11)

Using python3 and am new - learning via introtopython.org and I'm having a problem.

[code]var1 = (2+2)

print('The result of all calculations is ..... More

Print this item

  reading from two or more pipes
Posted by: Skaperen - Dec-27-2016, 04:50 AM - Forum: General Coding Help - Replies (2)

i got some example code online that showed me how to read from a pipe without using .communicate() which waits for the child process to exit, which ma..... More

Print this item

  rounding locale.currency
Posted by: birdieman - Dec-27-2016, 01:13 AM - Forum: General Coding Help - Replies (8)

I am new to python and barely know anything, but learned how to import "locale.currency" (from a suggestion to one of my other threads) to deal with f..... More

Print this item

  Python 3.6.0 PyLauncher Installation on Windows 10
Posted by: twv - Dec-26-2016, 07:13 PM - Forum: General Coding Help - Replies (6)

I just installed 3.6.0 (64-bit) on Win 10. I don't install to the default location, but to C:/Apps/Python36. Double-clicking on a .py or .pyw script r..... More

Print this item

  datetime unexpected result
Posted by: PickyBiker - Dec-26-2016, 05:49 PM - Forum: General Coding Help - Replies (10)

I am getting the UTC time from the following in my code and I thought it would bring back the local hour. 
At a Python prompt [color=#000000][size=sm..... More

Print this item

  What can I do with _winreg ?
Posted by: sixteenornumber - Dec-26-2016, 02:35 PM - Forum: General Coding Help - Replies (2)

I came across the module _winreg in 2.7.13 docs this morning.  I'm not very familiar with the windows registry.  How could this module be useful in ..... More

Print this item

  how to recreate akinator in python?
Posted by: hsunteik - Dec-26-2016, 08:33 AM - Forum: General Coding Help - Replies (8)

akinator is a mind reading app that guesses your character after asking 10 to 30 questions(90 to 99% accurate)

But how does it work?

besides that,i ..... More

Print this item

  Django Templates
Posted by: zero_shubh0 - Dec-26-2016, 07:09 AM - Forum: Web Scraping & Web Development - Replies (1)

http://imgur.com/a/xSyl0
..... More

Print this item

  filetostr - convert a file to a string in python code
Posted by: Skaperen - Dec-26-2016, 05:45 AM - Forum: Code sharing - Replies (1)

the script/program/command converts a file to a string ready to insert into python code.  it supports specified indentation, maximum code width and an..... More

Print this item

  splitting a string by 2 characters
Posted by: Skaperen - Dec-26-2016, 05:25 AM - Forum: General Coding Help - Replies (8)

i want to split a string at each place where 2 different characters might appear.

'some text<some tag>more text'.split2('<','>')

--> [u][..... More

Print this item

  Develop on Mac and run on Raspberry Pi?
Posted by: Triton318 - Dec-26-2016, 12:41 AM - Forum: General Coding Help - Replies (1)

Hello. I'm new to Python and basically new to programming. (I did some JavaScript, Cold Fusion, and basic SQL many years ago.)

I am going to be buy..... More

Print this item

  Python .json problem with UTF-8 file
Posted by: PickyBiker - Dec-25-2016, 10:53 PM - Forum: General Coding Help - Replies (5)

When my program tries to deserialize a .json file, it chokes on the UTF-8 designation (EF BB BF) at the beginning of the .json file. 
The error is: "..... More

Print this item

  ISO working example of opening a Microsoft Word document through PyWin32
Posted by: Orthoducks - Dec-25-2016, 09:45 PM - Forum: General Coding Help - Replies (1)

I want to write a Python application that uses the PyWin32 library to manipulate Microsoft Word documents. Does anyone know a working example of that?..... More

Print this item

  Python 3.5 Instantiate and manipulate object with multiprocessing
Posted by: jipete - Dec-25-2016, 04:41 PM - Forum: General Coding Help - Replies (1)

Hello, I am looking for a solution to be able to instantiate an object that will exploit another heart of cpu all by manipulating it from another proc..... More

Print this item

  No new computer for Christmas?
Posted by: sparkz_alot - Dec-25-2016, 02:14 PM - Forum: Bar - Replies (6)

If you are like me, and Santa didn't bring you a new computer, here is an almost next best thing from the folks at Raspberry Pi.

..... More

Print this item

  python 3.5 windows 10 how to run exe
Posted by: jipete - Dec-25-2016, 12:37 PM - Forum: General Coding Help - Replies (2)

Hello, I would like to make a script in python that clones VMWare virtual machines by running the executable vmrun.exe, but I do not know how to do, I..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  What Happens At The End O... 23 minutes ago asauellittle8716 asauellittle8716 General Codin...
  Opencv findContours Q 23 minutes ago jogl Pedroski55 General Codin...
  Погрузитесь в ясность аза... 29 minutes ago luisfrancesz3208 luisfrancesz3208 General Codin...
  Struggles I Faced While E... Yesterday, 09:12 baffa_dbt padma121 Code Review
  Willing to pay for help w... Yesterday, 08:37 braillescribe noisefloor General Codin...
  Create dataframe from the... Yesterday, 07:27 Calab OtiliaGen Data Science
  How to Integrate External... 12-27, 18:21 finallen321 noisefloor General Codin...
  Calling python from anoth... 12-27, 16:06 eedjsa eedjsa General Codin...
  IP address for users 12-27, 05:53 Robots itx_sumeet Networking
  Lottery generator (beginn... 12-27, 01:10 Hullari Pedroski55 General Codin...
  [split] How to ask Smart ... 12-25, 07:58 yoanselcp Pedroski55 General Codin...
Most views
  The best Prog... 580410
  Tutorial Requ... 519511
  Web Scraping ... 442785
  Newbie with P... 386984
  New Users Int... 386504
Most reputation
buran 581
snippsat 511
Larz60+ 452
Gribouillis 362
deanhystad 328
Most replies
  New Users Int... 452
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12117
buran 8198
snippsat 7398
deanhystad 6920
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
asauellittle8716 Today
luisfrancesz3208 Today
MaxTranslate Yesterday
pizofreude Yesterday
RockHound_Z12 Yesterday

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020