assert versus print [was Re: The curious behavior of integer objects]
pavlovevidence at gmail.com
Tue Jan 16 08:11:26 CET 2007
Ron Adam wrote:
> There have been times where I would like assert to be a little more assertive
> than it is. :-)
> ie.. not being able to turn them off with the -0/-00 switches, and having them
> generate a more verbose traceback.
Personally, I'd rather see it get less assertive, i.e., having it only
work in a special debugging mode. That way people who haven't RTFM
don't use it to make sure their input is correct.
More information about the Python-list