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


Groups > comp.lang.python > #8358 > unrolled thread

Re: Interpreting Left to right?

Started byChris Angelico <rosuav@gmail.com>
First post2011-06-24 17:46 +1000
Last post2011-06-24 17:46 +1000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Interpreting Left to right? Chris Angelico <rosuav@gmail.com> - 2011-06-24 17:46 +1000

#8358 — Re: Interpreting Left to right?

FromChris Angelico <rosuav@gmail.com>
Date2011-06-24 17:46 +1000
SubjectRe: Interpreting Left to right?
Message-ID<mailman.358.1308901603.1164.python-list@python.org>
On Fri, Jun 24, 2011 at 5:14 PM, Ethan Furman <ethan@stoneleaf.us> 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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web