Proposal: Moratorium on Python language changes
Posted Oct 22, 2009 19:04 UTC (Thu) by
nevyn (subscriber, #33129)
In reply to:
Proposal: Moratorium on Python language changes by sergey
Parent article:
Proposal: Moratorium on Python language changes
I use with and conditional expressions all the time and write context managers very often. It makes my life easier that open/close semantics is part of the language. I don't even have to document how to grab a resource and give it back when done -- it's obvious.
I agree conditional expressions are mostly opinion but for 'with' ... can you give some examples? I guess my biggest confusion is why you need it over just using __del__ and reference counting? (what I do with files). It also seems weird because now you can't easily change code to move things out of blocks, because the end of the block explicitly closes one or more resources (generally what I need to do with dbconnections).
All these arguments above are actually in favor of keeping the language fluid: there doesn't seem to be a single case where new features harm anybody.
I agree, I think with the move to py3k breaking so much old code and generally causing lots of pain ... people have probably voiced that they want more stability, but I don't think it's the new features which were the problem (Eg. I moved to 2.6.x almost immediately, I'm still dreading moving to py3k).
I think RHEL or any other distribution's choice is much less relevant than it seems.
I guess it depends on who you are, and it's possible be that a "lot" of large companies will move to internal versions of py3k before RHEL-6 is dead ... but my code gets deployed on other people's RHEL-x so I have no choice, and I know of a lot of people who own their production servers who would have to have a very big reason to maintain their own version of a big critical like python.
(
Log in to post comments)