Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #5476
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!selfless.tophat.at!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <chris@rebertia.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.007 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'positional': 0.09; 'sun,': 0.09; 'pm,': 0.11; 'exception': 0.12; 'wrote:': 0.14; 'subject:() ': 0.16; 'traceback.': 0.16; 'two?': 0.16; 'variable.': 0.16; 'argument': 0.16; 'stuff': 0.18; 'cc:no real name:2**0': 0.20; 'cc:2**0': 0.20; 'cheers,': 0.20; 'header:In-Reply-To:1': 0.22; 'cc:addr:python-list': 0.22; 'wrong?': 0.23; 'calling': 0.25; 'chris': 0.27; 'message-id:@mail.gmail.com': 0.28; 'class': 0.29; 'cc:addr:python.org': 0.31; 'typeerror:': 0.31; 'does': 0.31; 'import': 0.32; 'called': 0.32; 'someone': 0.33; 'post': 0.34; 'doing': 0.36; 'think': 0.36; 'exactly': 0.37; 'received:google.com': 0.38; 'but': 0.38; 'explain': 0.39; 'subject: (': 0.39; 'takes': 0.40; 'header:Received:5': 0.40; '2011': 0.62; 'received:74.125.83': 0.69 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=rebertia.com; s=google; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=WFu+NZpmUkHUlpYONEH0QdlR739sheElZw6SBK8yB5I=; b=P3eGVlaAv39OIbFDtdm74EQV2Y7Wcf7d/FbXPNrCOTzmdz7gQNq5MsN1jjc7zCv9RZ 6G+5t6bRk+r1c9hQqvJBLfQe2YQutW5pkhVg7feZwwT3TUAqVbqMT5SXxTJLcplCRVCp MZuXqpAgN9oOIN1K7BOrUXm4J92GPmr2kCmB8= |
| DomainKey-Signature | a=rsa-sha1; c=nofws; d=rebertia.com; s=google; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=Xkz3rBWBWz+CkEXvVQtkDGXPkAXFO68Sw2TJDThC88x230O90ZOzW6DQiVnERoRH7r rJeB0IgiVT3K0cCwlCkU6M3fXFmd5yvaKSbN1VA8B4SIRoIYeXkpnKfaZ1bnsvKXr2FD sp/kyyW0f8eMHHDXC2HOiLHfr3em/sCJOr2X8= |
| MIME-Version | 1.0 |
| Sender | chris@rebertia.com |
| In-Reply-To | <fb474512-8d88-424b-b7ef-01e20d04478e@h36g2000pro.googlegroups.com> |
| References | <fb474512-8d88-424b-b7ef-01e20d04478e@h36g2000pro.googlegroups.com> |
| Date | Sun, 15 May 2011 21:10:06 -0700 |
| X-Google-Sender-Auth | kGjnhs9VnIx-8z2McL2JJlV2Ifw |
| Subject | Re: TypeError: __init__() takes exactly 1 positional argument (2 given) |
| From | Chris Rebert <clp2@rebertia.com> |
| To | Gnarlodious <gnarlodious@gmail.com> |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | quoted-printable |
| Cc | python-list@python.org |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1617.1305519015.9059.python-list@python.org> (permalink) |
| Lines | 25 |
| NNTP-Posting-Host | 82.94.164.166 |
| X-Trace | 1305519015 news.xs4all.nl 81474 [::ffff:82.94.164.166]:59149 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:5476 |
Show key headers only | View raw
On Sun, May 15, 2011 at 8:53 PM, Gnarlodious <gnarlodious@gmail.com> wrote: > Can someone please explain what I am doing wrong? > > Calling script: > > from Gnomon import GnomonBase > Gnomon=GnomonBase(3) > > > Called script: > > class GnomonBase(object): > def __init__(self, bench): > # do stuff > > But all I get is: > TypeError: __init__() takes exactly 1 positional argument (2 given) > > I don't understand, I am only sending one variable. What does it think > I am sending two? Please post the *full* exception Traceback. Cheers, Chris
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