Guido at OSCON 2002.
"python regrets" print, integer division, xrange, raw_input, backticks etc.,
3.1 >> Feature FREEEEEEEZE
-
Sets built in. frozen sets. immutable.
-
Exceptions
except as e.
-
Stricter comparisons 3 < "1" # true in python 2.x 3 < ">"1" # unorderable types exception. "In the face of ambiguity refuse the temptation to guess"
-
string formatting. format() method on strings.
-
advanced unpacking.
x = (1,2,3,4,5) a, *b, c = x a -> 1 b -> [2,3,4] c -> 5
-
dictionary (and set) comprehensions new_dict = {row[0]: row[1:] for row in results}
bytes do not have many of the string methods.