[Python-Dev] default of returning None hurts performance?

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Sep 1 02:01:27 CEST 2009


Antoine Pitrou wrote:

> Did your coworker run any timings instead of basing his assumptions on bytecode
> size?

In any case, what are you suggesting -- that the last value
returned by a function call in the body should be the
default return value?

I don't think the unpredictability that would introduce
would be a good idea.

-- 
Greg


More information about the Python-Dev mailing list