book example confusion

Fredrik Lundh fredrik at pythonware.com
Sat Sep 13 04:47:45 EDT 2008


byron wrote:

> Being that each function is an object, a name assignment to
> (tmp1,tmp2) doesn't actually evaluate or run the function itself until
> the name is called..

the above would be true if the code had been

    tmp1, tmp2 = f1, f2

but it isn't.  look again.

</F>




More information about the Python-list mailing list