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

Raymond Hettinger python at rcn.com
Tue Sep 1 17:49:07 CEST 2009


>
> I fail to understand this crude logic.

If a function contains any looping (C or otherwise) or does much in  
the way of meaningful work, then it's unlikely that the single POP_TOP  
associated with an implied "return None" is taking much of the total  
runtime.


Raymond


More information about the Python-Dev mailing list