This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: inspect.Signature should ensure that non-default params don't follow default ones
Type: behavior Stage: patch review
Components: Versions: Python 3.4, Python 3.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: yselivanov Nosy List: brett.cannon, larry, ncoghlan, python-dev, yselivanov
Priority: normal Keywords: needs review, patch

Created on 2014-01-28 23:01 by yselivanov, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
sig_validation_01.patch yselivanov, 2014-01-28 23:01 review
sig_validation_02.patch yselivanov, 2014-01-29 05:39 review
Messages (3)
msg209598 - (view) Author: Yury Selivanov (yselivanov) * (Python committer) Date: 2014-01-28 23:01
Right now it's possible to manually create signatures like "(a=1, b)". Patch is attached.
msg209616 - (view) Author: Yury Selivanov (yselivanov) * (Python committer) Date: 2014-01-29 05:39
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.
msg209654 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-01-29 15:58
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
History
Date User Action Args
2022-04-11 14:57:57adminsetgithub: 64626
2014-01-29 15:59:02yselivanovsetstatus: open -> closed
resolution: fixed
2014-01-29 15:58:49python-devsetnosy: + python-dev
messages: + msg209654
2014-01-29 05:39:13yselivanovsetfiles: + sig_validation_02.patch

messages: + msg209616
2014-01-28 23:01:06yselivanovcreate