Valid Python Code?

Fred L. Drake, Jr. fdrake at acm.org
Wed Feb 16 16:16:24 CET 2000


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

  Try using os.environ.items().


  -Fred

--
Fred L. Drake, Jr.	  <fdrake at acm.org>
Corporation for National Research Initiatives




More information about the Python-list mailing list