Message234131
All public classes not designed for pickling explicitly. I tested only operator.methodcaller, mmap.mmap, sqlite3 classes (Connect, Cursor, Row), _socket.socket, select.epoll, _csv.Dialect, but should be more. Instances of these classes can be "pickled", but unpickling either raise an exception (usually TypeError), or returns default or underinitialized object.
For other classes the patch changes raised exception type. E.g. pickling zlib.compressobj() raised
_pickle.PicklingError: Can't pickle <class 'zlib.Compress'>: attribute lookup Compress on zlib failed
and with the patch it raises
TypeError: can't pickle zlib.Compress objects |
|
Date |
User |
Action |
Args |
2015-01-16 14:04:05 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, barry, pitrou, alexandre.vassalotti, Arfrever, josh.r |
2015-01-16 14:04:05 | serhiy.storchaka | set | messageid: <1421417045.64.0.0282985235965.issue22995@psf.upfronthosting.co.za> |
2015-01-16 14:04:05 | serhiy.storchaka | link | issue22995 messages |
2015-01-16 14:04:05 | serhiy.storchaka | create | |
|