On May 19, 10:33 am, Jia Lu <[EMAIL PROTECTED]> wrote: > Hi all > > I see dict type can do 1-to-1 pattern, But is there any method to do > 1-to-many, many-to-1 and many-to-many pattern ?
How about: one_to_many = {"a":[10, "red", 2.5]} many_to_1 = {("red", 2.5, 3):"hello"} many_to_many = {("red", 2.5, 3):[10, 20, 30]} In reality, everything is mapped 1-1. I wonder if there is a computer language where that isn't the case? -- http://mail.python.org/mailman/listinfo/python-list