473,881 Members | 1,704 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1151
Banibrata Dutta <ba************ *@gmail.comwrot e:
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.comwrot e:
> 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************ ********@websit eburo.invalidwr ote:
Nick Craig-Wood a écrit :
Banibrata Dutta <ba************ *@gmail.comwrot e:
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.comwrot e:
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
1934
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 that in the swapcheck(x) function below, if I uncomment the first line (commented with //) the whole thing brings and IE errors the page with an object expected error on line (whichever input control I clicked).
25
3152
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 course then the file doesn't get seen by the user. Is there any command that essentially executes the code and then echo's it? something that will take a string like '<body>blah<?php echo 'Hello'; ?></body>' and actually interpret the php
5
1787
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 some difficulties to make my code perfect. Yeah, I made it, by the help of the generous Google, it goes like this: ------------------------------My code Starts-------------------------------
3
1212
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 been answered in clj. Where are the clj archives located? ----------------------------------------------------------------------- http://groups.google.com/group/comp.lang.javascript/topics Maintain an archive of comp.lang.javascript going back to...
6
1407
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, it's essentially a pointer to a piece of code somewhere else in memory. It therefore (to me anyway) makes sense to define delegates with their signatures and be able to use those signatures at different points in
10
1213
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, "Bundaberg")); Persons.Add(new Person("Cathryn", 36, "Perth"));
5
571
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 trying to separate two strings with a space and nothing I'm doing works. Here is my XSLT, which I think you'll agree is really simple:: <?xml version="1.0" encoding="Windows-1252"?> <xsl:stylesheet version="1.0"
6
1909
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 question is in the title. I have experience with C#, SQL, C++/CLI and have done exercises in a book on database design, so I'm not a total beginner, but a recommendation for an intermediate book on ASP.NET is appreciated.
6
11502
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
9926
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9776
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11095
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10812
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10399
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7952
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5780
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4597
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4194
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.