Irit Katriel <iritkatr...@gmail.com> added the comment:

I've outlined a different approach here:
https://gist.github.com/iritkatriel/3927147548b10a7929cb0b680e3adc52

Basically, to add introspection capabilities in the C API so that the 
interpreter can find out whether __exit__ expects one or three args.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46330>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to