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.

Author yselivanov
Recipients r.david.murray, rmccampbell7, yselivanov
Date 2014-06-20.18:21:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1403288511.71.0.0613388300702.issue21684@psf.upfronthosting.co.za>
In-reply-to
Content
That's the intended and documented behaviour, see https://docs.python.org/3/library/inspect.html#inspect.BoundArguments.arguments.

You can easily implement the functionality you need by iterating through Signature.parameters and copying defaults to the BoundArguments.arguments mapping. There is no need to complicate the API with a dedicated method for that (if anything, in 3.5 you can subclass Signature and use from_callable to have any functionality you want).

Closing this one as 'not a bug'.
History
Date User Action Args
2014-06-20 18:21:51yselivanovsetrecipients: + yselivanov, r.david.murray, rmccampbell7
2014-06-20 18:21:51yselivanovsetmessageid: <1403288511.71.0.0613388300702.issue21684@psf.upfronthosting.co.za>
2014-06-20 18:21:51yselivanovlinkissue21684 messages
2014-06-20 18:21:51yselivanovcreate