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 Nicholas Matthews
Recipients Nicholas Matthews
Date 2020-02-05.23:37:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1580945844.01.0.0291811112362.issue39566@roundup.psfhosted.org>
In-reply-to
Content
The class inspect.Signature asks for parameters of type dict in python 3.8+ (and OrderedDict in earlier versions); however the __init__ function iterates over parameters as if it were a list, specifically:

for param in parameters:
    name = param.name
    kind = param.kind
    ...

Either the docstring should be changed to specify Sequence / List, or the implementation should be changed to iterate over the values of parameters:

for param in parameters.values():
    ...

(https://github.com/python/cpython/blob/2cca8efe46935c39c445f585bce54954fad2485b/Lib/inspect.py#L2734)
History
Date User Action Args
2020-02-05 23:37:24Nicholas Matthewssetrecipients: + Nicholas Matthews
2020-02-05 23:37:24Nicholas Matthewssetmessageid: <1580945844.01.0.0291811112362.issue39566@roundup.psfhosted.org>
2020-02-05 23:37:23Nicholas Matthewslinkissue39566 messages
2020-02-05 23:37:23Nicholas Matthewscreate