[Python-Dev] PEP 8 updates/clarifications

Brett Cannon bcannon at gmail.com
Sat Dec 10 23:27:21 CET 2005


On 12/10/05, Michael Hudson <mwh at python.net> wrote:
> Barry Warsaw <barry at python.org> writes:
>
> > Let's say something like "string-based exceptions are strongly
> > discouraged, and in fact may be deprecated or disappear in a future
> > Python version.  Use class-based exceptions."
>
> If I have anything to do with it, they _will_ be deprecated in 2.5.
> There is simply no excuse for writing new code using string
> exceptions.
>

PEP 352 will deprecate raising string exceptions in 2.5 .

> Cheers,
> mwh
> (PS: are people still interested in my new-style exceptions patch?
>  http://bugs.python.org/1104669)

I am.  I was planning to use the patch as a base for implementing PEP
352.  Guido is pretty much ready to accept the PEP, he just has not
officially pronounced yet.

-Brett


More information about the Python-Dev mailing list