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: 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: References: 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 To: Gnarlodious 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Sun, May 15, 2011 at 8:53 PM, Gnarlodious wrote: > Can someone please explain what I am doing wrong? > > Calling script: > > from Gnomon import GnomonBase > Gnomon=3DGnomonBase(3) > > > Called script: > > class GnomonBase(object): > =C2=A0 =C2=A0def __init__(self, bench): > =C2=A0 =C2=A0 =C2=A0 =C2=A0# 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