Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.news-service.com!xlned.com!feeder7.xlned.com!news2.euro.net!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.073 X-Spam-Evidence: '*H*': 0.85; '*S*': 0.00; 'received:209.85.214.174': 0.13; 'received:mail-iw0-f174.google.com': 0.13; 'wrote:': 0.15; 'element,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'programmer,': 0.16; 'pm,': 0.16; 'header:In- Reply-To:1': 0.22; 'dictionary': 0.23; 'code': 0.24; "i'm": 0.27; 'fri,': 0.28; 'received:209.85.214': 0.28; 'message- id:@mail.gmail.com': 0.28; '24,': 0.29; 'subject:?': 0.31; 'to:addr:python-list': 0.34; 'depend': 0.37; 'received:google.com': 0.37; 'but': 0.37; 'received:209.85': 0.38; 'subject:: ': 0.38; 'unless': 0.39; 'perhaps': 0.39; 'to:addr:python.org': 0.39; 'received:209': 0.39; 'where': 0.40; 'would': 0.40; 'other.': 0.62; 'jun': 0.67; 'land': 0.77; 'asia.': 0.84; '-->': 0.91 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=56Jlw7+MbYWDuqEM1AV1NwE/09FqHpLf8EktNkPUssk=; b=AsPBmKnT+YS8dTIiCO2UCL9yNK/HPo2QCMlXa2GjROmGq8SZIzV7L6FJnkdq/6LYCX dj+B7nvLjLMJeuVmRJFOCLxEbNEqn+MV9x8nMIy0eFLqHsJJVeWNpvVOSZtQmHkTUksl vz5vCG+JOMuAGSvoZe0SmhEh81+Qhfh7hjLqY= 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=lkbH/zvHXCDX16WU4cyDRfKCU1wgeIQawhQRCUgtGLiBQp9FXe6KifZbF+oG4Edpbt tx85ec4IgUYWeDIo5wEvc6nMUx3r9wJ2mVk7DKoObThlKxMn+JizykOGEWNlqBineH+U j50pt3trwEoBTIatsxBkq8kAYjbfDVj1ixnGk= MIME-Version: 1.0 In-Reply-To: <4E043953.5080705@stoneleaf.us> References: <4E043953.5080705@stoneleaf.us> Date: Fri, 24 Jun 2011 17:46:40 +1000 Subject: Re: Interpreting Left to right? 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: 15 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1308901603 news.xs4all.nl 14139 [::ffff:82.94.164.166]:38713 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:8358 On Fri, Jun 24, 2011 at 5:14 PM, Ethan Furman wrote: > --> x = x['huh'] = {} > --> x > {'huh': {...}} > I would have to call that dodgy practice... unless you have a lot of places where you need a dictionary with itself as an element, I would avoid assignments that depend on each other. Perhaps it's just because I'm a C programmer, but that code smells a lot like the classic "i = i++;" blunder - nearly as bad as land wars in Asia. ChrisA