-
Notifications
You must be signed in to change notification settings - Fork 1.1k
No docstring shown for dict.update #5831
Copy link
Copy link
Closed
Labels
docstringsfixed in next version (main)A fix has been implemented and will appear in an upcoming versionA fix has been implemented and will appear in an upcoming versionrepro workspaceIssue has a retained repro workspaceIssue has a retained repro workspaceteam needs to reproduceIssue has not been reproduced yetIssue has not been reproduced yet
Metadata
Metadata
Assignees
Labels
docstringsfixed in next version (main)A fix has been implemented and will appear in an upcoming versionA fix has been implemented and will appear in an upcoming versionrepro workspaceIssue has a retained repro workspaceIssue has a retained repro workspaceteam needs to reproduceIssue has not been reproduced yetIssue has not been reproduced yet
Environment data
Code Snippet
{}.update() {}.fromkeys()Repro Steps
fromkeys. Note that a docstring is shown -- "Create a new dictionary with keys from iterable and values set to value."updateExpected behavior
Docstring shown
Actual behavior
No docstring
Originally discussed at https://stackoverflow.com/questions/78193572/why-so-many-python-built-in-functions-has-no-in-code-docs/78193602#78193602. One user pointed to https://github.com/python/cpython/blob/8182319de33a9519a2f243ac8c35a20ef82a4d2d/Objects/dictobject.c#L4521-L4525 as the docstring for
update.