Message279717
Thank you for your report and patch Sebastian.
In Python 3 the solution can be simpler, just move the line "_PyObject_GC_UNTRACK(self);" above the line "textiowrapper_clear(self);". But calling PyObject_ClearWeakRefs() also should be moved up. Otherwise half-destroyed TextIOWrapper instance can be accessed via weak references. Following patches do this (and small refactoring). |
|
Date |
User |
Action |
Args |
2016-10-30 09:54:39 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, benjamin.peterson, stutzbach, scufre |
2016-10-30 09:54:39 | serhiy.storchaka | set | messageid: <1477821279.72.0.419544707205.issue28387@psf.upfronthosting.co.za> |
2016-10-30 09:54:39 | serhiy.storchaka | link | issue28387 messages |
2016-10-30 09:54:39 | serhiy.storchaka | create | |
|