Message258633
Overall +1 to this private API. I like the UncheckedGet name better than FastGet but don't really care what the name is so long as it keeps this property: It must be non-blocking and safe to call from a signal handler. Returning NULL in the event the value could not be obtained in such a manner is fine (unlikely to happen from the looks of the 3.5 code).
They are private and this fixes the regression in 3.5.1. people (ab)using these private APIs should be fine writing conditional compilation code to deal with that.
We've got a similar patch on our CPython 2.7 interpreter at work (more complicated as it must do a non-blocking lock acquire in the old 2.7 code). |
|
Date |
User |
Action |
Args |
2016-01-19 23:25:35 | gregory.p.smith | set | recipients:
+ gregory.p.smith, vstinner, larry, njs |
2016-01-19 23:25:35 | gregory.p.smith | set | messageid: <1453245935.06.0.871979691941.issue26154@psf.upfronthosting.co.za> |
2016-01-19 23:25:34 | gregory.p.smith | link | issue26154 messages |
2016-01-19 23:25:34 | gregory.p.smith | create | |
|