More on "with" statement
Erik Max Francis
max at alcyone.com
Sat Jul 14 01:03:40 EDT 2001
Roman Suzi wrote:
> Programmers must be lazy to some degree. So, they tend to write
>
> a*(b+c+d+e)
>
> instead of
>
> a*b+a*c+a*d+a*e
That's just plain more efficient. Four additions and one multiply
instead of three additions and four multiplies.
--
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 are no dull subjects. There are only dull writers.
\__/ H.L. Mencken
Physics reference / http://www.alcyone.com/max/reference/physics/
A physics reference.
More information about the Python-list
mailing list