A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2009-January/085032.html below:

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

[Python-Dev] should list's call to __len__ swallow SystemExit? [Python-Dev] should list's call to __len__ swallow SystemExit?Nick Coghlan ncoghlan at gmail.com
Wed Jan 14 12:12:05 CET 2009
Dino Viehland wrote:
> We had a bug reported that effectively boils down to we’re not
> swallowing exceptions when list calls __len__
> (http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkItemId=20598).
> 
> 
> 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.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4