Donald Stufft wrote: > > why is: > > print(*[1], *[2], 3) better than print(*[1] + [2] + [3])? It could potentially be a little more efficient by eliminating the construction of an intermediate list. > defining + or | or some other symbol for something similar > to [1] + [2] but for dictionaries. This would mean that you could simply do: > > func(**dict1 | dict(y=1) | dict2) Same again, multiple ** avoids construction of an itermediate dict. -- Greg
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4