Super Tuples - foo.py (1/1)
Paul Prescod
paul at prescod.net
Thu Dec 30 04:44:28 EST 1999
Eugene Goodrich wrote:
>
> import types
>
> class tuplish:
> def __init__ (self):
> ....
Here's a hint: if you think you need exec to handle a problem, there is
probably a Python feature that will do the same thing without exec. In
this case I think you are looking for setattr and getattr. You should
also know that Python has no problem with inline function definitions.
Paul Prescod
More information about the Python-list
mailing list