Path: csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!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.132 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.74; '*S*': 0.00; '22,': 0.09; 'deploy': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'jan': 0.12; '"with"': 0.16; ':-/': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'set()': 0.16; 'wrote:': 0.18; 'things.': 0.19; 'thu,': 0.19; 'cc:addr:python.org': 0.22; 'certainly': 0.24; 'versions': 0.24; 'cc:2**0': 0.24; '2.0': 0.26; 'possibly': 0.26; 'least': 0.26; 'supported': 0.26; 'header:In- Reply-To:1': 0.27; 'specifically': 0.29; 'am,': 0.29; 'generally': 0.29; 'tim': 0.29; 'newer': 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; 'chase': 0.31; 'linux': 0.33; 'actively': 0.33; 'older': 0.33; 'could': 0.34; "can't": 0.35; 'definition': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'server': 0.38; '(i.e.,': 0.38; 'hat': 0.38; 'environment.': 0.39; 'obtain': 0.39; 'supporting': 0.39; 'ensure': 0.60; 'extended': 0.61; "you're": 0.61; 'personal': 0.63; 'such': 0.63; 'myself': 0.63; 'places': 0.64; 'become': 0.64; 'more': 0.64; 'between': 0.67; 'production': 0.68; 'statement,': 0.68; '2015': 0.84; 'complaint': 0.84; 'pain': 0.84; 'sense"': 0.84; 'ships': 0.84; '{...}': 0.84; 'to:none': 0.92; 'wanting': 0.93 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=FuyUPjnXRHMGGguuFUHtrob5T1Am3Sf6rPaljnKO4VU=; b=iFeiSXdULTVLSaptKASCz6hqeazwmsTsqGOE2LDq2+1gQEVZeYATS5Bzkuk+C4WyNT 9CvBD7Nlcw0e8mtoMqBH/6DRn9357kD8IMecfB/y9pyQnBXlbWtzkIpk9feMmJIdDzxF 2w69bAnDrb3J/NYjrHqd/EY4aZpigpbJuCMnbsCdm3Ik1+6qornkfX5aaAUWq/HKJx9e +0mYnlrU7Sji6veM6r8f6UfIgPgdyo5XZmlzy7IHJvPhpNCrSYCNkLShs5l3XKMxymqA wRfgeLTbMR8Qke2YiesXVqTHhToC36HcVPsh4MR8MKf06NeGUKlBvQQ1KOt8eLRhRtmM 3myw== MIME-Version: 1.0 X-Received: by 10.140.90.112 with SMTP id w103mr52783456qgd.65.1421850688407; Wed, 21 Jan 2015 06:31:28 -0800 (PST) In-Reply-To: <20150121082600.7142865d@bigbox.christie.dr> References: <87ppa9944t.fsf@elektro.pacujo.net> <20150121065503.5555c910@bigbox.christie.dr> <20150121082600.7142865d@bigbox.christie.dr> Date: Thu, 22 Jan 2015 01:31:28 +1100 Subject: Re: Trees 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.15 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: 26 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1421850697 news.xs4all.nl 2849 [2001:888:2000:d::a6]:49086 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:84120 On Thu, Jan 22, 2015 at 1:26 AM, Tim Chase wrote: > While 2.0 is certainly antiquated, Red Hat Enterprise Linux (RHEL) is > often considered the best definition of what's considered "oldest > supported production environment". RHEL v4 ships with Py2.3 and one > can still obtain extended support for this environment. RHEL v5 is > actively supported (i.e., without the need for an extended-support > contract) and ships with Py2.4 so I generally try to at least support > 2.4 when I'm writing code that could possibly end deploy on a server > such as RHEL5. Some of us are stuck supporting code in such > antediluvian environments. :-/ Then again, if you're like me and > working in such environments, you already know to use set() instead > of {...} and to avoid the "with" statement, and the like. :) I'm aware that there are reasons for wanting to support older versions of things. I do it myself in several places (though not specifically with Python pre-2.7). But there's still a difference between "Moan moan, we have to use set([1,2,3]) when {1,2,3} would make *so* much more sense" and "Sadly, I have to ensure that my code works on Python 2.4, so I can't take advantage of all the newer features". One is a complaint about the language; the other is an acknowledgement of the personal pain of having to support multiple versions (and is going to get easier; as years go by, the oldest Python on a supported RHEL will become newer). ChrisA