[Python-Dev] should list's call to __len__ swallow SystemExit?
kmtracey at gmail.com
Wed Jan 14 13:11:04 CET 2009
On Wed, Jan 14, 2009 at 6:12 AM, Nick Coghlan <ncoghlan at gmail.com> wrote:
> Dino Viehland wrote:
> > We had a bug reported that effectively boils down to we're not
> > swallowing exceptions when list calls __len__
> > (
> > We can obviously make the change to catch exceptions here in
> > IronPython even if it seems like a bad idea to me ☺ But CPython
> > seems to catch not only normal exceptions, but also SystemExit. It
> > seems like there's been a move away from this so I thought I'd
> > mention it here. I tested it on 2.6.1 and 3.0.
> I'd agree that CPython appears to be the one misbehaving here, rather
> than IronPython.
> Opening a new issue at bugs.python.org would be the best way forward.
There is already a bug for this, I believe:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-Dev