Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'importing': 0.05; 'subject:Python': 0.06; '21,': 0.07; 'think,': 0.07; 'versions,': 0.07; 'string': 0.09; 'instance.': 0.09; 'raises': 0.09; 'uses.': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; '1.5,': 0.16; 'exceptions,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'module?': 0.16; 'subject:library': 0.16; 'supported.': 0.16; 'wrote:': 0.18; 'module': 0.19; 'written': 0.21; 'feb': 0.22; 'import': 0.22; 'cc:addr:python.org': 0.22; '2.2': 0.24; 'string,': 0.24; 'versions': 0.24; 'cc:2**0': 0.24; 'supported': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'newer': 0.30; 'message-id:@mail.gmail.com': 0.30; 'run': 0.32; 'url:python': 0.33; 'fri,': 0.33; 'third': 0.33; 'subject:the': 0.34; "can't": 0.35; 'problem.': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'version': 0.36; 'really': 0.36; 'url:downloads': 0.36; 'url:org': 0.36; 'should': 0.36; 'operating': 0.37; 'two': 0.37; 'hat': 0.38; 'version,': 0.38; 'changed': 0.39; 'either': 0.39; 'major': 0.40; 'how': 0.40; 'even': 0.60; 'catch': 0.60; 'new': 0.61; 'pick': 0.64; 'more': 0.64; 'different': 0.65; 'limit': 0.70; '2.3.': 0.84; 'dialects.': 0.84; 'taken.': 0.84; 'to:none': 0.92; 'old.': 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=jqgjdboCe1vcynnD4/35fwB5GXoM72a++ms90hMQamU=; b=IaI6RM0Ki+YS+oNIrF9/MnVq2uMM+2F35VVsv4RpNlKnUvHU/OjY5Tnbb/kCkniIo+ TMkmduR9bKT9z0bn3lGLE7kdpaO4uSuLEaJ2QC7ymvyrruH6Mq7+j1kOdbYtWpbfRN6q PwE33dByNPBny6m/hfUVDOQ7FI+K3sASYF83JpL49PGah70eJPTVqjx17FxppEoNTBvu ugupLzoNpa12mTurpeXBrnfW0zCNqebfJHA3QAw3hfLs5E5QLut96SpMcK/KgKzXvHLS dLL8KC4iIunhnrbrZ60ePcRouwTsSrpP9qbsraoa0fegmyO7Z9PKxLYsoMIOjJhIIDjU 7BLA== MIME-Version: 1.0 X-Received: by 10.66.118.71 with SMTP id kk7mr2965107pab.14.1392911282181; Thu, 20 Feb 2014 07:48:02 -0800 (PST) In-Reply-To: <87txbt6ckn.fsf@elektro.pacujo.net> References: <87mwhm6q3e.fsf@elektro.pacujo.net> <87eh2y6n1d.fsf@elektro.pacujo.net> <87a9dm6l5c.fsf@elektro.pacujo.net> <8738je6jf8.fsf@elektro.pacujo.net> <87txbt6ckn.fsf@elektro.pacujo.net> Date: Fri, 21 Feb 2014 02:48:01 +1100 Subject: Re: Commonly-used names in the Python standard library 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: 30 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1392911291 news.xs4all.nl 2946 [2001:888:2000:d::a6]:42776 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:66765 On Fri, Feb 21, 2014 at 2:14 AM, Marko Rauhamaa wrote: > * you won't be finding old Python versions on newer operating system > distributions, > > * even isn't all that extensive > and > > * the program may import modules that were written in different Python > dialects. You can always build your own Python, if it really matters... but more likely, if you care about old versions, you actually care about *one specific old version* which your program uses. That's why Red Hat still supports Python 2.4 and, I think, 2.3. You can't randomly pick up 2.2 or 1.5, but if you want 2.4, you can keep on using that for as long as this RHEL is supported. As to importing modules written for other versions... that can be a major problem. Often the new keywords come with new functionality. Take string exceptions, for instance. Say you import a module that was written for a version that still supported them - if it raises a string, you can't catch it. There is a limit to how far the compatibility can be taken. Also, what happens if two modules (one of which might be your script) written for different versions both import some third module? Should they get different versions, based on what version tags they use themselves? Compatibility can't be changed that easily. You either run on the new version, or run on the old. Not both. ChrisA