Serhiy Storchaka added the comment: It is hard to write good tests, because every example is temporary, after adding support of pickling it will be not valid.
Here is extended patch. It now handles Python subclasses of builtin classes (except list and dict which are pickleable via iterators) such as socket.socket. Removed several guarding __getstate__() methods. Added few new tests. ---------- Added file: http://bugs.python.org/file37739/pickle_restrictions_2.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22995> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com