Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
GitHub fields:
assignee = None closed_at = None created_at = <Date 2020-01-08.23:51:15.983> labels = ['3.7', '3.8', 'type-bug', 'library', '3.9'] title = 'Fix UserDict.get to account for __missing__' updated_at = <Date 2020-01-09.00:12:54.440> user = 'https://github.com/bharel'
bugs.python.org fields:
activity = <Date 2020-01-09.00:12:54.440> actor = 'bar.harel' assignee = 'none' closed = False closed_date = None closer = None components = ['Library (Lib)'] creation = <Date 2020-01-08.23:51:15.983> creator = 'bar.harel' dependencies = [] files = [] hgrepos = [] issue_num = 39264 keywords = ['patch'] message_count = 2.0 messages = ['359633', '359641'] nosy_count = 1.0 nosy_names = ['bar.harel'] pr_nums = ['17910'] priority = 'normal' resolution = None stage = 'patch review' status = 'open' superseder = None type = 'behavior' url = 'https://bugs.python.org/issue39264' versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']
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.
See also bpo-39267
Please see #83448 as well.
Activity
bharel commented on Jan 8, 2020
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.
bharel commented on Jan 9, 2020
See also bpo-39267
bharel commented on Apr 17, 2023
Please see #83448 as well.