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
8 views

multiprocessing.Pool.imap_unordered hangs in Python 2.6?

Following script hangs when running with Python 2.6.7. It prints [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] as expected in Python 2.7. Could it be a bug in Python 2.6? Are there any workaround? def p1(x): ...
0
votes
0answers
2 views

FANN Python Bindings Failing

I just built and installed libfann and the associated python bindings. The python setup seemed to run ok: $ sudo python setup.py install Running SWIG before: swig -c++ -python pyfann/pyfann.i ...
0
votes
0answers
2 views

Is there a way to provide an external WSDL file to a Python Suds client

I am working with a SOAP service where the project provides an external WSDL file. I am using Python + Suds to connect to the service. I run into issues because the (https) service URL looks like: ...
0
votes
1answer
8 views

sqlite 3 column does not exist, even when it's been created

I've created a table inside a database, with a column called 'recipeName'. After committing the newly created table to the database, it comes up with this error: OperationalError: table recipes ...
0
votes
0answers
25 views

having trouble understanding this code

I just started learning recursion and I have an assignment to write a program that tells the nesting depth of a list. Well, I browsed around and found working code to do this, but I'm still having ...
0
votes
1answer
4 views

Do you need python to run a python gtk/pyQt application?

I am considering porting what is a small application from a JavaScript bookmarklet for work to a python GTK application. However, while people can run my bookmarklet on either Chrome or Firefox, I ...
0
votes
0answers
5 views

MessageMiddleware won't allow me to add messages

I am upgrading a django 1.3 installation to django 1.5. I encountered an error message while trying to save a record in the standard django admin interface. You cannot add messages without ...
0
votes
0answers
11 views

Search for files by name in multiple directories?

OK so here's my problem. I work out of two directories and all of the sub folders in the directories while at work. I want to write a program that will prompt me for a file name, after the file name ...
0
votes
0answers
10 views

Deleting a range of csv columns

I am trying to create an importable module to delete a range of columns (specifically columns 73-177 in the file I am working with).I am attempting to edit this file i/o code that is written for ...
0
votes
0answers
8 views

Daemonize, making program to work in background in python/wx.python

I created an complete logger-type program, that logs the certain data from the internet sources. It's GUI I coded in wx.python, now I want to daemonize it (if it is the right term). The program needs ...
0
votes
3answers
17 views

Python workout unit cost based on range

I want to work work out unit cost based on the units passed. So for example 0-499 = unit cost of 0.049 500-999 = unit cost of 0.050 999+ = unit cost of 0.060 This is what I have tried so far: ...
1
vote
3answers
33 views

Make list of X and Y coordinates

I have the following list: Filedata: [1, 0, 0, 0] [2, 0, 0, 100] [3, 0, 0, 200] [4, 100, 0, 0] [5, 100, 0, 100] [6, 100, 0, 200] ... where the first column is an ID, the second is the X coordinate, ...
1
vote
2answers
33 views

Counting ALL the difference in 2 dictionaries and displaying them all

Suppose I have 2 dictionaries: A = {'banana':10, 'apple':2, 'pear':5, 'orange':3} B = {'banana':7, 'orange':5, 'strawberry':4, 'blueberry':1, 'kiwi':10} Now, I need to print all the difference ...
1
vote
3answers
36 views

calling python from C using system( ) call in linux

I am calling python program from C code using system( ) call inside a linux machine. Lets say the first call to python program reads first 10 lines of some text file by opening the text file and ...
0
votes
0answers
15 views

Sending an integer from Python to Visual C++

Is there an easy way, or a code snippet that would help me do a simple integer passing between C++ and Python? Both classes are in the same machine. I read about sockets and IPCs but when I see the ...

1 2 3 4 5 12157
15 30 50 per page