Re: [Tutor] Python version 2.7 or 3.0

2013-03-12 Thread Leam Hall

On 03/12/2013 11:47 AM, Alan Gauld wrote:

On 12/03/13 14:20, Mike Nickey wrote:


I'm seeing on StackOverflow that 2.7 is the standard for those that have
libraries that haven't been ported to 3.1.2 yet. Does this mean that 2.7
is dead or dying? Is this just a well managed marketing campaign?


Like any software the latest version will eventually predominate. But
since many libraries have not been ported to v3 yet 2.7 is still very
much alive and still being supported. I seem to recall it being stated
that 2.7 is the last of the v2 Python family but that it will be
receiving updates/fixes for some time yet.

It's not a marketing campaign but the normal process of migrating from
one version to a newer, incompatible, version.


It also depends on what platform you're developing for. On Red Hat boxes 
2.6.6 is the "standard" for RHEL 6. From what I understand, RHEL 7 will 
not be Python 3 yet, either.


If you don't have any platform restrictions, then 3.3 is the way to go.

Leam
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Python version 2.7 or 3.0

2013-03-12 Thread Steven D'Aprano

On 13/03/13 01:20, Mike Nickey wrote:

Hey all,

I'm used to python 2.7 but I'm seeing and hearing a lot about 3.0 and
wanted to ask a few questions.
I'm seeing on StackOverflow that 2.7 is the standard for those that have
libraries that haven't been ported to 3.1.2 yet. Does this mean that 2.7 is
dead or dying? Is this just a well managed marketing campaign?



Python 2.7 is alive and well and will be supported for quite a few more years
yet. But it is a dead end. There will be no Python 2.8. It will continue to get
bug fixes for a few more years, and security updates for a few years longer,
but no new features.

Meanwhile, Python 3.3 and beyond is where the future is at. New features and
performance improvements are all aimed at 3.3.

The reason for the two parallel "current versions" is that Python 3 introduced
a few language changes which broke backward compatibility, and rearranged the
standard library to make it more consistent. Since these were big changes, it
is tricky (but not impossible!) for a single program to run under both Python
2 and Python 3. Realizing that it would take the big libraries many years to
migrate to Python 3, the Python development team committed to keeping 2.7
alive for longer than normal, so as to give people time to migrate.

I estimate that we're about half-way into the process. More than half of the
big libraries have either started, or completed, migrating to support 3.x.
At least one Linux distribution uses Python 3 as their system Python, and most
of the others provide it as an optional extra. So, maybe another 4-5 years of
life in Python 2.7?

If you are just starting out, and have no prerequisites about external 
libraries,
you should stick with Python 3.3. Please do not use Python 3.0, it is slow and
buggy and not supported. 3.1 or 3.2 are acceptable, but if you have a choice,
go for 3.3.

If you need a specific library which does not support Python 3, then 2.7 is
acceptable.


--
Steven
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Python version 2.7 or 3.0

2013-03-12 Thread Alan Gauld

On 12/03/13 14:20, Mike Nickey wrote:


I'm seeing on StackOverflow that 2.7 is the standard for those that have
libraries that haven't been ported to 3.1.2 yet. Does this mean that 2.7
is dead or dying? Is this just a well managed marketing campaign?


Like any software the latest version will eventually predominate. But 
since many libraries have not been ported to v3 yet 2.7 is still very 
much alive and still being supported. I seem to recall it being stated 
that 2.7 is the last of the v2 Python family but that it will be 
receiving updates/fixes for some time yet.


It's not a marketing campaign but the normal process of migrating from 
one version to a newer, incompatible, version.


--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Python version 2.7 or 3.0

2013-03-12 Thread Mike Nickey
Hey all,

I'm used to python 2.7 but I'm seeing and hearing a lot about 3.0 and
wanted to ask a few questions.
I'm seeing on StackOverflow that 2.7 is the standard for those that have
libraries that haven't been ported to 3.1.2 yet. Does this mean that 2.7 is
dead or dying? Is this just a well managed marketing campaign?

If these can be simplified into layman's terms I'd really appreciate your
advice & input.

-- 
~MEN
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor