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 terry.reedy
Recipients KayEss, Rhamphoryncus, benjamin.peterson, blakeross, georg.brandl, gregory.p.smith, gvanrossum, jaraco, jcea, jonash, rhettinger, terry.reedy
Date 2014-05-28.15:23:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1401290635.69.0.089123753095.issue1683368@psf.upfronthosting.co.za>
In-reply-to
Content
From what I see, you do not need to change either __new__ or __init__, just add __enter__ and __exit__ , and you only need to do that in 2.6. Since Zipfile is written in Python, you could monkey-patch instead of subclassing, if that is easier in your particular case.
History
Date User Action Args
2014-05-28 15:23:55terry.reedysetrecipients: + terry.reedy, gvanrossum, georg.brandl, rhettinger, gregory.p.smith, jcea, jaraco, Rhamphoryncus, blakeross, benjamin.peterson, KayEss, jonash
2014-05-28 15:23:55terry.reedysetmessageid: <1401290635.69.0.089123753095.issue1683368@psf.upfronthosting.co.za>
2014-05-28 15:23:55terry.reedylinkissue1683368 messages
2014-05-28 15:23:55terry.reedycreate