Got confused by the following code: >>> a [6, 3, 1] >>> b [4, 3, 1] >>> c {1: [[6, 3, 1], [4, 3, 1]], 2: [[6, 3, 1]]} >>> c[2].append(b.sort()) >>> c {1: [[6, 3, 1], [1, 3, 4]], 2: [[6, 3, 1], None]} #why c can not append the sorted b?? >>> b.sort() >>> b [1, 3, 4] -- http://mail.python.org/mailman/listinfo/python-list
- about sort and dictionary Shi Mu
- Re: about sort and dictionary [EMAIL PROTECTED]
- Re: about sort and dictionary Magnus Lycka
- Re: about sort and dictionary Duncan Booth
- Re: about sort and dictionary [EMAIL PROTECTED]
- Re: about sort and dictionary [EMAIL PROTECTED]
- Re: about sort and dictionary [EMAIL PROTECTED]
- Re: about sort and dictionary Fredrik Lundh
- Re: about sort and dictionary OKB (not okblacke)
- Re: about sort and dictionary [EMAIL PROTECTED]
- Re: about sort and dictio... Alex Martelli