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: Fix UserDict.get to account for __missing__
Type: behavior Stage: patch review
Components: Library (Lib) Versions: Python 3.9, Python 3.8, Python 3.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: bar.harel
Priority: normal Keywords: patch

Created on 2020-01-08 23:51 by bar.harel, last changed 2022-04-11 14:59 by admin.

Pull Requests
URL Status Linked Edit
PR 17910 open bar.harel, 2020-01-09 00:03
Messages (2)
msg359633 - (view) Author: Bar Harel (bar.harel) * Date: 2020-01-08 23:51
Unlike dict, UserDict.__missing__ is called on .get().
After a discussion on the Python-Dev mailing list, mimicking dict's behavior was chosen as a solution to the issue.
msg359641 - (view) Author: Bar Harel (bar.harel) * Date: 2020-01-09 00:12
See also bpo-39267
History
Date User Action Args
2022-04-11 14:59:25adminsetgithub: 83445
2020-01-09 00:12:54bar.harelsetmessages: + msg359641
2020-01-09 00:03:05bar.harelsetkeywords: + patch
stage: patch review
pull_requests: + pull_request17321
2020-01-08 23:51:16bar.harelcreate