Any way to turn off exception handling? (debugging)

Steve Holden steve at
Thu Feb 11 19:42:08 CET 2010

mk wrote:
> Stephen Hansen wrote:
>> the uncommon, the exceptional, case. If one could somehow turn off
>> exceptions, you can't even do a for loop: every for loop would become
>> infinite-- exceptions are how Python signals the end of an iterator.
>> Think about that, *every* for loop in Python suddenly breaks. 
> Hmm what if one could turn off exception handling for particular
> exception classes?
An extension of the warnings mechanism might be the easiest way to play
with an implementation ...

Steve Holden           +1 571 484 6266   +1 800 494 3119
PyCon is coming! Atlanta, Feb 2010
Holden Web LLC       

More information about the Python-list mailing list