[issue11635] concurrent.futures uses polling

Antoine Pitrou report at bugs.python.org
Wed Mar 23 21:04:24 CET 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

> Sorry, I didn't read an error message very carefully. When I apply your patch I see:
> 
> >>> from concurrent.futures import *
> >>> from time import *
> >>> t = ThreadPoolExecutor(5)
> >>> t.submit(sleep, 100)
> <Future at 0x8acc94c state=running>
> >>> <ctrl-D>
> Error in atexit._run_exitfuncs:
> NameError: global name 'thread' is not defined
> 
> Does that not happen in your environment?

Ah, thank you, it does happen here too. I should fix the error (a typo)
and add tests for this too.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11635>
_______________________________________


More information about the Python-bugs-list mailing list