1
vote
2answers
34 views

Python threading questions

I have something like the following: d = {...} #a dictionary with strings l1 = [...] #a list with stuff l2 = [...] #a list with numbers ... for i in l1: for key in l2: #do some stuff ...
2
votes
2answers
56 views

Faking an insertion in Python Queue

I'm using a Queue in python, and it works something like a channel. That is, whenever you make an insertion, some other thread is waiting and fetches the inserted value. That value is then yield. ...
0
votes
0answers
21 views

Python program misbehavior when spawning processes from a py2exe file

My dad is working on a program that, among others, needs to ping a machine. It is multithreaded and he built a ping method that's be called from any one of the threads, when needed: def ping_cmd(ip): ...
0
votes
1answer
29 views

python parallelism for uploading files

my problem is the following : my application needs to upload multiple files simultaneously to S3 using the Boto library in python. I've worked out 2 solutions, but I'm not sure of the implications of ...
0
votes
3answers
51 views

Command line multithreading

I am writing a simple command-line program that shows the current time and let user set the alarm. However, the alarm did not ring as the raw_input was blocking it. I have even implement ...
0
votes
0answers
31 views

Concurrency and flask

First of all what I describe below probably isn't efficient, but it's just for self learning. Anyway, I'm using a producer and consumer threads to get data from an API. I plan on using Flask to ...
1
vote
0answers
27 views

In Python, does DummyThread uniquely identify the current thread?

Edit: by multithreading, I mean I've set threadsafe: true in my app.yaml, not that I am trying to create my own threads. I've been trying to use multithreading in my GoogleAppEngine Python ...
4
votes
3answers
39 views

What is the best way to download <very large> number of pages from a list of urls?

I have a >100,000 urls (different domains) in a list that I want to download and save in a database for further processing and tinkering. Would it be wise to use scrapy instead of python's ...
1
vote
2answers
66 views

Segmentation fault in python?

I'm creating GUI using gtk3. So that the GUI and operation works together, I make a thread with this code: threading.Thread(target=function).start(). Without threading, everything works well, but the ...
0
votes
1answer
17 views

PyQt GUI control access from another thread

i'm trying to create an client server application in python. When the server closes i wish the gui of the client wich is on a separate thread to close, but the application crushes with Xlib error: bad ...
0
votes
2answers
46 views

Python: How to use threads in network?

I am trying to make a program that will search random ids for site titles. I made a one threaded function but it is super slow because it has to wait for timeout if there is no server at random ip. I ...
0
votes
3answers
46 views

Adding the ability for a python Thread to report when finished

I am currently subclassing python's threading.Thread class in order to add additional logging features to it. At the moment I am trying to get it to report both when the thread is started, and when ...
0
votes
2answers
52 views

How to do background task in gtk3-python?

I have this main thread: Gui.py from gi.repository import Gtk, Gdk import Process import gobject class gui(): def __init__(self): self.window = Gtk.Window() ...
2
votes
2answers
45 views

Python logging from multiple threads

I have a log.py module, that is used in multiple at least two other modules (server.py and device.py). It has these globals: fileLogger = logging.getLogger() fileLogger.setLevel(logging.DEBUG) ...
1
vote
2answers
55 views

Calculation of Pi with multiple threads( no acceleration - what to do )

I'm trying to calculate pi with arbitrary precision on Python using one of Ramanujan's formulas: http://en.wikipedia.org/wiki/Approximations_of_%CF%80#20th_century. It basically requires lots of ...

1 2 3 4 5 154
15 30 50 per page