Re: String Exceptions (PEP 352)
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: String Exceptions (PEP 352)

From: Paul Rubin <//phr.cx@NOSPAM.invalid>
Date: Sun Apr 30 2006 - 01:39:24 CEST

bruno at modulix <onurb@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.
Received on Mon May 1 00:45:47 2006