473,396 Members | 1,921 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Newbie question - probably FAQ (but not exactly answered by regularFAQ)

Hi,

I've gone through the list of "language differences" between 2.3 / 2.4
& 2.5 of CPython. I've spend around 2 weeks now, learning v2.5 of
CPython, and I consider myself still very very newbie. So, unable to
take a call as to how-important or desirable the newer language
features are -- so whether to write my app for v2.5 of Python, versus,
as few others on this list have recommended, i.e. to stick to v2.3 ??
Are the preformance improvements, and memory footprint / leak fix in
2.5 enough to justify moving to it ? What all do I stand to lose (or
gain) by writing on v2.3 ??

I've a constraint due to which I might have to also write parts of my
app (client side) in Jython (because I want to eventually ship Java --
yet benefit from the rapid development and clarity of Python). Would
sticking to v2.3 in such a case be a better idea ? Suggestions with
reasoning would be very helpful.

--
regards,
Banibrata
http://www.linkedin.com/in/bdutta
Jun 27 '08 #1
5 1129
Banibrata Dutta <ba*************@gmail.comwrote:
I've gone through the list of "language differences" between 2.3 / 2.4
& 2.5 of CPython. I've spend around 2 weeks now, learning v2.5 of
CPython, and I consider myself still very very newbie. So, unable to
take a call as to how-important or desirable the newer language
features are -- so whether to write my app for v2.5 of Python, versus,
as few others on this list have recommended, i.e. to stick to v2.3 ??
Are the preformance improvements, and memory footprint / leak fix in
2.5 enough to justify moving to it ? What all do I stand to lose (or
gain) by writing on v2.3 ??
If you are writing for 2.3 you are writing for 2.4 and 2.5 also.

There are some nice things in 2.4 and 2.5 but nothing you really need
IMHO. So I'd say writing in a 2.3 subset would be perfectly sensible.
I've a constraint due to which I might have to also write parts of my
app (client side) in Jython (because I want to eventually ship Java --
yet benefit from the rapid development and clarity of Python). Would
sticking to v2.3 in such a case be a better idea ? Suggestions with
reasoning would be very helpful.
Jython seems to be based off python 2.2 so you would be limited to 2.2
features in that case. No big deal in my opinion.

--
Nick Craig-Wood <ni**@craig-wood.com-- http://www.craig-wood.com/nick
Jun 27 '08 #2
Nick Craig-Wood a écrit :
Banibrata Dutta <ba*************@gmail.comwrote:
> I've gone through the list of "language differences" between 2.3 / 2.4
& 2.5 of CPython. I've spend around 2 weeks now, learning v2.5 of
CPython, and I consider myself still very very newbie. So, unable to
take a call as to how-important or desirable the newer language
features are -- so whether to write my app for v2.5 of Python, versus,
as few others on this list have recommended, i.e. to stick to v2.3 ??
Are the preformance improvements, and memory footprint / leak fix in
2.5 enough to justify moving to it ? What all do I stand to lose (or
gain) by writing on v2.3 ??

If you are writing for 2.3 you are writing for 2.4 and 2.5 also.

There are some nice things in 2.4 and 2.5 but nothing you really need
IMHO.
There are some nice things in Python but nothing you really need neither
- could have the same result in C or assembly !-)

<OP>
Ok, if you're newbie to programming, the new stuff in 2.4 and 2.5 might
not be that useful to you right now. But the real question is mostly: do
you have any reason to stick to 2.3 ?
</OP>
> I've a constraint due to which I might have to also write parts of my
app (client side) in Jython (because I want to eventually ship Java --
yet benefit from the rapid development and clarity of Python). Would
sticking to v2.3 in such a case be a better idea ? Suggestions with
reasoning would be very helpful.

Jython seems to be based off python 2.2
It is so far. But Sun recently hired Jython's maintainers, so we may
have a much more up to date Jython version in a foreseeable future.

Jun 27 '08 #3
On 5/6/08, Bruno Desthuilliers
<br********************@websiteburo.invalidwrote :
Nick Craig-Wood a écrit :
Banibrata Dutta <ba*************@gmail.comwrote:
I've gone through the list of "language differences" between 2.3 / 2..4
& 2.5 of CPython. I've spend around 2 weeks now, learning v2.5 of
CPython, and I consider myself still very very newbie. So, unable to
take a call as to how-important or desirable the newer language
features are -- so whether to write my app for v2.5 of Python, versus,
as few others on this list have recommended, i.e. to stick to v2.3 ??
Are the preformance improvements, and memory footprint / leak fix in
2.5 enough to justify moving to it ? What all do I stand to lose (or
gain) by writing on v2.3 ??
>
If you are writing for 2.3 you are writing for 2.4 and 2.5 also.

There are some nice things in 2.4 and 2.5 but nothing you really need
IMHO.

There are some nice things in Python but nothing you really need neither -
could have the same result in C or assembly !-)

