[issue20427] inspect.Signature should ensure that non-default params don't follow default ones
Roundup Robot added the comment: New changeset ca974997280d by Yury Selivanov in branch 'default': inspect.Signature: ensure that non-default params don't follow default ones #20427 http://hg.python.org/cpython/rev/ca974997280d -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20427 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20427] inspect.Signature should ensure that non-default params don't follow default ones
Changes by Yury Selivanov yselivanov...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20427 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20427] inspect.Signature should ensure that non-default params don't follow default ones
New submission from Yury Selivanov: Right now it's possible to manually create signatures like (a=1, b). Patch is attached. -- assignee: yselivanov files: sig_validation_01.patch keywords: needs review, patch messages: 209598 nosy: brett.cannon, larry, ncoghlan, yselivanov priority: normal severity: normal stage: patch review status: open title: inspect.Signature should ensure that non-default params don't follow default ones type: behavior versions: Python 3.4, Python 3.5 Added file: http://bugs.python.org/file33785/sig_validation_01.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20427 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20427] inspect.Signature should ensure that non-default params don't follow default ones
Yury Selivanov added the comment: New patch version: sig_validation_02.patch This one is a bit more correct--it uses Parameter's private '_partial_kwarg' to correctly validate partial signatures. -- Added file: http://bugs.python.org/file33787/sig_validation_02.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20427 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com