Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Areading314
on March 7, 2019
|
parent
|
context
|
favorite
| on:
PEP 584 – Add + and – operators to the built-in di...
Good point, although you'd need to make sure your seq only has unique values. Other than that I don't see why you should have to write
{k: v for k, v in d.items() if k not in seq}
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: