make order of function definitions irrelevant

John J. Lee jjl at pobox.com
Mon Nov 10 17:21:16 EST 2003


Joerg Schuster <js at cis.uni-muenchen.de> writes:
[...]
> the order of function definitions does matter in python. Does anyone
> know a trick to avoid this? Is there a way to "declare" functions
> without defining them?
> 
> (Making the order of function definitions irrelevant would be useful
> for automatically generated python scripts.)

Aside from what everybody has already said, generating Python code is
almost always a "don't do that" anyway.

Most of the time, it's much better do use Python's dynamic features
instead of code generation.


John




More information about the Python-list mailing list