Playing with Dict - Can anyone see a way around this?

Charlie Clark charlie at begeistert.org
Sat May 19 10:05:20 EDT 2001


s713221 at student.gu.edu.au wrote:
> Somebody mentioned in this group a couple of months ago, the
> posibility
> of making [].keys, [].items and [].values directly scriptable, so you
> could iterate over them either by calling them, or by treating them as
> lists. I've taken their suggestion as far as I can go as an exercise
> in
> curiosity, but have run into a little bit of a problem. I took their
> suggestion of making keys, values and items, classes rather than
> functions.
>
>From what I understand you should check out the looping PEP on the
Python website. Looping through dictionaries are scheduled for the next
release.

Charlie



More information about the Python-list mailing list