-
-
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 <35541026+Prometheus3375@users.noreply.github.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
…l stop from `dict` documentation (pythonGH-125421) (cherry picked from commit 5527c40) Co-authored-by: Prometheus3375 <35541026+Prometheus3375@users.noreply.github.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
|
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 <35541026+Prometheus3375@users.noreply.github.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
…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 <35541026+Prometheus3375@users.noreply.github.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
…l stop from `dict` documentation (python#125421) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
…l stop from `dict` documentation (python#125421) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Changes made:
dictanddict.updateregarding the positional argument they accept #125213.MutableMapping.updatetodict.updatedocstring. Also changeddict/iterabletomapping/iterableasEcan be indeed any mapping object, not justdict.dictanddict.updatetreat the first argument as a mapping when it has attributekeyswithout attribute__getitem__#116938📚 Documentation preview 📚: https://cpython-previews--125421.org.readthedocs.build/