Referencing objects own functions
jackson.pip at gmail.com
Tue Oct 19 17:45:42 CEST 2004
Pretend I have the following:
commands = [
'desc': 'Print help',
print "Help is on the way!"
I would like to add another entry to the commands dict. called 'func'
or something which contains a reference to a function in the foo
class. What would the entry look like if atall possible?
I would rather not use eval if possible.
More information about the Python-list