Message73716
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?] |
|
Date |
User |
Action |
Args |
2008-09-24 15:03:26 | DragonSA | set | recipients:
+ DragonSA |
2008-09-24 15:03:26 | DragonSA | set | messageid: <1222268606.24.0.721070699601.issue3957@psf.upfronthosting.co.za> |
2008-09-24 15:03:17 | DragonSA | link | issue3957 messages |
2008-09-24 15:03:17 | DragonSA | create | |
|