Antoine Pitrou added the comment: A possible solution is to tweak the IO lock acquire on shutdown: only wait for a grace period instead of waiting indefinitely. Attached patch demonstrates the solution (and solves the deadlock issue in your script).
---------- keywords: +patch nosy: +neologix stage: -> patch review Added file: http://bugs.python.org/file38391/bufio_lock_finalizing.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23309> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com