[Python-Dev] PEP 572 and assert

Serhiy Storchaka storchaka at gmail.com
Tue Jul 17 12:32:55 EDT 2018


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.



More information about the Python-Dev mailing list