stylistic question -- optional return value

Erik Max Francis max at alcyone.com
Fri Aug 30 06:57:50 CEST 2002


Frank Buss wrote:

> My experience with other languages: Don't do performance tuning until
> you
> have profiled your program and found the hot spots, because often I
> was
> suprised, where the hot spots were.

That's the First Rule of Optimization, and it's true in any language. 
But in particular in Python or any other interpreted language, if
squeezing a few microseconds here or there is _really_ going to make a
big difference to you, you're probably better off using another language
in the first place.  If processing time is of paramount concern, Python
probably isn't the right choice for the project.

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/  \ There is nothing so subject to the inconstancy of fortune as war.
\__/ Miguel de Cervantes
    Church / http://www.alcyone.com/pyos/church/
 A lambda calculus explorer in Python.



More information about the Python-list mailing list