[Zope-dev] [ZODB-Dev] when did transaction lose the ability to be usable as a context manager?
Arfrever Frehtes Taifersar Arahesis
arfrever.fta at gmail.com
Wed Feb 6 09:44:02 UTC 2013
2013-02-06 09:57:14 Chris Withers napisał(a):
> I used to do this:
>
> >>> import transaction
> >>> with transaction:
> ... print 'hello'
> ...
> Traceback (most recent call last):
> File "<console>", line 1, in <module>
> AttributeError: __exit__
>
> When did that stop working and what should I now do instead?
http://bugs.python.org/issue9220
--
Arfrever Frehtes Taifersar Arahesis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.zope.org/pipermail/zope-dev/attachments/20130206/66fa603a/attachment.sig>
More information about the Zope-Dev
mailing list