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/2005-August/055116.html below:

Exception Reorganization for Python 3.0

[Python-Dev] PEP, take 2: Exception Reorganization for Python 3.0 [Python-Dev] PEP, take 2: Exception Reorganization for Python 3.0Guido van Rossum gvanrossum at gmail.com
Wed Aug 3 19:18:42 CEST 2005
So here's a radical proposal (hear the scratching of the finglernail
on the blackboard? :-).

Start with Brett's latest proposal. Goal: keep bare "except:" but
change it to catch only the part of the hierarchy rooted at
StandardError.

- Call the root of the hierarchy Raisable.
- Rename CriticalException to CriticalError
  (this should happen anyway).
- Rename ControlFlowException to ControlFlowRaisable
  (anything except Error or Exception).
- Rename StandardError to Exception.
- Make Warning a subclass of Exception.

I'd want the latter point even if the rest of this idea is rejected;
when a Warning is raised (as opposed to just printing a message or
being suppressed altogether) it should be treated just like any other
normal exception, i.e. StandardError.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
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