reference data in a dictionary

Ben Finney bignose+hates-spam at benfinney.id.au
Wed Feb 14 15:39:24 EST 2007


"Wensui Liu" <liuwensui at gmail.com> writes:

> i am new to python and have a question about referencing data in a
> dict.  is there anyway that allows me to do something like:

> dict[['row1', 'row2', .....'row100']]

What behaviour would you expect from that statement? If we know what
you're trying to do, perhaps we can suggest a solution.

-- 
 \        "Like the creators of sitcoms or junk food or package tours, |
  `\         Java's designers were consciously designing a product for |
_o__)                    people not as smart as them."  -- Paul Graham |
Ben Finney




More information about the Python-list mailing list