Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!selfless.tophat.at!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '2.7': 0.04; 'ubuntu': 0.04; '*not*': 0.05; '2.x': 0.05; '3.2': 0.05; 'subject:Python': 0.06; 'interpreter': 0.07; 'specifying': 0.07; 'python': 0.08; '(it': 0.09; 'interpreter.': 0.09; 'prefix': 0.09; 'reason.': 0.09; 'pm,': 0.10; 'configure': 0.11; 'linux': 0.11; 'written': 0.14; 'wrote:': 0.14; 'library': 0.15; '*should*': 0.16; 'attractive.': 0.16; 'both.': 0.16; 'careful.': 0.16; 'installs': 0.16; 'it...': 0.16; 'setup.': 0.19; 'header:In-Reply-To:1': 0.21; 'thu,': 0.22; 'happen.': 0.23; 'referring': 0.23; '(or': 0.24; 'url:mailman': 0.26; 'message-id:@mail.gmail.com': 0.28; 'installed': 0.28; 'problem': 0.28; 'version': 0.29; "won't": 0.30; 'url:listinfo': 0.30; '"python"': 0.30; 'config': 0.30; 'ran': 0.30; 'see,': 0.30; 'separate': 0.31; 'supposed': 0.31; 'specifically': 0.31; 'this.': 0.31; 'andrew': 0.32; 'cases': 0.32; 'to:addr:python-list': 0.33; '...': 0.34; 'install': 0.34; 'but,': 0.34; 'there': 0.35; '2.6': 0.35; 'advocate': 0.35; 'newer': 0.35; 'version.': 0.35; 'using': 0.35; 'running': 0.37; 'similar': 0.37; 'received:google.com': 0.37; 'received:209.85': 0.37; 'depend': 0.37; 'reasons': 0.37; 'url:python': 0.38; 'url:org': 0.38; 'run': 0.38; 'but': 0.38; 'subject:: ': 0.38; 'some': 0.38; 'received:209': 0.39; 'to:addr:python.org': 0.39; 'getting': 0.40; 'under': 0.40; 'really': 0.40; 'target': 0.60; 'more': 0.60; 'kind': 0.60; 'your': 0.60; 'back': 0.63; 'customized': 0.76; 'notebook': 0.77; '2.7.1': 0.84; 'belt': 0.84; 'built,': 0.84; 'clam': 0.84; 'them)': 0.84; 'ships': 0.91 MIME-Version: 1.0 In-Reply-To: <7qiIp.3540$lW4.2615@newsfe07.iad> References: <9037ef5f-53c5-42c6-ac5d-8f942df6ccc5@x38g2000pri.googlegroups.com> <7qiIp.3540$lW4.2615@newsfe07.iad> Date: Fri, 10 Jun 2011 00:15:30 -0700 Subject: Re: Python 2.6 OR 3.2 From: Benjamin Kaplan To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Junkmail-Status: score=10/49, host=mpv2.tis.cwru.edu X-Junkmail-Signature-Raw: score=unknown, refid=str=0001.0A020208.4DF1C495.00D9,ss=1,fgs=0, ip=209.85.210.54, so=2010-12-23 16:51:53, dmn=2009-09-10 00:05:08, mode=single engine X-Junkmail-IWF: false X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 63 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1307690143 news.xs4all.nl 49181 [::ffff:82.94.164.166]:46776 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:7359 On Thu, Jun 9, 2011 at 11:00 PM, harrismh777 wrot= e: > Andrew Berg wrote: >> >> AFAICT, there are three reasons to learn Python 2: > > =A0 ... 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 need= ed > to configure a printer... and the config tools would not function... some= of > them would not even open. =A0Want to guess? =A0Yup, the config tools are = (some > of them) written in python 2.6-- and they don't run in 2.7.1 nor 3.2 =A0.= =A0 :( > > So, be careful. =A0I 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 i= s > there *not* to advocate for python explicitly, but because the interprete= r > 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. =A0There is no getting around i= t... > 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 f= or > many projects. =A0 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 >