This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author benrg
Recipients benrg
Date 2011-03-07.07:19:16
SpamBayes Score 0.01800865
Marked as misclassified No
Message-id <1299482357.23.0.863939671026.issue11428@psf.upfronthosting.co.za>
In-reply-to
Content
class MakeContextHandler:
  def __init__(self, enter, exit):
    self.__enter__ = enter
    self.__exit__ = exit

with MakeContextHandler(lambda: None, lambda *e: None): pass

In 3.1.3 this worked; in 3.2 it raises AttributeError('__exit__'), which appears to be a bug.
History
Date User Action Args
2011-03-07 07:19:17benrgsetrecipients: + benrg
2011-03-07 07:19:17benrgsetmessageid: <1299482357.23.0.863939671026.issue11428@psf.upfronthosting.co.za>
2011-03-07 07:19:16benrglinkissue11428 messages
2011-03-07 07:19:16benrgcreate