Pete Emerson <pemer...@gmail.com> writes: > I found out that adding a two dimensional element without defining > first dimension existing doesn't work: > >>>> data = {} >>>> data['one']['two'] = 'three'
You can use a tuple as a subscript if you want: data = {} data['one','two'] = 'three' -- http://mail.python.org/mailman/listinfo/python-list