Serhiy Storchaka added the comment: Here is a patch that copies only used part of the block.
I don't see an actual bug in patch 2 besides that it fallbacks to current popping behavior. ---------- Added file: http://bugs.python.org/file40572/deque_nonreentrant_clear4.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25135> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com