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 <1421417045.64.0.0282985235965.issue22995@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
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: <1421417045.64.0.0282985235965.issue22995@psf.upfronthosting.co.za>
2015-01-16 14:04:05serhiy.storchakalinkissue22995 messages
2015-01-16 14:04:05serhiy.storchakacreate