Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'mrab': 0.05; 'convention,': 0.09; 'rule.': 0.09; 'am,': 0.14; 'received:209.85.214.174': 0.14; 'received:mail- iw0-f174.google.com': 0.14; 'result.': 0.14; 'wrote:': 0.14; 'angelico': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:behavior': 0.16; 'protocol': 0.16; 'subject:list': 0.19; '27,': 0.19; 'issue.': 0.19; 'header:In- Reply-To:1': 0.21; 'stores': 0.23; 'fri,': 0.23; 'message- id:@mail.gmail.com': 0.28; 'received:209.85.214': 0.28; 'to:addr :python-list': 0.33; 'chris': 0.34; 'example,': 0.35; 'probably': 0.36; 'received:google.com': 0.37; 'issue': 0.37; 'received:209.85': 0.37; 'but': 0.38; 'subject:: ': 0.38; 'sometimes': 0.39; "i'd": 0.39; 'received:209': 0.39; 'to:addr:python.org': 0.39; 'more': 0.60 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=LVcvsYjPIps34tj3rAsU4NjqmpS5KAzQ4QHUP3FXH/s=; b=FhEI0LPWpRLk7bNOF0v4qv3axnrO7DUsOQ5iM7PVQz/ibhPNzXBCdaFreU18dSq6Zs Dq1OT5/ckjfIDd53XR+kfwZZYaLww76W9SE2IRwOt+ksvRBRV1HuGDuwHeM9I21ARN/Q AcK+YhCShskvix8Y7jU4L1BHKCeloRbKY/RPo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=oFtzQ7gfPkzg3fPx7ktRMnGQPh1I+eGiF2cSw+NgYC9Mt1UbupcHs7FfhpVYAcjruM 1HkRJTThg8aFAwS/D2CjIk5//4KGLpSW8PPesQrN+N77nPhDw+CzYsgTIwuBALkFUmYV PMpAgh/WLn+Zq/EvC7iUaxwm/x8tKG6ULCbCw= MIME-Version: 1.0 In-Reply-To: <4DDE78A1.9070305@mrabarnett.plus.com> References: <16c21256-48df-416a-971f-de49ca4cc981@x6g2000yqj.googlegroups.com> <4DDE78A1.9070305@mrabarnett.plus.com> Date: Fri, 27 May 2011 02:04:00 +1000 Subject: Re: Puzzled by list-appending behavior From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 8 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1306425845 news.xs4all.nl 49039 [::ffff:82.94.164.166]:52689 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:6325 On Fri, May 27, 2011 at 1:58 AM, MRAB wrote: > I'd just like to point out that it's a convention, not a rigid rule. > Sometimes it's not followed, for example, dict.setdefault. dict.setdefault is more like dict.get but it also stores the result. It's probably more a name issue than a protocol issue. Chris Angelico