Author serhiy.storchaka
Recipients alexandre.vassalotti, christian.heimes, pitrou, serhiy.storchaka
Date 2018-03-25.16:21:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Currently most extension types are not pickleable and copyable. The default error messages is "can't pickle XXX objects". This is confusing in case of copying because not all know that copying falls back to the pickle protocol (see for example issue33023). The proposed PR changes the default error messages to more neutral "cannot serialize 'XXX' object". This or similar error messages are already used in some classes (files, sockets, compressors/decompressors).

It also removes __getstate__ methods raising an error from non-pickleable extension types. They where added when extension types were pickleable by default (fixed in issue22995). Now they are not needed.
Date User Action Args
2018-03-25 16:21:38serhiy.storchakasetrecipients: + serhiy.storchaka, pitrou, christian.heimes, alexandre.vassalotti
2018-03-25 16:21:38serhiy.storchakasetmessageid: <>
2018-03-25 16:21:38serhiy.storchakalinkissue33138 messages
2018-03-25 16:21:38serhiy.storchakacreate