Antoine Pitrou <pit...@free.fr> added the comment: The difference has to do with the result of __reduce__:
With the patch: >>> open("LICENSE").__reduce_ex__(3) (<function __newobj__ at 0x7fa392a0ff30>, (<class '_io.TextIOWrapper'>,), {'mode': 'r'}, None, None) Without: >>> open("LICENSE").__reduce_ex__(3) (<function __newobj__ at 0x7f2cf2361a70>, (<class '_io.TextIOWrapper'>,), None, None, None) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9935> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com