[issue40319] dict.update() return the updated dict instead of None

Dong-hee Na report at bugs.python.org
Sat Apr 18 08:40:54 EDT 2020


Dong-hee Na <donghee.na92 at gmail.com> added the comment:

Python 3.9.0a5+ (heads/master:c606624af8, Apr 18 2020, 18:42:51)
[Clang 11.0.3 (clang-1103.0.32.29)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> a = {"test": 1}
>>> b = {"type": 2}
>>> c = a.update(b)
>>> print(c)
None

on macOS master branch, the issue is not reproducible.

----------
nosy: +corona10

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


More information about the Python-bugs-list mailing list