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.

classification
Title: inspect.FullArgSpec does not match the docs
Type: behavior Stage: patch review
Components: Library (Lib) Versions: Python 3.0
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: benjamin.peterson Nosy List: benjamin.peterson, christian.heimes, hagen
Priority: normal Keywords: patch

Created on 2008-11-12 16:24 by hagen, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
inspect.patch hagen, 2008-11-12 16:24
Messages (4)
msg75788 - (view) Author: Hagen Fürstenau (hagen) Date: 2008-11-12 16:24
The docs say that inspect.FullArgSpec is a named tuple

FullArgSpec(args, varargs, varkw, defaults, kwonlyargs, kwonlydefaults,
annotations)

However the implementation has "kwdefaults" instead of "kwonlydefaults".
The name in the docs seems to make more sense. A patch fixing this is
attached.
msg75797 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2008-11-12 21:24
This patch looks good.
msg75799 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2008-11-12 21:32
Agreed!
msg75800 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2008-11-12 21:39
Thanks for the patch! Fixed in r67203.
History
Date User Action Args
2022-04-11 14:56:41adminsetgithub: 48557
2008-11-12 21:39:20benjamin.petersonsetstatus: open -> closed
resolution: accepted -> fixed
messages: + msg75800
2008-11-12 21:32:10christian.heimessetpriority: normal
resolution: accepted
messages: + msg75799
nosy: + christian.heimes
stage: patch review
2008-11-12 21:24:14benjamin.petersonsetassignee: benjamin.peterson
messages: + msg75797
nosy: + benjamin.peterson
2008-11-12 16:24:36hagencreate