Assert statements in python 3.1

genxtech jrmy.lnrd at gmail.com
Fri Aug 20 01:13:18 EDT 2010


This is more of a curiosity question then anything else...  I was just
wondering why in version 3 of python assertions weren't converted to
use parenthesis, since print was.

I am just asking because it seems the following line of code would
seem more readable as a function:
   assert 2 + 2 == 5, "Only for very large values of 2."



More information about the Python-list mailing list