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 DragonSA
Recipients DragonSA
Date 2008-09-24.15:03:16
SpamBayes Score 2.45225e-06
Marked as misclassified No
Message-id <1222268606.24.0.721070699601.issue3957@psf.upfronthosting.co.za>
In-reply-to
Content
Apologies, obviously the invert function should be preceded by an 
@contextmanager to become:

@contextmanager
def invert(thing):
  thing.__exit__(None, None, None)
  yield thing
  thing.__enter__()

[Although there may be a better way of doing this, perhaps as a 
class?]
History
Date User Action Args
2008-09-24 15:03:26DragonSAsetrecipients: + DragonSA
2008-09-24 15:03:26DragonSAsetmessageid: <1222268606.24.0.721070699601.issue3957@psf.upfronthosting.co.za>
2008-09-24 15:03:17DragonSAlinkissue3957 messages
2008-09-24 15:03:17DragonSAcreate