This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients eric.snow, gregory.p.smith, ncoghlan, rhettinger
Date 2017-09-05.23:47:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1504655244.01.0.877867263237.issue31356@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2017-09-05 23:47:24rhettingersetrecipients: + rhettinger, gregory.p.smith, ncoghlan, eric.snow
2017-09-05 23:47:24rhettingersetmessageid: <1504655244.01.0.877867263237.issue31356@psf.upfronthosting.co.za>
2017-09-05 23:47:23rhettingerlinkissue31356 messages
2017-09-05 23:47:23rhettingercreate