Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
sametmax
on March 6, 2019
|
parent
|
context
|
favorite
| on:
PEP 584 – Add + and – operators to the built-in di...
It does produce a new list/dict, etc. That's what you want to avoid side effects in many cases. Modifying is actually an exception. Handy to have, but not common. Even numpy arrays recreate everything every time.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: