String Exceptions (PEP 352)

Paul Rubin http
Sat Apr 29 19:39:24 EDT 2006


bruno at modulix <onurb at xiludom.gro> writes:
> What's wrong with:
> 
> assert foo and bar and i > 10, \
>   "if foo and bar i must not be greater than 10"

It doesn't necessarily do anything.  With optimization enable, assert
is a no-op.



More information about the Python-list mailing list