Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make inspect.signature work with tuple unpacking #31

Open
naftaliharris opened this issue Nov 17, 2016 · 1 comment
Open

Make inspect.signature work with tuple unpacking #31

naftaliharris opened this issue Nov 17, 2016 · 1 comment

Comments

@naftaliharris
Copy link
Owner

>>> import inspect
>>> def f((a, b)): pass
...
>>> inspect.signature(f)
<Signature (implicit0, /)>
>>>
@arizvisa
Copy link
Contributor

Since PEP-3113 removed this, how would you expect this to appear?

Would it appear as a unique Parameter.kind which can then be unpacked into their individual parameters via a .__iter__() implementation? Or would it simply be a tuple of Parameters that is included in the signature with implicitX as its key?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants