[Python-Dev] Tidier Exceptions
Guido van Rossum
gvanrossum at gmail.com
Fri May 13 03:25:01 CEST 2005
[Ka-Ping Yee]
> Maybe bare 'except' should be spelled 'except *'.
-1.
> I don't think it can be removed altogether because sometimes you just
> need to be able to do magic, but it can be made a little more explicit.
Assuming a single root of the exception tree, you can spell it
explicitly as "except Exception" or perhaps (if that's not the root)
"except Raisable" (cf. Java's Throwable).
> With the asterisk, it's greppable, and editors can find it or highlight
> it. I like the parallel to 'import *' (frowned upon, but sometimes
> useful if you really know what you are doing).
How is "except:" less greppable?
And is *args also frowned upon?
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev
mailing list