Re: when did transaction lose the ability to be usable as a context manager?

Arfrever Frehtes Taifersar Arahesis <[email protected]>
Newsgroups gmane.comp.web.zope.zodb,gmane.comp.web.zope.devel
Message-ID <[email protected]>
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

_______________________________________________
For more information about ZODB, see http://zodb.org/

ZODB-Dev mailing list  -  [email protected]
https://mail.zope.org/mailman/listinfo/zodb-dev
signature.asc (application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)

iQIcBAABCgAGBQJREiXmAAoJEMyxswy68gDOhhoQAItO7X+KIZjS1mg/H3bdafXh
IxB3/xyKOAnG79WMLJ2iU8IhuM7JPltsVBmb9PGsdEMyr7zw1rbIkoklqiG/2icM
0BXyTFksYolFqMk4UwiUA8tBZezAcjBkikGidiGP5VVcnLztSwfgqu+muUR0HDCP
fmBVJoKipuz8IEMAl2x7tsVGa1KhnOWTJrcHhy+NMMC/Hzh8BisL9ksjc7Ak4aH2
BLcSK5nx6gzZm9c9RvykKYedq3yPvCBPHYCMeSsxzWRXCzwdKOoIF9BaYoeE3RtZ
BYStevzlWJLB/5a4ojinHyUZke5nyfqCpN3iPfp+Qqv/H2n2GZgUmtd3L5cpKUJs
NU5FXNfQG8htYSobX78D+NhVnyepER10Cf0QJRDFvb42BqboxiHsMLTHjGxfTekw
NprXyTcri/2CWNRTD//SBhOrlaQIoTaAjnmysyovatFD8uz9b1LruWpHnbMObhSB
f0hMhxVg79cSuS7VpHcD6PVmRx5ROHBtxVtiSsdNf1GRPKJRRItUyh93QSAS6AKl
AyIn+hhVVp9aoHBSRrTapEiLXbyquopNia3U19SY5SuGiA2MhL5XK8EWHpG4AKGD
gbW9AlMjLSt/x/qjiEzRYdw/XUZl7BKbwJFOvVlhz6IhTmFr7bMbXdxscRh2vPUV
nRLuM6sPs4Dum1Oy1ujl
=lleO
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.