A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-March/062608.html below:

[Python-Dev] GeneratorExit inheriting from Exception

[Python-Dev] GeneratorExit inheriting from Exception [Python-Dev] GeneratorExit inheriting from ExceptionGreg Ewing greg.ewing at canterbury.ac.nz
Sun Mar 19 02:50:13 CET 2006
Giovanni Bajo wrote:

> The situation (in Py3k) I was thinking is when people see this code:
> 
> except:
>     # something
> 
> and want to change it so to get a name to the exception object. I *think* many
> could get confused and write:
> 
> except Exception, e:
>     # something

If except clauses are changed to use "as", then
as long as we're still allowing bare excepts, that
could become

   except as e:
     ...

Greg
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