Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2a.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.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.06; '22,': 0.09; 'derived': 0.09; 'sanity': 0.09; 'cc:addr:python- list': 0.11; 'python': 0.11; 'bug': 0.12; 'jan': 0.12; '.py': 0.16; '24,': 0.16; 'code?': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'incorrect': 0.16; 'rebuild': 0.16; 'stdlib.': 0.16; 'sync': 0.16; 'timestamps': 0.16; 'sat,': 0.16; 'thursday,': 0.16; 'wrote:': 0.18; 'file,': 0.19; 'machine': 0.22; 'separate': 0.22; 'cc:addr:python.org': 0.22; 'looks': 0.24; 'cc:2**0': 0.24; 'source': 0.25; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'chris': 0.29; 'on,': 0.29; 'am,': 0.29; 'wonder': 0.29; 'related': 0.29; "doesn't": 0.30; 'especially': 0.30; 'message-id:@mail.gmail.com': 0.30; 'file': 0.32; 'another': 0.32; 'ago': 0.33; 'guess': 0.33; 'problem': 0.35; 'tool': 0.35; 'johnson': 0.35; 'received:google.com': 0.35; 'data,': 0.36; 'should': 0.36; 'changing': 0.37; 'january': 0.37; 'files': 0.38; 'how': 0.40; 'break': 0.61; 'hardware': 0.61; 'more': 0.64; 'worth': 0.66; 'charity': 0.68; 'other.': 0.75; '2015': 0.84; 'etc,': 0.84; 'subject:Solution': 0.84; 'subject:Proposal': 0.91; 'to:none': 0.92; 'rick': 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=fU4iaxJYUx+rYS6vC+81ctuEFbhmTGSx0orcTLZOu/A=; b=Wazr2DwcALH63ohrENM4j1vg831znXLJ4Gi3EdfBNKp4KEm3qV2e3yVzwcSIubrq/E 6NjztorGpg60Tu/hvQZGJ5Js+tJBs6tnO/Epd8YmFciDp8Lc9j5x/wYPaYZPQoOwNJ85 EGD8r4GJDBB3LozVpQq1lFXEcvI/CiraqEgOLsGOaUbNDLsNKGRDlbD2qobNKowmP8/S Ybr/Dl8G3B5cB2ONGrmiNYZ2+3s95y0qgXAUqJ24ldnrRdzRRr11nL3BK3F/Kc0PEB/g C/37/1nc0Ete7Iddf0Qq216UgYFUSYFoL6Y4hGJvic8oZ27HlnX3pe0xca2AGK1XqlEz eLYQ== MIME-Version: 1.0 X-Received: by 10.140.90.112 with SMTP id w103mr16376277qgd.65.1422043163364; Fri, 23 Jan 2015 11:59:23 -0800 (PST) In-Reply-To: <5afad59b-5e8c-4821-85cf-9e971c8c7be6@googlegroups.com> References: <6da1eb58-a0bb-4d37-8293-0a8cafe6a89c@googlegroups.com> <5afad59b-5e8c-4821-85cf-9e971c8c7be6@googlegroups.com> Date: Sat, 24 Jan 2015 06:59:23 +1100 Subject: Re: Python Sanity Proposal: Type Hinting Solution 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: 1422043165 news.xs4all.nl 2865 [2001:888:2000:d::a6]:56219 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:84394 On Sat, Jan 24, 2015 at 6:48 AM, Rick Johnson wrote: > On Thursday, January 22, 2015 at 10:04:29 PM UTC-6, Chris Angelico wrote: > >> It's worth pointing out, too, that the idea isn't >> panaceaic - it's just another tool in the box. Any time >> you break related things into separate places, especially >> separate files, the tendency for them to get out of sync >> grows dramatically. > > I wonder how that "poor python interpreter" keeps all those > .pyc and .pyo files in sync with constantly changing source > code? It should be tantamount to torture! Will someone > *PLEASE* start a charity site titled: "Python's sanity fund"? That's where one is directly derived from the other. Edit the .py file, rebuild the .pyc from it. Any dumb machine can do that... as long as timestamps can be relied on, the hard drive is correctly retaining data, etc, etc, etc. And guess what? Python isn't perfect at it. I had a bizarre problem a while ago that came down to an incorrect .pyc file in the stdlib. (I still have no idea how that came to be incorrect. The hard drive doesn't seem to be failing, and the corruption in the file looks more like a software bug than a hardware issue.) ChrisA