Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Python (http://www.programmingforums.org/forum43.html)
-   -   Python 2.5 (http://www.programmingforums.org/showthread.php?t=11389)

Dietrich Sep 25th, 2006 12:53 AM

Python 2.5
 
Which of the new features do you like?
Is it worth installing over Python 2.4?

Arevos Sep 25th, 2006 4:30 AM

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 :)

sykkn Sep 25th, 2006 9:11 AM

I like that they combined try:except:else and try:finally .... no more

:

try:
  try:
    someAction()
  except:
    someOtherAction()
finally:
  someFinalAction()


Jessehk Sep 25th, 2006 11:07 AM

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.

Dietrich Sep 26th, 2006 12:54 PM

Are there any web sites with more detailed information on the new features, hopefully some actual examples?

titaniumdecoy Sep 26th, 2006 12:56 PM

What's New in Python 2.5

Dietrich Sep 26th, 2006 1:06 PM

Thanks titaniumdecoy!

I have looked around the www.python.org web site and checked some of the peps, but this combines it all nicely!

Dietrich Sep 26th, 2006 1:51 PM

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.

DaWei Sep 26th, 2006 2:52 PM

Note that some of the PEPs are merely templates.
Quote:

1 Other Language Changes

Here are all of the changes that Python 2.6 makes to the core Python language.

* TBD

1.1 Optimizations

* Optimizations should be described here.

The net result of the 2.6 optimizations is that Python 2.6 runs the pystone benchmark around XX% faster than Python 2.5.
Looks like me in the earliest stages of documenting a design, before I get around to coding, lol.

tgiles Sep 30th, 2006 11:26 PM

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