Path: csiph.com!usenet.pasdenom.info!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed4a.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.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'source,': 0.04; 'python3': 0.07; 'source.': 0.07; 'lawrence': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'suggest': 0.14; 'wrote': 0.14; '2.7': 0.14; 'changes': 0.15; '"python"': 0.16; '(and,': 0.16; 'available;': 0.16; 'equation': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'url:peps': 0.16; 'url:windows': 0.16; 'files.': 0.16; 'fix': 0.17; 'wrote:': 0.18; 'help.': 0.21; 'command': 0.22; 'cc:addr:python.org': 0.22; 'install': 0.23; 'switched': 0.24; 'url:dev': 0.24; "haven't": 0.24; 'cc:2**0': 0.24; 'certain': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'factor': 0.31; 'party,': 0.31; "they'll": 0.31; 'another': 0.32; 'url:python': 0.33; 'fri,': 0.33; 'third': 0.33; 'could': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'version': 0.36; 'installing': 0.36; 'useful': 0.36; 'possible': 0.36; 'url:org': 0.36; 'easily': 0.37; 'step': 0.37; 'recent': 0.39; '(from': 0.39; 'sure': 0.39; 'major': 0.40; 'how': 0.40; 'even': 0.60; 'upgrading': 0.60; 'issues,': 0.61; 'new': 0.61; 'url:3': 0.61; "you'll": 0.62; 'different': 0.65; 'latest': 0.67; '2015': 0.84; 'conflicts': 0.84; 'confusing': 0.84; 'directories,': 0.84; 'to:none': 0.92; 'yourself,': 0.95 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=AD75gV32ym/pjUEWeRiCJrYTkAOEjfnfHACFibJ8U+c=; b=klnbNJhmYMUw1FxpVXRQea9WI8AfCLKYOfgdWVbuT2Meh/pX7l5kRC2HOGYOBKaeRA 595VXTZ8G4yXsWNVCFkdEgxMWPtvzBYPAhAFKtO2juOirKi3pMnv9XRP8dnClO3tXVh0 cYDb9vZFUw3Pb49sG/VkoIEkpyMGWAz6I29I4LeTnuJBl1LFgXUgm2NICs7t7mzcBIZA M+uryIZXXoVWBsqkAoNcyrYPLtNaLmNzO2uM+rV0i8CzTqRiO11TVmkHQxLvIIJNeXeQ pAhLz/jqiPLz6PsDPqDKfmtOc7/gT0fITtyS3i4+n6cE168VDZ5s49wgwijK++/vvISR NIUg== MIME-Version: 1.0 X-Received: by 10.43.17.135 with SMTP id qc7mr11582735icb.59.1430433957075; Thu, 30 Apr 2015 15:45:57 -0700 (PDT) In-Reply-To: References: <87k2wtvbx1.fsf@Equus.decebal.nl> <87mw1ptpr0.fsf@Equus.decebal.nl> Date: Fri, 1 May 2015 08:45:56 +1000 Subject: Re: l = range(int(1E9)) From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ 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: 37 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1430433966 news.xs4all.nl 2886 [2001:888:2000:d::a6]:44082 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:89679 On Fri, May 1, 2015 at 7:23 AM, ElChino wrote: > Mark Lawrence wrote: > >> You might find this useful then in you haven't already seen it >> https://docs.python.org/3/howto/pyporting.html > > > The main reason I haven't switched to Python3 (from 2.7.4/MSVC), > is fear of a major breakage. How can I be certain that even if > I install to different directories, the Python2 and Python3 won't > step on each other toes. And what about all the .pyd I have around? > Do they need an update? > > I'm barely familiar with virtualenv BTW; not sure another > confusing factor in the equation would be a good idea. Or > lessen my fear. Very easily and simply: Python 3 and Python 2 will always install separately, and the only possible conflicts are over the "python" command in PATH and which program is associated with ".py" files. You can fix both of them by installing a recent version of Python and using the py.exe launcher: https://www.python.org/dev/peps/pep-0397/ https://docs.python.org/3/using/windows.html#python-launcher-for-windows As to your .pyd files... they'll continue to work with Python 2.7 (and, incidentally, I would suggest upgrading to 2.7.9 or 2.7.10), but you'll need to update them for Python 3. If you got them from a third party, chances are good that there'll be a Py3 build available; if you built them from source, you could try just recompiling the latest source. But if you wrote them yourself, you may well have to make some changes to get them to compile against Python 3. If you have issues, start a new thread; people will be happy to help. ChrisA