[Python-Dev] Exception Reorg PEP revised yet again

Brett Cannon bcannon at gmail.com
Thu Aug 11 02:47:39 CEST 2005


On 8/10/05, Aahz <aahz at pythoncraft.com> wrote:
> On Wed, Aug 10, 2005, Brett Cannon wrote:
> > On 8/10/05, Raymond Hettinger <raymond.hettinger at verizon.net> wrote:
> >>
> >> If the name bugs you, I would support renaming it to PlatformError or
> >> somesuch.  That would make it free for use with Mac errors and Linux
> >> errors.  Also, it wouldn't tie a language feature to the name of an MS
> >> product.
> >
> > I can compromise to this if others prefer this alternative.  Anybody
> > else have an opinion?
> 
> Googling for "windowserror python" produces 800 hits.  So yes, it does
> seem to be widely used.  I'm -0 on renaming; +1 on leaving things as-is.

But Googling for "attributeerror python" turns up 94,700, a factor of
over 118.  OSError turns up 20,300 hits; a factor of 25.  Even
EnvironmentError turns up more at 5,610 and I would expect most people
don't use this class directly that often.

While 800 might seem large, it's puny compared to other exceptions. 
Plus, if you look at the first 10 hits, 4 are from PEP 348, one of
which is the top hit.  =)

-Brett


More information about the Python-Dev mailing list