<OP>
Ok, if you're newbie to programming, the new stuff in 2.4 and 2.5 might not
be that useful to you right now. But the real question is mostly: do you
have any reason to stick to 2.3 ?
</OP>
Newbie to Python yes, not to programming. But does that change
anything -- i.e. to impact my decision ?
I've a constraint due to which I might have to also write parts of my
app (client side) in Jython (because I want to eventually ship Java --
yet benefit from the rapid development and clarity of Python). Would
sticking to v2.3 in such a case be a better idea ? Suggestions with
reasoning would be very helpful.
>
Jython seems to be based off python 2.2

It is so far. But Sun recently hired Jython's maintainers, so we may havea
much more up to date Jython version in a foreseeable future.
Well, I need to start somewhere, and I want that "somewhere" to be a
decent-enough point. :-)

As such 2.6 & 3.0 are also cooking, but from what I see on the mailing
list, some of the features are a bit controversial. So if I start with
2.5 now, unless there are some break-thru preformance gains, or
annoying defects fixed, I'd stick to it. If I can do something
"well-enough" with 2.5, I'd not refactor for 2.6, for quite some
fore-seeable future.
Jun 27 '08 #4
2.5 seems the defacto standard now for a new user, NB: probably not
the standard for the common business productions. However are you on
Windows or *nix? *nix may ship a certain version, so for ease of use
it would be best to use that.

Personally I use 2.5 because it is a complete version, and the latest
fully released giving me a lot of features to play with. But as
previously put if you are starting out, you are very unlikely to need
a huge amount of those features for a while.

So my opinion is used 2.5, it is released with no huge new feature
updates to come and won't break on random errors. (Unless you find a
real new one!). Also new is cool...
Jun 27 '08 #5
Banibrata Dutta <ba*************@gmail.comwrote:
As such 2.6 & 3.0 are also cooking, but from what I see on the mailing
list, some of the features are a bit controversial. So if I start with
2.5 now, unless there are some break-thru preformance gains, or
annoying defects fixed, I'd stick to it. If I can do something
"well-enough" with 2.5, I'd not refactor for 2.6, for quite some
fore-seeable future.
I started programming with python at version 2.0 so I've seen it
evolve over the years.

In case you are interested here are some links to what has changed
from the different versions over the years.

2.0: http://www.amk.ca/python/2.0/
2.1: http://www.amk.ca/python/2.1/
2.2: http://www.python.org/doc/2.2.3/whatsnew/
2.3: http://www.python.org/doc/2.3/whatsnew/
2.4: http://www.python.org/doc/2.4.3/what...hatsnew24.html
2.5: http://docs.python.org/whatsnew/whatsnew25.html
2.5: http://docs.python.org/dev/whatsnew/2.6.html

I personally wouldn't like to use older than 2.2 any more. I find new
style classes, iterators and generators to be invaluable.

Features I like from 2.3's are enumerate, csv and datetime modules.

And from 2.4 I like the subprocess module (though it runs on 2.3 just
fine too - it just isn't included). I have occasionally used the
decorator syntax, but since it is syntactic sugar anyway it isn't
absolutely necessary.

In 2.5 has ctypes which is great though it is available as a 3rd party
module for 2.3 and 2.4. As is sqlite3.

So in my opinion the real difference between the 2.2, 2.3, 2.4 and 2.5
are the built in modules. The actual language changes are very minor.

If you write your code for 2.5 which is probably a good idea, you'll
have no problem backporting it to 2.4, 2.3 or even 2.2 should that be
necessary.

--
Nick Craig-Wood <ni**@craig-wood.com-- http://www.craig-wood.com/nick
Jun 27 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Dagwood Bumstead | last post by:
I play around with js a little... I just don't get this. The file below is just trying out some things... it does exactly what I want (hides/displays some things, no big deal) The problem is...
25
by: Jon Slaughter | last post by:
I have some code that loads up some php/html files and does a few things to them and ultimately returns an html file with some php code in it. I then pass that file onto the user by using echo. Of...
5
by: mattmao | last post by:
Greetings everyone. The Newbie is coming back from uni... I knew making a good form validation JavaScript would be a piece of cake for you guys, but as a novice programmer as me, I still find...
3
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - I have a question that is not answered in here or in any of the resources mentioned here but I'm sure it has...
6
by: damiensawyer | last post by:
Hi, Can someone please explain to me something about delegates? My understanding is as follows. A delegate is basically an object that can hold a reference to a "method" somewhere. That is,...
10
by: damiensawyer | last post by:
Hi, I have the following code extract... ---top--- List<PersonPersons = new List<Person>(); Persons.Add(new Person("Peter", 28,"Perth")); Persons.Add(new Person("Matthew", 31,...
5
by: rhino | last post by:
I am beginning to learn XML and XSLT from the w3schools tutorial and I'm having a lot more trouble doing something simple than I should be, namely writing a single blank space into a document. I am...
6
by: raylopez99 | last post by:
Will ASP.NET 3.0 work under Visual Studio 2005? And what is a good newbie ASP.NET book? Subject: Will ASP.NET 3.0 work under Visual Studio 2005? And what is a good newbie ASP.NET book? My...
6
Markus
by: Markus | last post by:
Things to discuss: Headers What are they? What does PHP have to do with headers? Why can they only be sent before any output? Common causes
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.