Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Sep 25th, 2006, 12:53 AM   #1
Dietrich
Professional Programmer
 
Dietrich's Avatar
 
Join Date: Feb 2005
Posts: 434
Rep Power: 4 Dietrich is on a distinguished road
Smile Python 2.5

Which of the new features do you like?
Is it worth installing over Python 2.4?
__________________
I looked it up on the Intergnats!
Dietrich is offline   Reply With Quote
Old Sep 25th, 2006, 4:30 AM   #2
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
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
Arevos is offline   Reply With Quote
Old Sep 25th, 2006, 9:11 AM   #3
sykkn
Hobbyist Programmer
 
Join Date: Apr 2004
Location: Texas
Posts: 106
Rep Power: 5 sykkn is on a distinguished road
I like that they combined try:except:else and try:finally .... no more

try:
  try:
    someAction()
  except:
    someOtherAction()
finally:
  someFinalAction()
__________________
[ [ SykkN alloc ] initWithThePowerTo: destroyYouAll ];
/* Don't make me use it! */
sykkn is offline   Reply With Quote
Old Sep 25th, 2006, 11:07 AM   #4
Jessehk
The Oblivious One
 
Jessehk's Avatar
 
Join Date: May 2005
Location: Ontario, Canada
Posts: 641
Rep Power: 4 Jessehk is on a distinguished road
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.
__________________
Dr. Zoidberg: [ecstatic] I'm going to a movie... with FRIENDS!
Jessehk is offline   Reply With Quote
Old Sep 26th, 2006, 12:54 PM   #5
Dietrich
Professional Programmer
 
Dietrich's Avatar
 
Join Date: Feb 2005
Posts: 434
Rep Power: 4 Dietrich is on a distinguished road
Are there any web sites with more detailed information on the new features, hopefully some actual examples?
__________________
I looked it up on the Intergnats!
Dietrich is offline   Reply With Quote
Old Sep 26th, 2006, 12:56 PM   #6
titaniumdecoy
Expert Programmer
 
titaniumdecoy's Avatar
 
Join Date: Nov 2005
Posts: 843
Rep Power: 3 titaniumdecoy is on a distinguished road
Send a message via AIM to titaniumdecoy
What's New in Python 2.5
titaniumdecoy is offline   Reply With Quote
Old Sep 26th, 2006, 1:06 PM   #7
Dietrich
Professional Programmer
 
Dietrich's Avatar
 
Join Date: Feb 2005
Posts: 434
Rep Power: 4 Dietrich is on a distinguished road
Thanks titaniumdecoy!

I have looked around the www.python.org web site and checked some of the peps, but this combines it all nicely!
__________________
I looked it up on the Intergnats!
Dietrich is offline   Reply With Quote
Old Sep 26th, 2006, 1:51 PM   #8
Dietrich
Professional Programmer
 
Dietrich's Avatar
 
Join Date: Feb 2005
Posts: 434
Rep Power: 4 Dietrich is on a distinguished road
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.
__________________
I looked it up on the Intergnats!
Dietrich is offline   Reply With Quote
Old Sep 26th, 2006, 2:52 PM   #9
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Sep 30th, 2006, 11:26 PM   #10
tgiles
Newbie
 
Join Date: Sep 2006
Posts: 2
Rep Power: 0 tgiles is on a distinguished road
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
tgiles is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[tutorial] Python for programming beginners coldDeath Python 30 Dec 14th, 2005 11:35 AM
If you want to learn Python or improve your Python skills coldDeath Python 2 Nov 23rd, 2005 12:27 AM
Convert Python script to C++ code clanotheduck Python 17 Sep 25th, 2005 8:55 AM
Advanced Python Tricks Arevos Python 19 Sep 24th, 2005 7:39 AM
Python - A Programmers Introduction coldDeath Python 17 Aug 19th, 2005 12:41 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:54 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC