Op 18 jul. 2019 om 03:41 heeft Yonatan Zunger <[email protected]> het volgende
geschreven:
> Hi everyone,
>
> I'm in the middle of developing a fancy heap profiler for Python (for those
> times when tracemalloc isn't enough), and in the process, thought of a small
> change in the interpreter which could have a lot of uses. I call it "scope
> painting" because it lets you paint a label on an interpreter scope.
Would contextvars as introduced in 3.7 be helpful for you? This seems to cover
at least some of the use cases you mention.
Ronald
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/MKTI2LH4VZZXMNPPNPENCGO4WL2TIDTG/
Code of Conduct: http://python.org/psf/codeofconduct/