On Fri, Jun 24, 2011 at 5:14 PM, Ethan Furman <et...@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 -- http://mail.python.org/mailman/listinfo/python-list