[Python-Dev] PEP 490: Chain exceptions at C level
solipsis at pitrou.net
Sun Jun 21 11:40:00 CEST 2015
On Sat, 20 Jun 2015 21:16:48 +0200
"M.-A. Lemburg" <mal at egenix.com> wrote:
> On 20.06.2015 09:30, Victor Stinner wrote:
> > Hi,
> > I didn't get much feedback on this PEP. Since the Python 3.6 branch is
> > open (default), it's probably better to push such change in the
> > beginning of the 3.6 cycle, to catch issues earlier.
> > Are you ok to chain exceptions at C level by default?
> I think it's a good idea to make C APIs available to
> simplify chaining exceptions at the C level, but don't
> believe that always doing this by default is a good idea.
> It should really be a case-by-case decision, IMO.
> Note that Python exceptions are cheap to raise in C
> (very much unlike in Python), so making this more
> expensive by default would introduce a significant
> overhead - without much proven benefit.
I agree with Marc-André.
More information about the Python-Dev