[Python-3000] PyException_Set{Traceback,Cause,Context}

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Jun 23 03:25:03 CEST 2008


Antoine Pitrou wrote:
> what is the reason for
> PyException_Set{Traceback,Cause,Context} not to INCREF their argument?

Probably because the vast majority of the time the
caller is not doing anything further with these
references, so this arrangement saves some increfs
and decrefs.

-- 
Greg


More information about the Python-3000 mailing list