Must function defs appear earlier than calls?

Hamilcar Barca hamilcar at never.mind
Tue May 4 04:19:59 EDT 2004


In article <4096E9F8.38ABF26D at shaw.ca> (Tue, 04 May 2004 00:55:13 +0000),
SeeBelow wrote:

> Must function defs appear earlier in a file than use of their name?

No.  Function definitions must be executed before the name of the function
is referenced.  References can be calls but can also be arguments in
method calls and values in assignment statements (and there are probably
other cases but it's 2:00AM).



More information about the Python-list mailing list