while True or while 1
d at davea.name
Mon Jan 23 13:33:42 EST 2012
On 01/23/2012 08:28 AM, Hrvoje Niksic wrote:
> Dave Angel<d at davea.name> writes:
>> I do something similar when there's a portion of code that should
>> never be reached:
>> assert("reason why I cannot get here")
> Shouldn't that be assert False, "reason why I cannot get here"?
You caught me in a typo. If it's in python there should be a not there,
and if it's in C, a bang.
More information about the Python-list