Exception as the primary error handling mechanism?

Steve Holden steve at holdenweb.com
Tue Jan 5 18:44:40 CET 2010

D'Arcy J.M. Cain wrote:
> On 05 Jan 2010 14:02:50 GMT
> Steven D'Aprano <steve at REMOVE-THIS-cybersource.com.au> wrote:
>> shouldn't use assert for validating user data except for quick-and-dirty 
>> scripts you intend to use once and throw away.
> A mythcial beast that has yet to be spotted in the wild.
Not true (he wrote, picking nits). Such programs are written all the
time. The fact that they invariably get used more often than intended
doesn't negate the intentions of the author. ;-)

Steve Holden           +1 571 484 6266   +1 800 494 3119
PyCon is coming! Atlanta, Feb 2010  http://us.pycon.org/
Holden Web LLC                 http://www.holdenweb.com/
UPCOMING EVENTS:        http://holdenweb.eventbrite.com/

More information about the Python-list mailing list