ntial
amount of effort.
Regards,
Nadeem
--
http://mail.python.org/mailman/listinfo/python-list
That's a really neat way of doing it, thanks a lot! I hadn't realized
how accessible all those globals() dictionaries were. Guess my example
still falls in the 99%... :)
--- nadeem
>
> def defineStruct(name, *parameters):
> class _struct:
> def __init__(self, *init_pa
ame] = eval(name)
I guess I'll go with this unless someone suggests an alternate. Thanks
anyway, :)
--- nadeem
--
http://mail.python.org/mailman/listinfo/python-list
ctions, and function pointers, etc. I'm trying to bundle all that
up behind the scenes.
So, thinking about my problem again, an alternate question may be: Is
it possible, in a function called in a module, to access and update
the global definitions (dictionary or whatever) in the caller module.
--- nadeem
--
http://mail.python.org/mailman/listinfo/python-list
ort *
dynamicdef('plus10', 10)
print help(plus5)
#print help(plus10)# !!! Fails: NameError: name 'plus10' is not
defined
print plus5(20)
print plus10(20)
###
Thanks for any help/suggestions,
---nadeem
--
http://mail.python.org/mailman/listinfo/python-list
are pretty good with Java, and we have a fair amount of experience
doing GUIs in Swing. Hope you guys can help us out.
Nadeem.
--
http://mail.python.org/mailman/listinfo/python-list