A new Help Vampire? (was Re: (too many threads)

2014-11-13 Thread Terry Reedy
On 11/13/2014 7:51 PM, satishmlm...@gmail.com wrote: in 4 different threads How to get file descriptors of sys.stdin, sys.stdout and sys.stderr? fileno() in not supported. Is it only in 3.1? What is the workaround? > io.UnsupportedOperation: fileno > How to give a file descriptor number to this

Re: Too many threads

2010-09-17 Thread mark . pelletier
On Sep 17, 1:38 am, Ned Deily wrote: > In article <20100917052259.ga28...@cskk.homeip.net>, >  Cameron Simpson wrote: > > > > > > > On 16Sep2010 22:14, Ned Deily wrote: > > | In article <20100917043826.ga21...@cskk.homeip.net>, > > |  Cameron Simpson wrote: > > | > > | > On 16Sep2010 09:55, mar

Re: Too many threads

2010-09-16 Thread Ned Deily
In article <20100917052259.ga28...@cskk.homeip.net>, Cameron Simpson wrote: > On 16Sep2010 22:14, Ned Deily wrote: > | In article <20100917043826.ga21...@cskk.homeip.net>, > | Cameron Simpson wrote: > | > | > On 16Sep2010 09:55, mark.pellet...@asrcms.com > | > wrote: > | > | For some reason

Re: Too many threads

2010-09-16 Thread Cameron Simpson
On 16Sep2010 22:14, Ned Deily wrote: | In article <20100917043826.ga21...@cskk.homeip.net>, | Cameron Simpson wrote: | | > On 16Sep2010 09:55, mark.pellet...@asrcms.com | > wrote: | > | For some reason, the tasks I put into my thread pool occasionally get | > | run more than once. | > | | >

Re: Too many threads

2010-09-16 Thread Ned Deily
In article <20100917043826.ga21...@cskk.homeip.net>, Cameron Simpson wrote: > On 16Sep2010 09:55, mark.pellet...@asrcms.com > wrote: > | For some reason, the tasks I put into my thread pool occasionally get > | run more than once. > | > | Here's the code: > > You need to post your _exact_ co

Re: Too many threads

2010-09-16 Thread Cameron Simpson
On 16Sep2010 09:55, mark.pellet...@asrcms.com wrote: | For some reason, the tasks I put into my thread pool occasionally get | run more than once. | | Here's the code: You need to post your _exact_ code. I had to change: from queue import Queue into from Queue import Queue So: _do_ you have

Too many threads

2010-09-16 Thread mark . pelletier
For some reason, the tasks I put into my thread pool occasionally get run more than once. Here's the code: # --- from threading import Thread from queue import Queue import subprocess