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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 19,921
» Latest member: Dev
» Forum threads: 38,719
» Forum posts: 175,489

Full Statistics

Online Users
There are currently 33 online users.
» 1 Member(s) | 28 Guest(s)
Bing, AOL, Google, AOL, JMcM

Latest Threads
New to Python and Pygame
Forum: Game Development
Last Post: JMcM
2 minutes ago
» Replies: 7
» Views: 1,488
Python Installation issue
Forum: News and Discussions
Last Post: Dev
11 minutes ago
» Replies: 4
» Views: 15,416
New to the field
Forum: News and Discussions
Last Post: Larz60+
3 hours ago
» Replies: 1
» Views: 179
Too much space between gr...
Forum: GUI
Last Post: deanhystad
8 hours ago
» Replies: 1
» Views: 183
data input while debuggin...
Forum: General Coding Help
Last Post: Pedroski55
11 hours ago
» Replies: 1
» Views: 199
Select Python comment (#)...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 01:34 PM
» Replies: 5
» Views: 501
I'm trying to make a piec...
Forum: General Coding Help
Last Post: MilesWeb
Yesterday, 06:11 AM
» Replies: 5
» Views: 1,290
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Stowersw
Sep-12-2025, 03:23 PM
» Replies: 4
» Views: 2,332
Python and excel vba codi...
Forum: General Coding Help
Last Post: DeaD_EyE
Sep-12-2025, 11:09 AM
» Replies: 2
» Views: 995
Web Scrapper to find prov...
Forum: General Coding Help
Last Post: Olivia
Sep-12-2025, 08:36 AM
» Replies: 1
» Views: 2,254

 
  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
  New to Python and Pygame 2 minutes ago JMcM JMcM Game Developm...
  Python Installation issue 11 minutes ago RFHill Dev News and Disc...
  New to the field 3 hours ago Polybunny Larz60+ News and Disc...
  [Tkinter] Too much space ... 8 hours ago RonR deanhystad GUI
  data input while debuggin... 11 hours ago fred1232 Pedroski55 General Codin...
  Select Python comment (#)... Yesterday, 13:34 SpongeB0B snippsat General Codin...
  I'm trying to make a piec... Yesterday, 06:11 Alislugacool MilesWeb General Codin...
  Seeking feedback: dynamic... 09-12, 15:23 Bona2000 Stowersw General Codin...
  Python and excel vba codi... 09-12, 11:09 odiez DeaD_EyE General Codin...
  Web Scrapper to find prov... 09-12, 08:36 physalis2099 Olivia General Codin...
  403 Error 09-11, 20:39 CaptainNewb snippsat Web Scraping ...
Most views
  The best Prog... 575501
  Tutorial Requ... 496450
  Web Scraping ... 439601
  Newbie with P... 383202
  New Users Int... 364160
Most reputation
buran 581
snippsat 508
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12087
buran 8174
snippsat 7366
deanhystad 6892
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Dev Today
RonR Yesterday
SofiaAnatolie Yesterday
Erikventura Yesterday
aidajnrz7704 Yesterday

User Panel Messages

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