[New-bugs-announce] [issue39264] Fix UserDict.get to account for __missing__

Bar Harel report at bugs.python.org
Wed Jan 8 18:51:16 EST 2020


New submission from Bar Harel <bzvi7919 at gmail.com>:

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.

----------
components: Library (Lib)
messages: 359633
nosy: bar.harel
priority: normal
severity: normal
status: open
title: Fix UserDict.get to account for __missing__
type: behavior
versions: Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39264>
_______________________________________


More information about the New-bugs-announce mailing list