Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!xlned.com!feeder5.xlned.com!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.059 X-Spam-Evidence: '*H*': 0.88; '*S*': 0.00; 'python:': 0.05; 'parameter.': 0.09; 'url:peps': 0.09; "subject:' ": 0.15; 'simplicity.': 0.16; 'cc:addr:python-list': 0.16; 'level,': 0.18; 'cc:no real name:2**0': 0.20; 'seems': 0.20; 'cc:2**0': 0.22; 'header:In-Reply-To:1': 0.22; 'bugs': 0.28; 'subject:need': 0.28; 'message-id:@mail.gmail.com': 0.29; 'cc:addr:python.org': 0.30; 'url:dev': 0.30; 'class': 0.30; 'subject:?': 0.31; 'things': 0.34; 'url:python': 0.36; 'question': 0.36; 'but': 0.37; 'think': 0.38; 'hello,': 0.38; 'received:google.com': 0.38; 'url:org': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.39; 'charset:windows-1252': 0.60; 'gut': 0.84; 'subject:always': 0.84; 'subject:class': 0.84; 'subject:self': 0.84; 'zen': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=P+zwpbAsNJUqdlJTXirUVGthqJjBdiUNTCwwOHVwHYc=; b=O8AfAvX1ee1Kmo4eKscON8QvHJ87Zh+incs6istS7bF/Ilm+COtLKmVn2hSMfSP8+L NkUnfY+akyQWn8DMldLA3w7tHOHDJsOdBqjKJfGMS7T3oN4/VffHtFCR/ovPiUXAkPcA ldtWVMNIUdgZERyI8GFkEs1m9UyzJmX5aQnAM= MIME-Version: 1.0 In-Reply-To: <0dc26f12-2541-4d41-8678-4fa53f347acf@g9g2000yqb.googlegroups.com> References: <0dc26f12-2541-4d41-8678-4fa53f347acf@g9g2000yqb.googlegroups.com> From: Javier Collado Date: Wed, 31 Aug 2011 17:10:45 +0200 Subject: Re: Why do class methods always need 'self' as the first parameter? To: "T. Goodchild" Content-Type: text/plain; charset=windows-1252 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1314803468 news.xs4all.nl 2431 [2001:888:2000:d::a6]:54939 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:12488 Hello, 2011/8/31 T. Goodchild : > But one of the things that bugs me is the requirement that all class > methods have 'self' as their first parameter. =A0On a gut level, to me > this seems to be at odds with Python=92s dedication to simplicity. I think the answer to this question is part of the zen of python: <> http://www.python.org/dev/peps/pep-0020/ Regards, Javier