I've been playing with afterhoursprogramming python tutorial, and I was
going to write a question about
myExample = {'someItem': 2, 'otherItem': 20}
for a in myExample:
print (a, myExample[a])
print (a)
returning
('someItem', 2)
someItem
('otherItem', 20)
otherItem
Which is to say, why would the output formatting be completely different
(parens, quotes) between the two print statements, but then when I run it
in Python 3.3, it's the more reasonable
otherItem 20
otherItem
someItem 2
someItem
Which I'm much happier with. I assume this just reflects changes in the
print command default formatting: is there some reasonably efficient way to
see where/when/how this changed? I guess it would be buried in a PEP
somewhere?
--
Keith
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor