Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #5483
| References | <fb474512-8d88-424b-b7ef-01e20d04478e@h36g2000pro.googlegroups.com> <mailman.1618.1305519199.9059.python-list@python.org> <70608e59-3316-44ce-9d98-2b170d497839@z15g2000prn.googlegroups.com> |
|---|---|
| From | Ian Kelly <ian.g.kelly@gmail.com> |
| Date | 2011-05-15 22:54 -0600 |
| Subject | Re: TypeError: __init__() takes exactly 1 positional argument (2 given) |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1622.1305521675.9059.python-list@python.org> (permalink) |
On Sun, May 15, 2011 at 10:30 PM, Gnarlodious <gnarlodious@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. http://code.google.com/p/modwsgi/wiki/DebuggingTechniques > 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> I don't think those are related. If it were an intentional change in Python from 2007, then you would be seeing the error in both versions. I don't see how the stackoverflow link has any bearing on the error at all. > It looks like we are now expected to initialize instance variables > with a setter statement? You mean like this? x = Foo() x.y = z No, there is no such expectation.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
TypeError: __init__() takes exactly 1 positional argument (2 given) Gnarlodious <gnarlodious@gmail.com> - 2011-05-15 20:53 -0700
Re: TypeError: __init__() takes exactly 1 positional argument (2 given) harrismh777 <harrismh777@charter.net> - 2011-05-15 22:59 -0500
Re: TypeError: __init__() takes exactly 1 positional argument (2 given) Chris Rebert <clp2@rebertia.com> - 2011-05-15 21:10 -0700
Re: TypeError: __init__() takes exactly 1 positional argument (2 given) Ian Kelly <ian.g.kelly@gmail.com> - 2011-05-15 22:12 -0600
Re: TypeError: __init__() takes exactly 1 positional argument (2 given) Gnarlodious <gnarlodious@gmail.com> - 2011-05-15 21:30 -0700
Re: TypeError: __init__() takes exactly 1 positional argument (2 given) Chris Rebert <clp2@rebertia.com> - 2011-05-15 21:44 -0700
Re: TypeError: __init__() takes exactly 1 positional argument (2 given) Gnarlodious <gnarlodious@gmail.com> - 2011-05-15 21:53 -0700
Re: TypeError: __init__() takes exactly 1 positional argument (2 given) Ian Kelly <ian.g.kelly@gmail.com> - 2011-05-15 22:54 -0600
Re: TypeError: __init__() takes exactly 1 positional argument (2 given) Gnarlodious <gnarlodious@gmail.com> - 2011-05-15 22:08 -0700
Re: TypeError: __init__() takes exactly 1 positional argument (2 given) Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-05-16 04:31 +0000
csiph-web