Confusion over calling a nested function inside a parent function
Bruno Desthuilliers
bdesth.quelquechose at free.quelquepart.fr
Sat Dec 23 08:41:31 EST 2006
MacDonald a écrit :
> Pyenos wrote:
>
>>[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.
>
>
> Although choosetable is a memeber of an instance method,
s/is a member of/is defined in/
More information about the Python-list
mailing list