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 serhiy.storchaka
Recipients ThomasH, alexandre.vassalotti, lemburg, serhiy.storchaka
Date 2015-11-28.13:48:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1448718489.78.0.833683626237.issue6395@psf.upfronthosting.co.za>
In-reply-to
Content
Implementing only .__get/setstate__() doesn't fix all problem. We have implement also __getnewargs_ex__(). But implemented __getnewargs_ex__() has priority over __getnewargs__() implemented in subclasses.

And may be there are problems with other optional special methods that are incorrectly delegated to the stream in codecs IO classes.

I think more reliable way is to disallow delegating all special (or may be even private) methods. Here is a patch.
History
Date User Action Args
2015-11-28 13:48:09serhiy.storchakasetrecipients: + serhiy.storchaka, lemburg, alexandre.vassalotti, ThomasH
2015-11-28 13:48:09serhiy.storchakasetmessageid: <1448718489.78.0.833683626237.issue6395@psf.upfronthosting.co.za>
2015-11-28 13:48:09serhiy.storchakalinkissue6395 messages
2015-11-28 13:48:09serhiy.storchakacreate