Ezio Melotti <ezio.melo...@gmail.com> added the comment: The original code was trying to call PyArg_ParseTuple assuming 2 args and in case of failure (*any* failure) was starting over assuming 3 args. The attached patch makes PyArg_ParseTuple accept 2 or 3 args and re-arranges the last two if 'flags' is passed. The tests pass, but a few more tests should be added.
---------- assignee: -> ezio.melotti keywords: +patch nosy: +ezio.melotti stage: -> patch review Added file: http://bugs.python.org/file21867/issue10169.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10169> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com