Message314418
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:38 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, pitrou, christian.heimes, alexandre.vassalotti |
| 2018-03-25 16:21:38 | serhiy.storchaka | set | messageid: <1521994898.68.0.467229070634.issue33138@psf.upfronthosting.co.za> |
| 2018-03-25 16:21:38 | serhiy.storchaka | link | issue33138 messages |
| 2018-03-25 16:21:38 | serhiy.storchaka | create | |
|