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

Chris Rebert clp2 at rebertia.com
Mon May 16 00:44:23 EDT 2011


On Sun, May 15, 2011 at 9:30 PM, Gnarlodious <gnarlodious at gmail.com> wrote:
> I don't have a trace because I am using mod_wsgi under Apache. Maybe
> there is a way to debug using mod_wsgi but I haven't been able to
> figure out how.
>
> My problem is that in order to run mod_wsgi I had to downgrade to
> Python 3.1.3 which may be causing the problem. This website was
> running fine in Py3.2.
>
> I did find an explanation that sounds like this is an intentional
> deprecation in Python:
> <http://stackoverflow.com/questions/625083/python-init-and-self-what-
> do-they-do>
> <http://svn.python.org/view?revision=54539&view=revision>
>
> It looks like we are now expected to initialize instance variables
> with a setter statement?

Er, what are you talking about? That's always been the case; it's
nothing new at all.
Perhaps your "# do stuff" from earlier isn't doing the right stuff?
Posting the actual code would help.

Cheers,
Chris
--
http://rebertia.com



More information about the Python-list mailing list