-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
gh-116938: Fix dict.update
docstring and remove erraneous full stop from dict
documentation
#125421
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
Conversation
Thanks @Prometheus3375 for catching these issues |
LGTM, but I don't merge this yet to ensure a chance for other core developers to review. |
@methane 2 weeks have passed, nobody else reviewed. |
dict.update
docstring and remove redundant period from dict
web documentationdict.update
docstring and remove erraneous full stop from dict
documentation
Thanks @Prometheus3375 for the PR, and @AA-Turner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
…l stop from `dict` documentation (pythonGH-125421) (cherry picked from commit 5527c40) Co-authored-by: Prometheus3375 <[email protected]> Co-authored-by: Adam Turner <[email protected]>
…l stop from `dict` documentation (pythonGH-125421) (cherry picked from commit 5527c40) Co-authored-by: Prometheus3375 <[email protected]> Co-authored-by: Adam Turner <[email protected]>
GH-126150 is a backport of this pull request to the 3.13 branch. |
GH-126151 is a backport of this pull request to the 3.12 branch. |
…ll stop from `dict` documentation (GH-125421) (#126151) gh-116938: Fix `dict.update` docstring and remove erraneous full stop from `dict` documentation (GH-125421) (cherry picked from commit 5527c40) Co-authored-by: Prometheus3375 <[email protected]> Co-authored-by: Adam Turner <[email protected]>
…ll stop from `dict` documentation (GH-125421) (#126150) gh-116938: Fix `dict.update` docstring and remove erraneous full stop from `dict` documentation (GH-125421) (cherry picked from commit 5527c40) Co-authored-by: Prometheus3375 <[email protected]> Co-authored-by: Adam Turner <[email protected]>
…l stop from `dict` documentation (python#125421) Co-authored-by: Adam Turner <[email protected]>
…l stop from `dict` documentation (python#125421) Co-authored-by: Adam Turner <[email protected]>
Changes made:
dict
anddict.update
regarding the positional argument they accept #125213.MutableMapping.update
todict.update
docstring. Also changeddict/iterable
tomapping/iterable
asE
can be indeed any mapping object, not justdict
.dict
anddict.update
treat the first argument as a mapping when it has attributekeys
without attribute__getitem__
#116938📚 Documentation preview 📚: https://cpython-previews--125421.org.readthedocs.build/