[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error
Spencer Brown
report at bugs.python.org
Wed Sep 28 17:45:27 EDT 2016
Spencer Brown added the comment:
Alternatively, SETUP_WITH could additionally check for the other method, and raise an AttributeError with a custom message mentioning both methods.
----------
nosy: +Spencer Brown
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27100>
_______________________________________
More information about the Python-bugs-list
mailing list