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 <>
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.
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: <>
2014-05-28 15:23:55terry.reedylinkissue1683368 messages
2014-05-28 15:23:55terry.reedycreate