Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
timfi
on Oct 6, 2020
|
parent
|
context
|
favorite
| on:
Python 3.9
Gotta say though that I intuitivly think of the dict union operator x | y as {* * x, * * y}. Which is how I would have joined two dictionaries before, when I wanted to produce a complete copy of one, i.e. not use dict.update.
dr_zoidberg
on Oct 6, 2020
[–]
And the behavior of x | y is consistent with both {
x,
y} and x.update(y).
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: