[Python-Dev] PEP 572 and assert (original) (raw)
Serhiy Storchaka storchaka at gmail.com
Tue Jul 17 12:32:55 EDT 2018
- Previous message (by thread): [Python-Dev] PEP 572 and assert
- Next message (by thread): [Python-Dev] Fuzzing the Python standard library
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
17.07.18 19:25, Tim Peters пише:
It is a win (to my eyes) if the code it replaced was
if debug: subdirs = list(path.iterdir()) assert len(subdirs) == 0, subdirs in which case the semantics are the same in either spelling, with or without -O, but the spelling at the top is less annoying ;-)
I completely agree.
- Previous message (by thread): [Python-Dev] PEP 572 and assert
- Next message (by thread): [Python-Dev] Fuzzing the Python standard library
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]