[Fredrik]
> the standard pydiom for this is to change
> 
>     try:
>         blabla
>     except IOError:
>         blabla
> 
> to
> 
>     try:
>         blabla
>     except "debug": # IOError:
>         blabla
> 
> (to save typing, you can use an empty string or even
> put quotes around the exception name, but that may
> make it harder to spot the change)

Yeah, but that will stop working in Python 3.0. I like the solution
that puts a bare "raise" at the top of the except clause.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to