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


Groups > comp.lang.python > #16582

Re: Python 2 or 3

References <O3hCq.1112$Ci1.79@uutiset.elisa.fi>
Date 2011-12-02 20:42 -0800
Subject Re: Python 2 or 3
From Dan Stromberg <drsalists@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.3241.1322887328.27778.python-list@python.org> (permalink)

Show all headers | View raw


On 12/2/11, Antti J Ylikoski <antti.ylikoski@tkk.fi> wrote:
>
> I'm in the process of learning Python.  I already can code
> objet-oriented programs with the language.  I have in my hands the
> O'Reilly book by Mark Lutz, Programming Python, in two versions: the
> 2nd Edition, which covers Python 2, and the 4th edition, which covers
> Python 3.
>
> In the "official Python site" so to speak, http://www.python.org, it
> is mentioned that the authors recommend the visitor, who is a novice,
> to learn Python 2 rather than Python 3, because most of existing
> software has been writen with Python 2.
>
> The O'Reilly book has some 1200 pages.  I would not want to invest
> such an amount of work and time to an obsolete language (i. e. Python
> 2).

It mostly depends on what sort of thing you're learning Python for.

If you have a project in mind that has large dependencies that still
require Python 2.x, then you're probably best off with 2.x for now.

Otherwise, go with 3.x.

Or do what I've been enjoying: Install 2.x and 3.x, and test with
both, each step of the way.  In this manner, you can pretty easily
write new code that runs on either equally well.  But again, there's
the matter of dependencies.

> What is the opinion of the wizards here, shall I learm Python 2 or
> Python 3?  I'm posting this here because I feel that this point is
> interesting to other students of Python.
>
>
> Cheers, Antti "Andy" Ylikoski
> Helsinki, Finland, the EU
> --
> http://mail.python.org/mailman/listinfo/python-list
>

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


Thread

Python 2 or 3 Antti J Ylikoski <antti.ylikoski@tkk.fi> - 2011-12-03 05:54 +0200
  Re: Python 2 or 3 Gnarlodious <gnarlodious@gmail.com> - 2011-12-02 20:10 -0800
  Re: Python 2 or 3 Andrew Berg <bahamutzero8825@gmail.com> - 2011-12-02 22:20 -0600
  Re: Python 2 or 3 Roy Smith <roy@panix.com> - 2011-12-02 23:27 -0500
  Re: Python 2 or 3 Dan Stromberg <drsalists@gmail.com> - 2011-12-02 20:42 -0800
  Re: Python 2 or 3 Terry Reedy <tjreedy@udel.edu> - 2011-12-03 01:23 -0500
  Re: Python 2 or 3 Andrew Berg <bahamutzero8825@gmail.com> - 2011-12-03 00:37 -0600
  Re: Python 2 or 3 Andrew Berg <bahamutzero8825@gmail.com> - 2011-12-03 00:41 -0600
  Re: Python 2 or 3 jmfauth <wxjmfauth@gmail.com> - 2011-12-03 00:59 -0800
  Re: Python 2 or 3 Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-12-03 10:04 +0000
    Re: Python 2 or 3 Chris Angelico <rosuav@gmail.com> - 2011-12-03 21:44 +1100
  Re: Python 2 or 3 Arnaud Delobelle <arnodel@gmail.com> - 2011-12-03 12:03 +0000
  Re: Python 2 or 3 Gelonida N <gelonida@gmail.com> - 2011-12-03 21:59 +0100
  Re: Python 2 or 3 Chris Angelico <rosuav@gmail.com> - 2011-12-04 13:52 +1100
  Re: Python 2 or 3 Terry Reedy <tjreedy@udel.edu> - 2011-12-03 21:52 -0500
  Re: Python 2 or 3 Chris Angelico <rosuav@gmail.com> - 2011-12-04 14:02 +1100
  Re: Python 2 or 3 Zaphod <zaphod@beeblebrox.net> - 2011-12-04 20:18 +0000
  Re: Python 2 or 3 Tobiah <tobiah@teranews.com> - 2011-12-06 09:33 -0800
    Re: Python 2 or 3 Enrico 'Henryx' Bianchi <henryx_b@yahoo.it> - 2011-12-10 00:16 +0100
      Re: Python 2 or 3 Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-12-10 00:19 +0000
        Re: Python 2 or 3 Enrico 'Henryx' Bianchi <henryx_b@yahoo.it> - 2011-12-10 12:49 +0100

csiph-web