Re: Nested Dicts

2009-12-05 Thread Victor Subervi
On Sat, Dec 5, 2009 at 12:39 PM, Carsten Haese wrote: > Victor Subervi wrote: > > Of course I knew about those indentation errors > > That may be so, but you cleverly disguised this fact by saying the exact > opposite. > I will try not to make such assumptions in the future. Forgive me for leadin

Re: Nested Dicts

2009-12-05 Thread Carsten Haese
Victor Subervi wrote: > Of course I knew about those indentation errors That may be so, but you cleverly disguised this fact by saying the exact opposite. -- Carsten Haese http://informixdb.sourceforge.net -- http://mail.python.org/mailman/listinfo/python-list

Re: Nested Dicts

2009-12-05 Thread Victor Subervi
On Sat, Dec 5, 2009 at 12:01 PM, Carsten Haese wrote: > Victor Subervi wrote: > d = {'cat': {'one':'two'}} > for a, b in d: > > ... > > File "", line 2 > > > > ^ > > IndentationError: expected an indented block > d = {'cat': {}} > for a, b in d: > > ... > > File "", lin

Re: Nested Dicts

2009-12-05 Thread Carsten Haese
Victor Subervi wrote: d = {'cat': {'one':'two'}} for a, b in d: > ... > File "", line 2 > > ^ > IndentationError: expected an indented block d = {'cat': {}} for a, b in d: > ... > File "", line 2 > > ^ > IndentationError: expected an indented block > > So app

Re: Nested Dicts

2009-12-05 Thread MRAB
Victor Subervi wrote: Hi; I have the following error: /var/www/html/angrynates.com/cart/catTree.py in getChildren(levelDict={'cat3': {}}, level=0) 23 if level > MAXLEVEL: 24 return #possibly the data has a cycle/loop 25 for (nm, dt) i

Re: Nested Dicts

2009-12-05 Thread D'Arcy J.M. Cain
On Sat, 5 Dec 2009 10:52:10 -0500 Victor Subervi wrote: > Hi; > I have the following error: > > /var/www/html/angrynates.com/cart/catTree.py in > getChildren(levelDict={'cat3': {}}, level=0) >23 if level > MAXLEVEL: >24 return #possibly the data has a cycle/loop >25 for (nm,