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

2020-04-18 Thread SilentGhost
SilentGhost added the comment: This looks like a proposed "enhancement" rather than a bug report. Unfortunately, this is not possible for a myriad of reasons, from backward compatibility to overall use of mutating methods in Python. -- nosy: +SilentGhost resolution: -> rejected

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

2020-04-18 Thread Dong-hee Na
Dong-hee Na added the comment: Python 3.8.2+ (heads/3.8:c496e29c2b, Apr 18 2020, 21:42:41) [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

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

2020-04-18 Thread Dong-hee Na
Dong-hee Na 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

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

2020-04-18 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Can you please print the output of python -v? Using python 3.8.0 on Linux returns None for update method. -- ___ Python tracker

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

2020-04-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2020-04-18 Thread AL3X_69
New submission from AL3X_69 : 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