Which exception to use?

Chad Netzer cnetzer at mail.arc.nasa.gov
Tue Jan 28 17:51:04 EST 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/

Chad Netzer
(any opinion expressed is my own and not NASA's or my employer's)





More information about the Python-list mailing list