Re:PEP 505: Bringing None-Aware Operators to Python
by pjz on Sunday August 12, 2018 @03:26PM
(#17745985)
This is subtly incorrect. Correctly, it should be:
or else falsey values of paths (0, [], False) can still cause an error.
[ Parent
| on HN ]
Re:PEP 505: Bringing None-Aware Operators to Python
by singularity2001 on Monday August 13, 2018 @03:17AM
(#17748517)
If your path variable is set to 0, [], False then it's best to fail early anyways.