Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
minitech
on Oct 6, 2020
|
parent
|
context
|
favorite
| on:
Python 3.9
They’re referring to duplicate keys’ precedence. `a or b` prefers `a` if truthy, but `a | b` prefers b’s values.
Doxin
on Oct 8, 2020
[–]
That's because it's replicating the behavior of the update function. Again | doesn't mean or, so it shouldn't be expected to behave the same.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: