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


Groups > comp.lang.python > #7359

Re: Python 2.6 OR 3.2

References <9037ef5f-53c5-42c6-ac5d-8f942df6ccc5@x38g2000pri.googlegroups.com> <mailman.74.1307678519.11593.python-list@python.org> <7qiIp.3540$lW4.2615@newsfe07.iad>
Date 2011-06-10 00:15 -0700
Subject Re: Python 2.6 OR 3.2
From Benjamin Kaplan <benjamin.kaplan@case.edu>
Newsgroups comp.lang.python
Message-ID <mailman.79.1307690143.11593.python-list@python.org> (permalink)

Show all headers | View raw


On Thu, Jun 9, 2011 at 11:00 PM, harrismh777 <harrismh777@charter.net> wrote:
> Andrew Berg wrote:
>>
>> AFAICT, there are three reasons to learn Python 2:
>
>   ... there is a fourth reason.
>
> The linux distro you are using currently was customized with python 2.x
>
> I ran into this problem this week in fact... on my HP g6 ubuntu notebook
> running 10.04 lucid. It ships with the 2.6.5 interpreter. I installed 2.7.1
> and 3.2 (from sources) and was working along happy as a clam until I needed
> to configure a printer... and the config tools would not function... some of
> them would not even open.  Want to guess?  Yup, the config tools are (some
> of them) written in python 2.6-- and they don't run in 2.7.1 nor 3.2  .   :(
>
> So, be careful.  I have had to separate *all* of my python installs on
> *every* one of my systems for this similar reason. The bottom line is if the
> distro ships with 2.6 (minus the idle) chances are that the interpreter is
> there *not* to advocate for python explicitly, but because the interpreter
> is being used by the system somewhere. If you install 2.7 or 3.2 you need to
> be careful to *not* interfere with the default setup.
>
> So, you will need to be able to use both.  There is no getting around it...
> but, I would start with 3.2 (seriously). Get 3.2 under your belt and then
> when you need to, go back and deal with the 2.6 regression.
>
> 3.2 is better built, is more logically consistent (it really is, no
> kidding), and has some new features that make it very attractive. The
> down-side is that some (most) of the library support is still not there for
> many projects.   It will take some time, but it will happen.
>
>

There's an altinstall make target that you're supposed to use in cases
like this. It won't make the /usr/local/bin/python symlink (or
whatever prefix you're using), just pythonx.y. This way, the programs
that depend on "python" referring to a specific version will still
continue to work and you can have your newer version. The Ubuntu
packages that depend on the system Python+ system installed packages
*should* be specifying /usr/bin/python specifically but as you can
see, they don't always do that.

>
> kind regards,
> m harris
>
>
> --
> 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.6 OR 3.2 hisan <santosh.ssit@gmail.com> - 2011-06-09 10:18 -0700
  Re: Python 2.6 OR 3.2 John Gordon <gordon@panix.com> - 2011-06-09 17:22 +0000
    Re: Python 2.6 OR 3.2 "Kyle T. Jones" <onexpadREMOVE@EVOMERyahoodotyouknow.com> - 2011-06-09 22:41 -0500
      Re: Python 2.6 OR 3.2 Terry Reedy <tjreedy@udel.edu> - 2011-06-09 23:56 -0400
        Re: Python 2.6 OR 3.2 harrismh777 <harrismh777@charter.net> - 2011-06-10 00:49 -0500
  Re: Python 2.6 OR 3.2 Corey Richardson <kb1pkl@aim.com> - 2011-06-09 15:36 -0400
  Re: Python 2.6 OR 3.2 Chris Angelico <rosuav@gmail.com> - 2011-06-10 08:48 +1000
  Re: Python 2.6 OR 3.2 Andrew Berg <bahamutzero8825@gmail.com> - 2011-06-09 23:01 -0500
    Re: Python 2.6 OR 3.2 harrismh777 <harrismh777@charter.net> - 2011-06-10 01:00 -0500
      Re: Python 2.6 OR 3.2 Benjamin Kaplan <benjamin.kaplan@case.edu> - 2011-06-10 00:15 -0700
      Re: Python 2.6 OR 3.2 Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-06-10 09:48 +0000
        Re: Python 2.6 OR 3.2 SigmundV <sigmundv@gmail.com> - 2011-06-13 16:08 -0700
          Re: Python 2.6 OR 3.2 Chris Angelico <rosuav@gmail.com> - 2011-06-14 09:13 +1000
      Re: Python 2.6 OR 3.2 geremy condra <debatem1@gmail.com> - 2011-06-13 16:17 -0700

csiph-web