Proposal: Moratorium on Python language changes
Posted Oct 22, 2009 16:13 UTC (Thu) by
nevyn (subscriber, #33129)
In reply to:
Proposal: Moratorium on Python language changes by hazmat
Parent article:
Proposal: Moratorium on Python language changes
fact of the matter afaics, is that most organizations still just use the feature set from python 2.3/2.4 core
2.4 is what is in RHEL-5, so unless you want to do a lot of work you are stuck with that for most production work.
alot of the new features are infrequently used. decorators (func and class) saw large uptake
They work fine in 2.4, and are pretty useful.
but i only see a handful of references to context managers (with)
2.4 didn't have with, and even 2.5 has to have it specially enabled. And you have to wait for 2.6 before you can do multiple expressions per. 'with'. I'm also not convinced that everyone will want to make all their objects context managers.
i can't say i've seen a single conditional expression.
Even if that was in 2.3, I'd never use it ... has to be the most ugly implementation of that feature.
From 2.6.x the new string.format crack seems complete insanity, preferring one DSL over another for no sane reason that I can see. My guess is that java/.net programmers will use it, and C/old-python programers will ignore it ... but maybe I'm wrong.
On the other side I'm shocked it's taken this long for "0b" to get into the language, and I'm still amazed/disappointed that they haven't added perl's _ number seperator (Eg. 1_000_000 is a valid number in perl). Having ** work on any mapping in 2.6.x will certainly stop some of my cursing, dito. keyword args. after *args (although I hit that much less). Adding more tweaks like these would be a much bigger benefit than loss, IMO.
But in general given that it looks like RHEL-6 is going to be based on a 2.6.x variant, not changing the language too much from that for a few years seems like a good idea.
(
Log in to post comments)