Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #98071

Re: Python 2 vs Python 3 for teaching

From Ben Finney <ben+python@benfinney.id.au>
Newsgroups comp.lang.python
Subject Re: Python 2 vs Python 3 for teaching
Date 2015-11-02 09:48 +1100
Message-ID <mailman.41.1446418133.4463.python-list@python.org> (permalink)
References <CAPTjJmoPtk30rzoDOFnN5evRrd3kDtvie1E1F0Wu_DxWTsc+jA@mail.gmail.com> <CAJ4+4apy=ibu4r6d5vj707xoLYEty7MdaOtE+9oi3VOnehB+XA@mail.gmail.com>

Show all headers | View raw


<paul.hermeneutic@gmail.com> writes:

> This would make an excellent opportunity to develop a curriculum to
> teach students how to maintain a 2.x and 3.x code base using 2to3.

The advice today reflects the great progress that has been made over
many years of migrating projects and organisations to Python 3.

Instead of ‘2to3’, the best advice today is: write new code targeting
Python 3 directly, and only if necessary back-port to Python 2.

> 2.x is not going away as fast as some would like.

Likewise, Python 3 as a primary development target is not as difficult
as some would fear.

Python 2 is unarguably a legacy platform, but it has good support for
receiving code carefully targeting both Python 2 and Python 3. So it's
best to target Python 3 primarily, and back-port code to Python 2 only
as and when needed.

-- 
 \       “We jealously reserve the right to be mistaken in our view of |
  `\      what exists, given that theories often change under pressure |
_o__)              from further investigation.” —Thomas W. Clark, 2009 |
Ben Finney

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Python 2 vs Python 3 for teaching Ben Finney <ben+python@benfinney.id.au> - 2015-11-02 09:48 +1100

csiph-web