Path: csiph.com!usenet.pasdenom.info!news.albasani.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.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.025 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'received:209.85.223': 0.03; 'things.': 0.05; 'python': 0.09; 'sure,': 0.09; ':-)': 0.13; '...]': 0.16; 'oct': 0.16; 'wrote:': 0.17; 'thu,': 0.17; 'header :In-Reply-To:1': 0.25; 'values': 0.26; 'am,': 0.27; 'message- id:@mail.gmail.com': 0.27; 'chris': 0.28; 'code': 0.31; 'generally': 0.32; 'getting': 0.33; 'zero': 0.33; 'to:addr:python- list': 0.33; 'received:google.com': 0.34; 'especially': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'but': 0.36; 'method': 0.36; 'bad': 0.37; 'october': 0.37; 'does': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'object': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'easy': 0.60; 'matter': 0.61; 'side': 0.61; 'yourself': 0.77; 'bitten': 0.84 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:x-originating-ip:in-reply-to:references:from :date:x-google-sender-auth:message-id:subject:to:content-type :x-gm-message-state; bh=Xkzi2Prd+IrfjFoTjwYOXTwXmJrx3Y+11PiHVpsl0K8=; b=j881QhGLarRwRf9Z/Ud0yKCgASVfNGPESkHncWw4gU62c8Sm/9RTkiyjwI0OXudD4l 58ii/6DwdjC9Y0RG/pqsg+S5LDySqOdwBa0NU4yrO2gGD0S2igiKl+Vl6upcB15bE3H9 Q5smz2dizAu2UJOqAgO9cRqp08UijQ/5NFLLzOgt1a468+1rG7sWh9dzmsAaDnBJAdoA hbMakt6hv+t7GnCNjxDkSxlJWMaXxbvkK/60q4eYvUD77F1+XRqzlE/iAG7lHWoIn/jx DRr4sgC8q1WXvcnj5+2iV3AYaCbwZvjcZpUV9OdSXQIpC2r00b8enu3A0+Atmxet7j06 Ojzg== MIME-Version: 1.0 Sender: z@etiol.net X-Originating-IP: [190.104.21.3] In-Reply-To: References: <5087E540.8060504@davea.name> From: Zero Piraeus Date: Wed, 24 Oct 2012 12:10:07 -0400 X-Google-Sender-Auth: IHUmjAKArvLsy2aSPHSy2Oiz-Cg Subject: Re: classes To: python-list@python.org Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQmuP50iQYqetlrgkVZJghT3xr4prTXbgBbg/yFLg41bdRj8lRZkYIzwpYePpm8m98KQv6P9 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: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1351095030 news.xs4all.nl 6849 [2001:888:2000:d::a6]:33764 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:32055 : On 24 October 2012 11:18, Chris Angelico wrote: > On Thu, Oct 25, 2012 at 2:14 AM, Zero Piraeus wrote: >> [... on return values and side effects ...] > > Side point: It's not that it's *bad* code or even bad style; It's a matter of taste, sure, but especially for a beginner, it's easy to find yourself using a method for its return value and forgetting that it actually does something to the object as well ... and then getting bitten later. > it just isn't the way Python generally does things. When in Rome ... :-) -[]z.