Message301407
Used like this:
with gc_disabled():
run_some_timing()
with gc_disabled():
# do_something_that_has_real_time_guarantees
# such as a pair trade, robotic braking, etc
This would be implemented in C for atomicity and speed. It would be roughly equivalent to:
@contextmanager
def gc_disabled():
if gc.isenabled():
gc.disable()
yield
gc.enable()
else:
yield |
|
Date |
User |
Action |
Args |
2017-09-05 23:47:24 | rhettinger | set | recipients:
+ rhettinger, gregory.p.smith, ncoghlan, eric.snow |
2017-09-05 23:47:24 | rhettinger | set | messageid: <1504655244.01.0.877867263237.issue31356@psf.upfronthosting.co.za> |
2017-09-05 23:47:23 | rhettinger | link | issue31356 messages |
2017-09-05 23:47:23 | rhettinger | create | |
|