Which exception to use?
cnetzer at mail.arc.nasa.gov
Tue Jan 28 23:51:04 CET 2003
On Tuesday 28 January 2003 14:43, Chad Netzer wrote:
> def eggs( self, x ):
> # Pretend we only will accept non-negative numbers
> arg_assert( x > 0, "argument to 'eggs()' must not be "
That should have been "x >= 0".
Bay Area Python Interest Group - http://www.baypiggies.net/
(any opinion expressed is my own and not NASA's or my employer's)
More information about the Python-list