function prototyping?

Burton Samograd kruhftREMOVE at gmail.com
Thu Apr 13 14:32:48 EDT 2006


"infidel" <saint.infidel at gmail.com> writes:

> If you want the user to be able to (re)define them in config.py, why
> not just define them there in the first place?  I may be wrong, but I
> think "global" means "module level" rather than "interpreter level".

That's what I'm trying to do but I'm running into problems with
the function values, since they haven't been defined yet.  

I'm a C programmer, so I'm doing it in a bit of a C like way;
prototype the function, initalize the array using the prototypes, have
the functions defined somewhere else and then let the linker work it
all out for me.  I was hoping that python had some sort of lazy
evaluation scheme for this type of behaviour so that you could defer
linkage (or variable evalutation) until runtime, or at least variable
reference (through the use of thunks or some sort).  Maybe I was
hoping for too much :)

-- 
burton samograd					kruhft .at. gmail
kruhft.blogspot.com	www.myspace.com/kruhft	metashell.blogspot.com



More information about the Python-list mailing list