]> granicus.if.org Git - python/commit
Issue #19611: handle implicit parameters in inspect.signature
authorNick Coghlan <ncoghlan@gmail.com>
Sat, 4 Jun 2016 21:40:03 +0000 (14:40 -0700)
committerNick Coghlan <ncoghlan@gmail.com>
Sat, 4 Jun 2016 21:40:03 +0000 (14:40 -0700)
commitb4b966ece26b4fc14c94fa9bccd831d5d5c93aab
treec9c4ef12406580a4bd91ca071be4125bf4855e2a
parentd62548afede899e71e59a2a0b31f19fdf031c560
Issue #19611: handle implicit parameters in inspect.signature

inspect.signature now reports the implicit ``.0`` parameters generated by
the compiler for comprehension and generator expression scopes as if they
were positional-only parameters called ``implicit0``.

Patch by Jelle Zijlstra.
Doc/library/inspect.rst
Lib/inspect.py
Lib/test/test_inspect.py
Misc/ACKS
Misc/NEWS