Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.035 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'received:209.85.223': 0.03; 'typeerror:': 0.09; 'cc:addr:python-list': 0.10; 'def': 0.10; 'thread': 0.11; 'dec': 0.15; 'here"': 0.16; 'output?': 0.16; 'received:209.85.223.173': 0.16; 'subject:class': 0.16; 'wrote:': 0.17; 'parameters': 0.20; '"",': 0.22; 'subject:problem': 0.22; 'posted': 0.22; 'cc:2**0': 0.23; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; '(most': 0.27; 'message- id:@mail.gmail.com': 0.27; 'chris': 0.28; '>>>>': 0.29; 'class': 0.29; 'file': 0.32; 'print': 0.32; 'traceback': 0.33; 'received:google.com': 0.34; 'wrong': 0.34; 'third': 0.34; 'pm,': 0.35; 'posting': 0.35; 'received:209.85': 0.35; 'why': 0.37; 'rather': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'takes': 0.39; 'header:Received:5': 0.40; "you've": 0.61; 'first': 0.61; '30,': 0.62; 'here': 0.65; 'reply': 0.66; 'today': 0.67; 'further,': 0.71; '\xe2\x80\x93': 0.75; 'sender:addr:chris': 0.84; 'aka': 0.91; 'responses': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; 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; bh=LFpN5CLLZUbPef1RMCy0ZtphBfmcYgFxTUeGxvAlswU=; b=d1qM2CkokKI6wl5WN67/LKb7GXvK6NLVCgispD1j/0AcsAouIdLrfqnF3UIu/4TULQ fwjEN90g5ZVYh9ZJ66W/yXkUXUeNK0DjLAejnxZ4TBNfUtFwYRlkmAEYZnqnKEWCy4yh 91BWvimJUW3Sk7F1sbsh7K4e1hxjeBRvUMZDA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding:x-gm-message-state; bh=LFpN5CLLZUbPef1RMCy0ZtphBfmcYgFxTUeGxvAlswU=; b=LMhuIr8iKN2r3Mi337d5qBELjioOj8WsUYLn2ioqWPaXnvquyWD8ibhcwyborvQPxU r8PNJZNafXUohp44qjJjZ+6E02s+6ADyhw2yIoc81+5gZaFRF+WQrMPK3agt58zpBFZ1 0tRtlU+n6GiRJp0Bh+iJ04TJOEKz0RYPUFa9+tkjRB5ZqUIr3hiqyb8XD4eF8Ie/SGta Bz7wr12EBbotpHLuSeZLGcWQkXtpYwQlVU3vZhNTThRmfrO8QylbBQCfNV+XQyeJEaV6 xJnDfLJGibtowS+NxE6G5sh615uXTzIf6DL2CHColhv98RxGufEcwxswOrPwdY6IhRt9 kMZw== MIME-Version: 1.0 Sender: chris@rebertia.com In-Reply-To: References: Date: Sun, 30 Dec 2012 22:55:40 -0800 X-Google-Sender-Auth: 1vmHMGS866T6DS_OXZAVti5RYcU Subject: Re: class problem From: Chris Rebert To: contro opinion Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQlhdHnk494WTz3NvhqKmg0VjP5OygjLO8fqdbFdYHES/KSXwjO1+FgZ1qI+uix6lIPQJ4xU Cc: python-list X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1356936949 news.xs4all.nl 6926 [2001:888:2000:d::a6]:45646 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:35840 On Sun, Dec 30, 2012 at 10:36 PM, contro opinion w= rote: > here is my haha class > class haha(object): > def theprint(self): > print "i am here" > >>>> haha().theprint() > i am here >>>> haha(object).theprint() > Traceback (most recent call last): > File "", line 1, in > TypeError: object.__new__() takes no parameters > > why haha(object).theprint() get wrong output? This marks the third time today that you've posted *this exact same question* to python-list AKA comp.lang.python. You received multiple answers the first time you posted it. Please desist from posting it any further, lest ye get plonk-ed. If you did not understand the responses you obtained, please reply in the original thread and ask for clarification, rather than re-posting. =E2=80=93 Chris