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

Gnarlodious gnarlodious at gmail.com
Mon May 16 00:53:45 EDT 2011


Well, I have a whole lot of scripts where I could say something like
this:

def __init__(self, var1, var2, var3...):

Now suddenly I have to change them all to run in Python 3.1.3?

This is apparently not a bug. And I rebooted still getting the same
behavior.

Can someone explain it?

-- Gnarlie



More information about the Python-list mailing list