Valid Python Code?

Justin Sheehy dworkin at ccs.neu.edu
Wed Feb 16 10:19:59 EST 2000


Anders M Eriksson <anders.eriksson at morateknikutveckling.se> writes:

> I'm just wondering is this a valid Python code snippet?
> 
> import os
> for k,v in os.environ.values():
>     print k,v

No, but if you change os.environ.values to os.environ.items, it will
make a lot more sense.

-Justin

 




More information about the Python-list mailing list