[issue5251] contextlib.nested inconsistent with, well, nested with statements due exceptions raised in __enter__

Nick Coghlan report at bugs.python.org
Sun Mar 15 08:20:24 CET 2009


Nick Coghlan <ncoghlan at gmail.com> added the comment:

To see what is wrong with v2, try something like:

  class Bizarre():
    def __getattr__(self, attr):
        raise SkipStatement

  with Bizarre():
    print "Not gonna happen, but no exception either!"

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5251>
_______________________________________


More information about the Python-bugs-list mailing list