![]() |
Python 2.5
Which of the new features do you like?
Is it worth installing over Python 2.4? |
Corountines are nice for networking and other asynchronous events. That's probably the most significant change to Python in my opinion. The "with" syntax sugar is also rather nice, as it removes the need to write cleanup code more than once, and adds some visually informative indentation.
I'm installing it :) |
I like that they combined try:except:else and try:finally .... no more
:
try: |
I'm wating for the .deb . I did download the source and make'ed it so I could test the new features, but I never make install'ed.
I was even prepared to make my own package, but I was quickly overhwhelmed. |
Are there any web sites with more detailed information on the new features, hopefully some actual examples?
|
|
Thanks titaniumdecoy!
I have looked around the www.python.org web site and checked some of the peps, but this combines it all nicely! |
This is a goofy web page:
http://docs.python.org/dev/whatsnew/whatsnew25.html "What's New in Python 2.5" on occasion keeps slipping into "What's New in Python 2.6" which is totally uninformative! Looks like those Python eggheads know their Python but not their HTML. |
Note that some of the PEPs are merely templates.
Quote:
|
In my mind, one of the best reasons to upgrade to the new 2.5 is the inclusion of SqLite into the mix. No point for writing out temp files to hold variables or even fuss with MySQL bindings any longer.
Just declare a file to be the datastore and start stuffing things in there. I'm sure there's a lot more neat things out there, but including sqlite natively really was something that got me interested. Cheers, tom |
| All times are GMT -5. The time now is 10:09 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC