Python is a dynamically and strongly typed programming language whose design philosophy emphasizes code readability. Two significantly different versions of Python (2 and 3) are in use. Please mention the version that you are using when asking a question about Python.

learn more… | top users | synonyms (2) | python jobs

0
votes
0answers
2 views

Update Python on Mac and Have RubyGems use the new version

I am having serious issues trying to download therubyracer gem. I think I have identified my problem, and that is that my I do not have a working libv8 library to create the Gem. I think the reason I ...
0
votes
0answers
4 views

Tkinter: background image problems

I'm working on a game for a competition and it's coming along pretty nicely so far. I made an image I want to use as a background, so I loaded and placed it the same as I did with the player image: ...
0
votes
0answers
5 views

Posting to Facebook App page wall as the App Page in python

I am trying make a post on my apps page wall as if it is coming from the app page (not another user) After researching I seem to find no solution that actually works! I have tried to follow the ...
0
votes
1answer
18 views

How would I make my page choose between getting data from a drop-down menu or a text-field?

thanks to some help from yesterday from stackoverflow, I've made progress in my code. But I have a question, concerning my page. Here is my code #!/usr/bin/python print 'Content-type: text/html\n' ...
0
votes
0answers
18 views

Closing windows explorer from python?

I have a script that opens the containing folder of a specified file, but I'd eventually want to do this in sequence, something like: <generate list of folders to open> for path in folderlist: ...
-2
votes
1answer
39 views

Why is there an error here? (very basic.. help) Language: Python [closed]

import random guess = int(raw_input("Enter guess(1-100): ")) number = random.randint(1,100) while True: if guess == number: print("Correct.") elif guess > number: print("Too ...
-4
votes
1answer
25 views

python 3.3.0 suddenly not executing a file

I have some scripts in python that have run with no issues up until yesterday. now suddenly I'm getting a syntax error on my print statements print(variableName) throws an invalid syntax error at ...
0
votes
0answers
6 views

wxPython - Optional Text Boxes

How can I add a TextCtrl area that will allow input only if a checkbox is ticked? Otherwise the TextCtrl area will be ignored.
0
votes
1answer
21 views

Switching BG using Python

I'm writing a simple program that changes my background when I run it. I'm trying to make it so that when I run it, it changes the background then when I run it again it goes to the next image in the ...
-1
votes
1answer
12 views

python and mysql.connector requires quoting of unsigned int

I'm using mysql connector 1.0.9. and Python 3.2 This query fails due to a syntax error: SELECT COUNT(*) FROM bad_ip_logins WHERE IP = %(IP)s AND DATE_SUB(NOW(), INTERVAL 1 HOUR) < accessed But ...
0
votes
0answers
6 views

Python: Using sympy.simplify with cplot (avoiding eval)

I'd like to avoid using eval() and replace it with sympy.simplify() like this from cmath import * import sympy from mpmath import arg, cplot cplot(lambda z: sympy.simplify("exp(sin(z))").evalf(), ...
0
votes
2answers
32 views

Random data for test automation in python

I am using unittest and selenium to automate my browser testing. How would I go about making a test which I can run multiple times, where a user creates a ticket. The ticket has to has a title name, ...
0
votes
0answers
7 views

Unable to run 2 different flask apps on same server

Here is my nginx config server { listen 80; server_name site.com; location / { include uwsgi_params; uwsgi_pass unix:/tmp/uwsgi.sock; uwsgi_param ...
0
votes
0answers
4 views

Useing Gtk.spinner with a long time function

I am trying to get working a gtk.spinner using Pygobject in python. The main thing is that I use this element to show the user that a long time action is in progress. The problem is that the spinner ...
0
votes
1answer
21 views

Urllib2 .read() hangs when accessing a .csv file from HTTP

I am trying to use urllib2 to access .csv files which are posted at a specific http address. The code that I am using worked ~1 month ago but now will hang sporadically on the .read() command. I've ...

1 2 3 4 5 12642
15 30 50 per page