Serhiy Storchaka added the comment: For the socket module constants there is even better way, which supports forward compatibility, i.e. SOCK_STREAM pickled in 3.5 could be unpickled on 3.3 (replacing ints with enums breaks forward compatibility). Here is a patch.
---------- Added file: http://bugs.python.org/file38048/socket_enums_pickle_by_name_2.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20680> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com