Confusion over calling a nested function inside a parent function

Pyenos pyenos at pyenos.org
Fri Dec 22 08:27:16 EST 2006


[code]
class WORK:
    def getwork(self):
        def choosetable(self):pass
        choosetable() #TypeError: choosetable() takes exactly 1
                      #argument (0 given)
[/code]

Calling choosetable() at the above location gives me the error
described above. 





More information about the Python-list mailing list