TypeError: __init__() takes exactly 1 positional argument (2 given)

harrismh777 harrismh777 at charter.net
Sun May 15 23:59:57 EDT 2011


Gnarlodious wrote:
> class GnomonBase(object):
>      def __init__(self, bench):     <=======  (1)   (2)
>          # do stuff

This only answers the surface question.... I have not taken any time to 
see or understand what (if anything) you are doing which might make any 
sense... only that the message is complaining about giving __init__() 
two parms, because you gave it two parms....

... I know you're joking, but I don't know why...?






kind regards,
m harris





More information about the Python-list mailing list