osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Python-Dev] PEP 572 and assert


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.