Alexander Belopolsky <belopol...@users.sourceforge.net> added the comment:
Attached patch passes the regrtest and makes test-functools.py raise an exception rather than crash. The proposed change will make functions like partial.__setstate__ require tuple argument even though currently it would accept any container. This is not an issue with __setstate__ because it should only be called with arguments produced by __reduce__ and in the case of partial, __reduce__ produces state as a tuple. Other functions may need to be modified if they need to continue to accept arbitrary sequences. ---------- stage: needs patch -> patch review Added file: http://bugs.python.org/file20400/issue6083.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6083> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com