Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #13031

Re: TypeError: object.__init__() takes no parameters

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'received:verizon.net': 0.07; 'terry': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'subject:parameters': 0.09; 'am,': 0.12; 'def': 0.15; '*never*': 0.16; 'reedy': 0.16; 'subject:() ': 0.16; 'wrote:': 0.16; 'jan': 0.19; 'header:In-Reply-To:1': 0.22; 'away.': 0.23; 'code': 0.25; 'not.': 0.30; 'ran': 0.30; 'class': 0.30; 'error': 0.32; 'does': 0.32; 'to:addr:python-list': 0.33; 'header:User-Agent:1': 0.34; 'header:X-Complaints-To:1': 0.35; 'run': 0.37; 'received:org': 0.38; 'subject:: ': 0.39; 'header:Mime-Version:1': 0.39; 'why': 0.39; 'to:addr:python.org': 0.39; 'receive': 0.67; 'anything.': 0.71; 'subject:skip:o 10': 0.84; '1:47': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: TypeError: object.__init__() takes no parameters
Date Fri, 09 Sep 2011 13:31:21 -0400
References <e4d24c0f-3556-420d-bfed-4b14927d35a4@v16g2000prb.googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host pool-74-109-121-73.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20110812 Thunderbird/6.0
In-Reply-To <e4d24c0f-3556-420d-bfed-4b14927d35a4@v16g2000prb.googlegroups.com>
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.909.1315589550.27778.python-list@python.org> (permalink)
Lines 20
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1315589550 news.xs4all.nl 2415 [2001:888:2000:d::a6]:47415
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:13031

Show key headers only | View raw


On 9/9/2011 1:47 AM, Oliver wrote:

> If I want to run shapes.py I receive this error message:

Others have explained why code that ran once now does not.

> class Container(object):
>      """Container to store  a number of non-overlapping rectangles."""
>      def __init__(self, xsize=1200, ysize=800):
>          super(Container, self).__init__(xsize, ysize)

Remove this line and the error will go away. It *never* did anything.

>          self.rect = Rectangle(0, 0, xsize, ysize)
>          self.boxes = []
>          self.last_placement_strategy = 0

-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

TypeError: object.__init__() takes no parameters Oliver <wildeskraut@googlemail.com> - 2011-09-08 22:47 -0700
  Re: TypeError: object.__init__() takes no parameters Ben Finney <ben+python@benfinney.id.au> - 2011-09-09 16:44 +1000
  Re: TypeError: object.__init__() takes no parameters Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2011-09-09 08:57 +0200
    Re: TypeError: object.__init__() takes no parameters Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-09-09 18:33 +1000
      Re: TypeError: object.__init__() takes no parameters Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2011-09-09 11:11 +0200
      Re: TypeError: object.__init__() takes no parameters Duncan Booth <duncan.booth@invalid.invalid> - 2011-09-09 13:20 +0000
        Re: TypeError: object.__init__() takes no parameters Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-09-09 23:41 +1000
    Re: TypeError: object.__init__() takes no parameters Duncan Booth <duncan.booth@invalid.invalid> - 2011-09-09 09:49 +0000
  Re: TypeError: object.__init__() takes no parameters Terry Reedy <tjreedy@udel.edu> - 2011-09-09 13:31 -0400

csiph-web