Blaine <cact…@yahoo.com> writes:
> I wrote some stuff and had a future procedure referenced. It worked > great. Wasn't it up to very recently that Python procedures had to be > defined before use, not following?
You can have forward references at compile time, but the target procedure has to be defined before you can execute it. That is, def a(): b() def b(): print('hi') a() works fine. Python is interpreted and "def" is an executable statement, actually a type of assignment statement. So by the time you call a(), the "def b():" has actually run, so you can call b.