On 30/03/2023 09.21, Barry wrote:
On 30 Mar 2023, at 08:10, Tobias Bengfort <[email protected]>
wrote:
I was wondering why decorator-based context managers are not reentrant
or even reusable.
Do you mean this use of reentrant?
https://en.wikipedia.org/wiki/Reentrancy_(computing)
I mean mean it as used in the docs:
More sophisticated context managers may be “reentrant”. These context
managers can not only be used in multiple with statements, but may also
be used inside a with statement that is already using the same context
manager.
_______________________________________________
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/5RK5W7A72FAGRI2JGFB5A2XNYXXXEXTW/
Code of Conduct: http://python.org/psf/codeofconduct/