Brian Quinlan <br...@sweetapp.com> added the comment:

Using a default executor could be dangerous because it could lead to deadlocks. 
For example:

mylib.py
--------

def my_func():
  tsubmit(...)
  tsubmit(...)
  tsubmit(somelib.some_func, ...)


somelib.py
----------

def some_func():
  tsubmit(...) # Potential deadlock if no more free threads.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue23697>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to