Python 2.6 was basically a stepping stone to make converting to Python 3 easier. A lot of the features destined for Python 3 were implemented in 2.6 if they didn't break backward compatibility with syntax and the class libs.
Why weren't set literals ({1, 2, 3}
), set comprehensions ({v for v in l}
), or dict comprehensions ({k: v for k, v in d}
) among them? In particular dict comprehensions would have been a great boon... I find myself using the considerably uglier dict([(k, v) for k, v in d])
an awful lot lately.
Is there something obvious I'm missing, or was this just a feature that didn't make the cut?