[issue23209] asyncio: break some cycles

Martin Richard report at bugs.python.org
Mon Jan 12 11:16:49 CET 2015


Martin Richard added the comment:

I updated the selector patch so BaseSelector.get_key() raises KeyError if the mapping is None. All the (non skipped) tests in test_selectors.py passed.

Anyway, if there is an other problem with freeing the mapping object (I don't know, maybe "reopening" a loop may be considered?) this patch can probably be dropped. Since this cycle is broken when the loop is closed, the objects will likely be collected once the program terminates.

----------
Added file: http://bugs.python.org/file37681/break-selector-map-cycle.diff

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


More information about the Python-bugs-list mailing list