[Python-Dev] PEP 567 -- Context Variables (original) (raw)

Eric Snow ericsnowcurrently at gmail.com
Wed Dec 13 16:03:59 EST 2017


On Tue, Dec 12, 2017 at 4:49 PM, Victor Stinner <victor.stinner at gmail.com> wrote:

The Token API exists to make the current proposal forward compatible with :pep:550, in case there is demand to support context variables in generators and asynchronous generators in the future. Cool. I like the idea of starting with something simple in Python 3.7. Then extend it in Python 3.8 or later (support generators), if it becomes popular, once the first simple (but "incomplete", without generators) implementation is battle-tested.

+1 for starting with a basic API and building on that.

-eric



More information about the Python-Dev mailing list