News for hackers. Stuff that matters.
Re:Improving your (Python) code with modern idioms by rbanffy on Tuesday May 08, 2012 @11:01AM (#3943918)
Well...

List comprehensions have been around in Python since 2000 and generator expressions were introduced in 2.3 (but you could import them from __future__ as early as 2.2) and also build generators without them.

Every future version of Python that tweaks the class system will always be able to claim every previous version didn't have "new classes".

Decorators (we don't call them annotations) have syntactic support since 2.4.

I'm not an expert in Ruby's evolution but it certainly looks like it got a lot of stuff right. I can't find much about its evolution, however. I'd like to see how it changed over time.

There are no comments on this comment yet.