[issue39037] Wrong trial order of __exit__ and __enter__ in the with statement

Mark Dickinson report at bugs.python.org
Fri Dec 13 10:29:04 EST 2019


Mark Dickinson <dickinsm at gmail.com> added the comment:

See issue 27100, which led to a deliberate change in behaviour to look up __enter__ before __exit__. It looks like the documentation (not the PEP text, which shouldn't be considered normative; just the reference manual) needs to be adjusted to match the new behaviour.

----------
nosy: +mark.dickinson

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39037>
_______________________________________


More information about the Python-bugs-list mailing list