Pyenos a écrit :
> [code]
You already got the answer - just a pair of stylistic advices:
> class WORK:
1/ By convention, ALL_UPPER names denote (pseudo) symbolic constants.
The convention for class names is CamelCase.
2/ better to use new-style classes.
=>
class Work(object):
...
--
http:
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
"MacDonald" <[EMAIL PROTECTED]> writes:
> Pyenos wrote:
> > [code]
> > class WORK:
> > def getwork(self):
> > def choosetable(self):pass
> > choosetable() #TypeError: choosetable() takes exactly 1
> > #argument (0 given)
> > [/code]
> >
> > Calling chooset
Pyenos <[EMAIL PROTECTED]> 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 t
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