[issue39566] inspect.Signature.__init__ asks for parameters as dict but treats as list

Karthikeyan Singaravelan report at bugs.python.org
Thu Feb 6 07:37:36 EST 2020


Karthikeyan Singaravelan <tir.karthi at gmail.com> added the comment:

It says list in the __init__ doc : https://github.com/python/cpython/blob/54b4f14712b9350f11c983f1c8ac47a3716958a7/Lib/inspect.py#L2759

It says that parameters is a public property that returns a mapping of parameter name to object at : https://github.com/python/cpython/blob/54b4f14712b9350f11c983f1c8ac47a3716958a7/Lib/inspect.py#L2734 . The change to dict was done with 2cca8efe46935c39c445f585bce54954fad2485b .

I can see the public attribute returning dictionary. Can you please point to the doc where it says the parameter should be a dictionary to the constructor?

----------
nosy: +xtreak

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39566>
_______________________________________


More information about the Python-bugs-list mailing list