Printing your enviroment settings

Wednesday, Dec 26, 2007

for k,v in os.environ.items(): print “%s=%s” % (k,v) Preferred method.

print "\n".join(["%s=%s" % (k,v) for k,v in os.environ.items()])

However, this is faster. Just one print. Ho hummm…