PEP 317: Eliminate Implicit Exception Instantiation

Steven Taschuk staschuk at telusplanet.net
Mon Jun 9 15:05:37 EDT 2003


Quoth Bernhard Herzog:
> Steven Taschuk <staschuk at telusplanet.net> writes:
  [using raise w/ traceback, without warnings, in all 2.x]
> > This is a defect, but I couldn't come up with anything better when
> > I was writing the PEP.
> 
> The easiest would be to introduce the new syntax with the future
> statement in 2.4 and start issuing warnings several releases later.
>
> I'd also recomment not issuing warnings about "raise SomeClass, val" in
> 2.4 either except perhaps when explicitly switched on. 

Ah.  Yes, a slower migration is certainly possible.  One of my
reasons for submitting the PEP was to find out how quickly such a
change could occur -- you're not the only person to suggest it
would have to be slower than I propose.

  [...]
> > Part of my problem here is that I'm not
> > familiar enough with real-life uses of the traceback argument.  Do
> > you use it?
> 
> Yes, occasionally.

I'd like to hear more about this -- in what circumstances, and to
what end?

-- 
Steven Taschuk                               staschuk at telusplanet.net
"What I find most baffling about that song is that it was not a hit."
                                          -- Tony Dylan Davis (CKUA)





More information about the Python-list mailing list