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
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 2014-01-29 15:59 by yselivanov. This issue is now closed.

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
Date User Action Args
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