[Python-Dev] should list's call to __len__ swallow SystemExit?

Raymond Hettinger python at rcn.com
Wed Jan 14 20:59:41 CET 2009

>> If you want this changed, I can use a negative return
>> value for other than an attribute error, and modify
>> the calling code to handle the exception.
>> To me this isn't worth making the code slower and
>> more complex.  But I can also see wanting to catch
>> a SystemError at any possible step.

> It has the potential of masking errors, and thus I'd like to see it fixed.

No problem.  I'll take care of this one.  Since it's an internal API,
it should be easy.


More information about the Python-Dev mailing list