Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: [STORY-TIME] THE BDFL AND HIS PYTHON PETTING ZOO Date: Tue, 16 Feb 2016 13:30:14 +1100 Lines: 32 Message-ID: References: <48762040-a7e0-434c-92e8-8a0969210e5b@googlegroups.com> <5d31dd14-1a60-4f80-8889-d0616f404c70@googlegroups.com> <4e902c58-3370-4adf-905d-74630a6eea90@googlegroups.com> <60036746-78f7-4f05-a6d8-04e88b09c00f@googlegroups.com> <032f0f66-34df-4325-98e0-1127025d2a94@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de sXrE1WS5LSX5fAlq+SPJ4QtMPvufhvVw36ALXqqhGMeA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:: [': 0.03; '16,': 0.03; 'extent': 0.07; 'remaining': 0.07; 'cc:addr:python-list': 0.09; '__future__': 0.09; 'directive.': 0.09; 'python': 0.10; '2.7': 0.13; '2016': 0.16; 'bump,': 0.16; 'compatible.': 0.16; 'dependency,': 0.16; 'directive': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'no-op': 0.16; 'py3': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'renaming': 0.16; 'subject:PYTHON': 0.16; 'wrote:': 0.16; 'subject:] ': 0.19; 'versions': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'work,': 0.21; 'tuples': 0.22; 'seems': 0.23; 'feb': 0.23; 'originally': 0.23; 'sets': 0.23; 'import': 0.24; 'header:In- Reply-To:1': 0.24; "i've": 0.25; '(which': 0.26; 'rest': 0.26; 'message-id:@mail.gmail.com': 0.27; 'moved': 0.27; 'turns': 0.27; 'function': 0.28; 'accidentally': 0.29; 'ago': 0.29; 'code': 0.30; "can't": 0.32; 'up.': 0.32; 'run': 0.33; 'changed': 0.33; 'tue,': 0.34; 'received:google.com': 0.35; 'so,': 0.35; 'possible,': 0.35; 'quite': 0.35; 'something': 0.35; 'sometimes': 0.35; 'but': 0.36; 'project': 0.36; 'there': 0.36; 'received:209.85': 0.36; 'keyword': 0.36; 'pm,': 0.36; 'really': 0.37; 'johnson': 0.37; 'received:209.85.213': 0.37; 'received:209': 0.38; 'stuff': 0.38; 'end': 0.39; 'means': 0.39; 'test': 0.39; 'enough': 0.39; 'subject:-': 0.39; 'where': 0.40; 'still': 0.40; 'called': 0.40; 'future': 0.60; 'your': 0.60; 'telling': 0.61; '(that': 0.63; 'safe': 0.63; 'more.': 0.63; 'places': 0.64; 'apart': 0.70; 'bulk': 0.76; 'chrisa': 0.84; 'to:none': 0.91; 'subject:THE': 0.91; 'rick': 0.93; 'subject:AND': 0.93; 'imagine': 0.96 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=kLE9yBmv8jWZPp4/w5avTBgG2K6KWyGmotteJ/hCbSQ=; b=iPkug3ic59GDSiRbGyVj6P2NAWR1++0rJiuAQ0EEJYu/2ZVO4hrZzLNP4F5663uAdF PRvRERTkiFde1x96DEHbAbSHDU7vBDyAuFJVl5tWn55knvIJAINT0UbMJ3uj8WfovOZJ weRBiAU2BiCp7twoIQEB+L7vcflJLbmiKMomnkmn5/yakjhV93hGkBGlUuZ5Glp/zxqA GOr145jiSixeLkSkUhzFtj7xuFFjrpeQoRvAMiopnu8l6mzlwE/8oijr8dURst4HuBl3 9JnqnELPW+4nmRjiw7hR2kUqGqDN2fCBavDtACi6FSh3AorLEBwiqIWlvqCO6EOQNul7 UdMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc:content-type; bh=kLE9yBmv8jWZPp4/w5avTBgG2K6KWyGmotteJ/hCbSQ=; b=g4122tYv7psMDLeAi8kM9Z9rASLunki9PVBzE752MQd5TYTEHBpYWXp8mmeYWsRrVH 0u5ZIg4pfgtYzkYuglBWbCovhD6uPa1F2UswMpB8q1NxSbL3UoVjYqnqBFZTTVHCbz0U 2MFmEC7ITQ3rwKhIGnH254gF8xvceLGnFStyXfnqPwTKTidtz7ICl9YfH1FIhlSRmKr0 Lkftq3jrfK4rhkpOUT7RhVexvUcR1dzSyujDSgFuJdFBgPqRJ/2LY+IQ1I2WDR5u60+b eO95zVTvHp4BM11Op8raexWKuTEbDGaY6mm4R85OTFio4VPHYcdoVdRjYLv1G233n1UW DnEw== X-Gm-Message-State: AG10YOQXTuKJmH/XHsaAaBMRa9EC4edeXkKssdSE7QB9GkJ+BJ/PufzHFJ681D92v5xVdKCOU2BPeQVfxnnz8g== X-Received: by 10.50.176.195 with SMTP id ck3mr16404205igc.94.1455589814489; Mon, 15 Feb 2016 18:30:14 -0800 (PST) In-Reply-To: <032f0f66-34df-4325-98e0-1127025d2a94@googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21rc2 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:102982 On Tue, Feb 16, 2016 at 1:02 PM, Rick Johnson wrote: >> But once that happened, I moved from Py2 to Py3 years ago >> with scarcely a bump, bruise, or scratch. > > So you have no Python2.x code remaining in your repos? Are > you telling us that you moved *EVERYTHING* to Python3? If > so, i can't imagine how something like that would even be > possible, hmm, unless of course, you don't have much code to > move...? I have one project that's bound to Py2 by its one dependency, and I've kept it Py3-compatible apart from the one block of code that sets that up. (That includes renaming a function that was originally called "await", even though that's not actually a keyword as of 3.6.) All the rest of my code will run on Python 3. However, there is still a lot of Python 2 code in my repos - it's the same code! Most of my stuff is simple enough that I keep it 2/3 compatible. Sometimes there's a block of code at the top to deal with {raw_,}input or a future directive or a changed import name, but the bulk of the code is unchanged. Of course, now that I go to actually *check*, it turns out that a lot of my code has accidentally not been cross-version compatible. I use the open(fn, encoding="...") form in quite a few places, so to make that work, I would need "from io import open" (which seems to be a safe no-op on Py3), and there are places where I use multi-arg versions of print, which will end up displaying tuples in Py2 if I don't slap in a __future__ directive. But that just means that I really truly have *moved* to Python 3, to the extent that I don't always even test my code on 2.7 any more. ChrisA