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 Arfrever, alexandre.vassalotti, barry, josh.r, pitrou, serhiy.storchaka
Date 2015-01-16.14:04:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:05serhiy.storchakasetrecipients: + serhiy.storchaka, barry, pitrou, alexandre.vassalotti, Arfrever, josh.r
2015-01-16 14:04:05serhiy.storchakasetmessageid: <>
2015-01-16 14:04:05serhiy.storchakalinkissue22995 messages
2015-01-16 14:04:05serhiy.storchakacreate