Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.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.017 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'debug': 0.07; 'exit': 0.09; 'subject:files': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; '2.7.3': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'ironpython': 0.16; 'nameerror:': 0.16; 'subject:program': 0.16; 'sat,': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'cc:addr:python.org': 0.22; "aren't": 0.24; 'cc:2**0': 0.24; 'defined': 0.27; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; '"",': 0.31; '>>>>': 0.31; "d'aprano": 0.31; 'sep': 0.31; 'steven': 0.31; 'file': 0.32; '(most': 0.33; 'received:google.com': 0.35; '2.6': 0.36; 'subject:data': 0.36; 'recent': 0.39; 'bad': 0.39; 'name': 0.63; 'real': 0.63; 'more': 0.64; 'mar': 0.68; '20,': 0.68; '2014,': 0.84; 'home!': 0.84; 'to:none': 0.92 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=bXK2xzK0PTOIWCxbzNcnCgBr1/C8fNk1H6DZcdKdMTw=; b=p2NEWeOi0THISgcfdo7fBE4A/HNXmIUSusSGM5+y8YjBDS/Hej+tNkH24fTiTjxc+g eWi+1E+0f9O4n311QP/QHCdhz+fH4ZuhDdTnpfjNv8DT3Lf+oYrvZuFV/yFg/hslf+wz sSyC9sNHzfcH4wsvfk+X7kCn7+3+BLoqhbAKl7ir4TPGgKXxzvvzb14CwuFSGyYotv55 2kU5rLXS98Ufe3H+0ciQn5Gmc9j1RabP0aoZiNXZ2bTJARjRcqo3uOvZAicCF25PK+1B rqcuzlBfO4uhcTInvsn1P5Qa7iz1LXOcUZyurhxdvP+WayCCX5aBDkId4nInAgWNaceR ZKUg== MIME-Version: 1.0 X-Received: by 10.50.66.234 with SMTP id i10mr1052156igt.34.1411188468949; Fri, 19 Sep 2014 21:47:48 -0700 (PDT) In-Reply-To: <541cbd3c$0$29988$c3e8da3$5496439d@news.astraweb.com> References: <541bc310$0$29975$c3e8da3$5496439d@news.astraweb.com> <541c0dc9$0$29992$c3e8da3$5496439d@news.astraweb.com> <541cbd3c$0$29988$c3e8da3$5496439d@news.astraweb.com> Date: Sat, 20 Sep 2014 14:47:48 +1000 Subject: Re: program to generate data helpful in finding duplicate large files 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: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1411188477 news.xs4all.nl 2940 [2001:888:2000:d::a6]:46523 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:78095 On Sat, Sep 20, 2014 at 9:33 AM, Steven D'Aprano wrote: > It's a bad idea to rely on features added to site.py, since they aren't > necessarily going to be available at all sites or in all implementations: > > steve@orac:/home/steve$ ipy > IronPython 2.6 Beta 2 DEBUG (2.6.0.20) on .NET 2.0.50727.1433 > Type "help", "copyright", "credits" or "license" for more information. >>>> exit(2) > steve@orac:/home/steve$ > > Bugger me, I'm going home! This is the real reason for not relying on site.py: rosuav@sikorsky:~$ python -S Python 2.7.3 (default, Mar 13 2014, 11:03:55) [GCC 4.7.2] on linux2 >>> exit Traceback (most recent call last): File "", line 1, in NameError: name 'exit' is not defined ChrisA