Message255540
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. |
|
Date |
User |
Action |
Args |
2015-11-28 13:48:09 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, lemburg, alexandre.vassalotti, ThomasH |
2015-11-28 13:48:09 | serhiy.storchaka | set | messageid: <1448718489.78.0.833683626237.issue6395@psf.upfronthosting.co.za> |
2015-11-28 13:48:09 | serhiy.storchaka | link | issue6395 messages |
2015-11-28 13:48:09 | serhiy.storchaka | create | |
|