Discover the best of the web!
Learn more about Digg by taking the tour.
Python 2.5 final released!
python.org — This release includes conditional expressions, absolute and relative imports, unified try/except/finally, new generator features, the 'with' statement, new packages: ctypes, ElementTree, hashlib, sqlite, wsgiref. More details are here: http://docs.python.org/dev/whatsnew/whatsnew25.html
- 560 diggs
- digg it
- beplacid, on 10/12/2007, -1/+4FYI, here's the mailing list announcement: http://mail.python.org/pipermail/python-dev/2006-September/068851.html
(Thanks to folk on #python @ irc.freenode.net) - dope, on 10/12/2007, -15/+0yeah! AFAIK, Google still working on 2.3 (?) but after Guido come to them may be they switch to recent version and we get more better service!
- gnuvince, on 10/12/2007, -1/+4I imagine that if Google made a switch, it would require a tremendous amount of work to update all Python installations and install all the required libraries they need. So don't expect them to switch just yet.
- Jonty, on 10/12/2007, -0/+2What? You're blaming using a slightly outdated version of Python for "bad service"?
- dope, on 10/12/2007, -2/+12Jonty: where I sad said about bad Google service, It is best of all (for me). 2.5 faster then previous versions and they can use it many new places.
python is best language for me, and I'm happy that google use it
- EvilC, on 10/12/2007, -0/+4Having gone through the list of most prominent new features, I'm liking the ternary, the 'with' and the try/except/finally the best. But its definitely good to hear there are some performance improvements in there, too.
- gnuvince, on 10/12/2007, -1/+3I dislike the new ternary operator. Most people I spoke to would've prefered the classical ?: operator or using something like "foo = if True then x else y" which would be more readable than having the condition in the middle, the then clause first and the else clause last.
- mcherm, on 10/12/2007, -0/+10The choice of syntax for the conditional expression ("ternary operator") was a close call. Leading contenders were "{cond} ? {trueval} : {falseval}" which has the advantage of tradition in C-influenced languages but less "readable" than most of Python, "if {cond} then {trueval} else {falseval}" which required an extra keyword, and "{trueval} if {condi} else {falseval}" which Guido chose. I personally feel that the only disadvantage of Guido's choice was that the condition comes in the middle not the start, and it's certainly usable. When the matter was put up for a vote there was a GREAT furor and absolutely no consensus, so there's clearly no single "obvious" answer. In the end, I'm just glad that Python finally has SOME kind of conditional expression -- it's a useful tool.
- trypnotic, on 10/12/2007, -0/+4@gnuvince,
Once I got beyond the knee-jerk "ewwww" reaction, I realized that in practice, that order will make sense. A ternary expression takes the place of a plain value; in the ternary expression, you see the (normal) value of the expression first; then an alternate is invoked afterwards. As long as you create the conditional logic so that the True value is the normal/most common, it will work.
- joe90210, on 10/12/2007, -3/+4sweet
- Manhigh, on 10/12/2007, -1/+7Excellent! ctypes is here!
I expect the amount of C/Fotran libraries available in python to increase sharply. - dickeytk, on 10/12/2007, -1/+6anyone know of a good tutorial on learning python in a windows environment?
- joe90210, on 10/12/2007, -0/+10Dive into Python
http://www.diveintopython.org/toc/index.html - Manhigh, on 10/12/2007, -0/+7For python in general
http://www.diveintopython.org/ - mcherm, on 10/12/2007, -0/+5There are lots of good tutorials... that's one area where Python is particularly blessed. See http://wiki.python.org/moin/BeginnersGuide/Programmers for some starting points.
- transeunte, on 10/12/2007, -2/+5And just because we can't stress enough: http://www.diveintopython.org/
- user, on 10/12/2007, -0/+2Dive into Python is great! Also check out:
How to Think Like a Computer Scientist, Learning with Python
http://www.ibiblio.org/obp/thinkCSpy/
Good luck! - spikespeigel42, on 10/12/2007, -0/+1Here here for How to think like a computer scientist! Its the best python tutorial ive ever seen, even if it does get a bit spotty near the end
- nickdot, on 10/12/2007, -0/+2If you are looking for a good full-featured editor, use SPE. It has good auto-completion and call tips, which are a great help if you are new to python. You can also generate uml diagrams (even as pdf).
http://pythonide.stani.be - brunson, on 10/12/2007, -2/+0@nickdot
There are two types of programmers in the world: Those that use Emacs and those that don't know how. ;-) - Scarblac, on 10/12/2007, -0/+2SPE does look cool, and it's GPL and cross platform. Nice. Installing it now :-)
Let's hope it has Emacs keybindings... - dickeytk, on 10/12/2007, -0/+1wow thanks guys, that's a lot of info
- joe90210, on 10/12/2007, -0/+10Dive into Python
- pantuky, on 10/12/2007, -0/+3Very cool! Python has become the Lingua Franca of the special effects industry. It's integrated with just about all the tools as the default scripting language. I don't know how soon those tool vendors will clear the decks for an upgrade, but I look forward to it.
- ErnstHot, on 10/12/2007, -0/+2Great news!
What's the story on backwards compatibility? Any breaking changes?- brunson, on 10/12/2007, -0/+0Very few, and those that may exist only come into play if you are using advanced constructs like decorators.
- filipf, on 10/12/2007, -1/+5IronPython anyone?
- johnbmull, on 10/12/2007, -1/+3Iron Python? Show me a GUI, please! (And Boo is not Python) I dont want to build a GUI by hand. wxPython really rocks and should be distributed, or at least very closely linked, with the Python source and installer executables.
- brunson, on 10/12/2007, -0/+1Too many dependencies.
- jorgevargas, on 10/12/2007, -0/+4go python!
- sjtu, on 10/12/2007, -0/+0and get the balance :)
- yahoofrom, on 10/12/2007, -1/+3But can Python 2.5 swallow an elephant?
