Class returning None ?

Aahz aahz at pythoncraft.com
Mon Jan 26 09:33:05 EST 2004


In article <mailman.791.1075107363.12720.python-list at python.org>,
Cliff Wells  <clifford.wells at comcast.net> wrote:
>
>from exceptions import Exception
>class SomeError(Exception): pass

BTW, there's no need to do this.  ``Exception`` lives in the built-in
namespace.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"The joy of coding Python should be in seeing short, concise, readable
classes that express a lot of action in a small amount of clear code -- 
not in reams of trivial code that bores the reader to death."  --GvR



More information about the Python-list mailing list