Python is a dynamically and strongly typed programming language, used for developing a wide range of applications. The philosophy of Python is succinctly formulated in The Zen of Python (author: Tim Peters), which can be revealed by issuing this command at the interactive interpreter: >>> ...

learn more… | top users | synonyms | python jobs

-2
votes
0answers
16 views

TypeError: cannot concatenate 'str' and 'tuple' objects

Can some please help me to correct the syntax? option_dict['ab_list'] += "bsiInputOption.selectedproduct.ti = true","bsiInputOption.selectedproduct.gi = true" [exec] TypeError: cannot concatenate ...
-1
votes
0answers
5 views

Server and Client Socket Programing in Python

Can anyone please kindly explain me these two programs of serer and client socket programing ? Both the programs are working very fine but the problem is that i don't understand what is happening ...
0
votes
0answers
29 views

Why do NumPy and SciPy have a lot of the same functions? Which should I prefer?

For instance, NumPy has window functions bartlett, blackman, hamming, hanning, kaiser, while SciPy has these and several more, but they seem to produce identical output. NumPy has numpy.fft.fft2(a, ...
0
votes
1answer
6 views

QWheelEvent.ignore() not passing event through?

In a subclass of QGraphicsView, I implemented the wheelEvent(event) event-handler as follow: def wheelEvent(self, event): print "Wheel event received" event.ignore() From what I ...
0
votes
0answers
8 views

flip order of ndarray in cython for opencv - OpenCV Error

Apologies for the length of the post... I am using cython to wrap some cpp code for image processing. On return of my processed image which is in 32-bit ARGB mode - i.e. a 32-bit uint where r = ...
0
votes
0answers
17 views

Background music in python

I'm making a game where you're a space shuttle evading oncoming meteors, this is my first Python program and I really struggle with the music part: the idea is to only use wxPython (pyGame is ...
1
vote
2answers
12 views

Build query string using urlencode python

I am trying to build a url so that I can send a get request to it using urllib module. Let's suppose my final_url should be url = ...
1
vote
2answers
37 views

Python3.2 can not recognize UP/DOWN/LEFT/RIGHT keys in interpreter?

I am using ubuntu, linux kernel 2.6.38. I usually use python2, today, I decide to try Python3. I downloads python3 and make install it following the README. However,the python 3.2 interpreter can not ...
0
votes
3answers
33 views

Python IDE or module which caches results?

I am working with a few corpora included in nltk-data from nltk to figure out certain algorithms. So my code would generally be something of the style: import re, nltk, random from nltk.corpus ...
0
votes
0answers
16 views

Fetching a webpage using webkit, and with cookie in Python

I wonder, just as the title says, can I fetch a webpage using webkit in python and with my own cookie? webview = webkit.WebView() webview.connect( 'load-finished', lambda v,f: gtk.main_quit() ) ...
0
votes
1answer
31 views

search engine ideas for description of results

I am making a search engine for full text search, and i have a problem in performance when displaying results with description. I made the results for the current query, but the lack of performance is ...
0
votes
1answer
42 views

Python KeyError: '0' on printing a dictionary value

File "F:\ake\pa\th\help.py", line 268, in main print type(outputs[x]) KeyError: '0' My file is quite large, so these are the places outputs is seen, in order of how they should be executed: ...
0
votes
0answers
11 views

IronPython Compiling error

I made a simple WPF application using IronPython and tried compiling it using pyc.py. The compiled program never ran. Could not find WPF would be shown while I would try to run it. I searcherd a lot ...
0
votes
0answers
10 views

OpenCV Python Sample Error

I'm trying to run one of the samples included in opencv: find_obj.py. OpenCV version: 2.4 OS: ArchLinx There is an error at the fuction: flann = cv2.flann_Index(desc2, flann_params) The error is: ...
0
votes
2answers
27 views

Python IDLE miscoloring with “print” statement

You'll notice in this image the two print statements are different colours. It doesn't really matter a great deal, I'm not really bothered, but I thought it would be nice to know why, or if this is ...

1 2 3 4 5 7355
15 30 50 per page