Message301363
To elaborate a bit on the patch:
- it is pointless to call flush() if the buffered is in a bad state (self->ok == 0) or it has started finalizing already
- you need to own the reference, since flush() can release the GIL and, if the reference is borrowed, the refcount can fall to 0 in another thread and the whole object deallocated under your feet |
|
Date |
User |
Action |
Args |
2017-09-05 19:22:55 | pitrou | set | recipients:
+ pitrou, tim.peters, arigo, nascheme, vstinner, nikratio, neologix, martin.panter, serhiy.storchaka, xgdomingo |
2017-09-05 19:22:54 | pitrou | set | messageid: <1504639374.98.0.402057225819.issue17852@psf.upfronthosting.co.za> |
2017-09-05 19:22:54 | pitrou | link | issue17852 messages |
2017-09-05 19:22:54 | pitrou | create | |
|