This PEP proposes adding two new operators.
1 comment
lordkrandel7 days ago
I'm all in for the "just use `x = x if x is not None else def` objection. This is not a needed feature, it does nothing and introduces more implicit complexity instead of linearity, and is less readable. ?? Is also an alarming sign, which catches more attention than it should
Read the full thread on Hacker News →
Related stories
- Python Enhancement Proposal 823: None-aware access operatorspeps.python.orgHacker News · 1 points · 7 days ago
- Hacker News · 2 points · about 13 hours ago
- PEP 824 – None-coalescing operatorspeps.python.orgHacker News · 2 points · 8 days ago
- Lobsters · 22 points · about 10 years ago
- yieldfrom 1.0.0: A backport of the `yield from` semantic from Python 3.x to Python 2.7pypi.python.orgLobsters · 11 points · over 9 years ago
- Lobsters · 10 points · 6 months ago