[New-bugs-announce] [issue40319] dict.update() return the updated dict instead of None
AL3X_69
report at bugs.python.org
Sat Apr 18 07:57:55 EDT 2020
New submission from AL3X_69 <alex69.minecraft at gmail.com>:
When a dict is updated with update(), instead of return None, it will return the updated dict.
example:
>>> a = {"test": 1}
>>> b = {"type": 2}
>>> c = a.update(b)
>>> print(c)
{"test": 1, "type": 1}
----------
messages: 366703
nosy: AL3X_69
priority: normal
severity: normal
status: open
title: dict.update() return the updated dict instead of None
type: enhancement
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40319>
_______________________________________
More information about the New-bugs-announce
mailing list