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

python multiprocessing manager - shared list - connection reset by peer 104

One parent launch two process A, B with python multiprocessing that should run in parallel. Share two lists with Multiprocessing.Manager list_1 list_2 A write to list_1 that is passed as parameter ...
0
votes
0answers
5 views

delays in reading stdin with codecs

I'm trying to simply read from stdin using codecs using the code below import codecs ins = codecs.getreader('utf-8')(sys.stdin, 'replace') for l in ins: print l I have another script that ...
0
votes
0answers
6 views

difficulty using twitter api command implemention in python

No one seems to be able to answer my question and I can not find it in the other posts. Using twitter's api, I want to enter in a tweet id and return an array of all the users who retweeted that ...
0
votes
0answers
7 views

pyserial bluettoth working only at 9600 baudrate

I'm working on an arduino sending a sensor value on Serial. Everything works great by USB. But when we use the bluetooth module we can't go any further than 9600 baudrate. At more than 9600 baudrate ...
0
votes
0answers
6 views

Youtube Python API v3 call onBehalfOfContentOwner returns 403 error

I am trying to search my own videos doing search with parameter onBehalfOfContentOwner=MY_CONTENT_OWNER_ID but keep getting 403 Forbidden error. Private key is being used for authentication. ...
0
votes
4answers
29 views

check two values in list element python

Suppose I had a list where each list element was made up of three parts like: [[0, 0, 1], [0, 1, 0], [1, 0, 0], [0, 0, 2], [0, 1, 1], [0, 2, 0], [1, 0, 1], [1, 1, 0], [2, 0, 0], [0, 0, 3], [0, 1, 2], ...
1
vote
1answer
17 views

Why are some Python strings are printed with quotes and some are printed without quotes?

I have a problem with string representations. I am trying to print my object and I sometimes get single quotes in the output. Please help me to understand why it happens and how can I print out the ...
-1
votes
1answer
22 views

How to find the list of all the class name in a file in python?

I am currently writing a python script to display all name of all the python files in a package and also all the name of the class a file contains. scenario #A.py class apple: . . class ...
0
votes
2answers
46 views

Python : split a list dynamically

I have a list prodemployees that looks like this : ['prd1 employe4 employe2', ' prd2 employe2'] I need the values of this list to dynamically create the "where" statement of a query, I need the ...
1
vote
1answer
13 views

Using descriptor to access variable instead of binding this variable with the target in the instance

I have just been reading momoko docs, and came across the following class: class BaseHandler(RequestHandler): @property def db(self): return self.application.db Every time we want ...
0
votes
0answers
20 views

debug-toolbar spoiled my urls

I'm a newbie to Django and now i'm trying to make a simple webshop using it. Today i realized that i need some debug tool, so i've chosen django-debug-toolbar. I setup it just like it's explained here ...
0
votes
0answers
10 views

Is there a standard code for using the wx.FileDialog?

I wrote some simple python code to log the TextCtrls on my panel as they are updated. Now I need something on the UI, probably using wxFileDialog, for the user to do the usual "save as" thing: that ...
-1
votes
0answers
13 views

How can an Android device create a 3d anaglyph video stream?

How could I get my android device to produce a red/blue anaglyph video starting from side-by-side video and without using java? Is that feasible in python? Does it exist any suitable video/graphic ...
0
votes
1answer
13 views

Calling django's send_mail during testing

I have an app that imports a number of user email addresses and creates accounts for them. To have them set their own password, I tried to use django's PasswordResetForm (in ...
1
vote
1answer
45 views

Page not found (404 )

Error is : Page not found (404) Request Method: GET Request URL: 'http://127.0.0.1:8000/admin/' Using the URLconf defined in orangeowl.urls, Django tried these URL patterns, in this order: ...

1 2 3 4 5 13118
15 30 50 per page