php vs python

Afanasiy abelikov72 at hotmail.com
Sun Jan 5 07:51:56 CET 2003


On Sat, 4 Jan 2003 21:21:05 -0500, pythonhda
<pythonhda at yahoo.com.replacepythonwithlinux> wrote:

>for key in d:
>	print key, '=', d[key]
>

Someone please verify this example is incorrect.
Putting the value in a variable named 'key' still
makes it a value, not a key... Right?

Wouldn't this code result in a no-index error on d[key] ?




More information about the Python-list mailing list