Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: subprocess check_output Date: Thu, 7 Jan 2016 20:54:43 +1100 Lines: 23 Message-ID: References: <20151230210227.GA88234@cskk.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de 9vts49uKS24+xUt5bzBKUgQhyp6oRzpG91ARKqppDmiA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.014 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'received:209.85.223': 0.03; 'failing': 0.05; 'lines,': 0.05; 'padding': 0.07; 'cc:addr :python-list': 0.09; 'oh,': 0.09; 'jan': 0.11; 'syntax': 0.13; 'thu,': 0.15; '*never*': 0.16; '2016': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'keyword,': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'somewhere.': 0.16; 'wrote:': 0.16; 'deployment': 0.18; 'directory.': 0.18; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'code,': 0.23; 'header:In-Reply- To:1': 0.24; "i've": 0.25; "doesn't": 0.26; 'chris': 0.26; 'error': 0.27; 'separate': 0.27; 'question': 0.27; 'message- id:@mail.gmail.com': 0.27; 'css': 0.27; 'correct': 0.28; 'referencing': 0.29; 'symbols': 0.29; "i'm": 0.30; 'code': 0.30; 'saves': 0.30; 'getting': 0.33; 'run': 0.33; 'mass': 0.33; 'suddenly': 0.33; 'similar': 0.33; 'changing': 0.34; 'file': 0.34; 'received:google.com': 0.35; 'done': 0.35; 'quite': 0.35; 'something': 0.35; 'asking': 0.35; "isn't": 0.35; 'sometimes': 0.35; 'should': 0.36; 'instead': 0.36; 'received:209.85': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'two': 0.37; 'being': 0.37; 'suggestion': 0.37; 'exciting': 0.38; 'received:209': 0.38; 'wrong': 0.38; 'along': 0.39; 'where': 0.40; 'ever': 0.60; 'save': 0.60; 'your': 0.60; 'life': 0.67; 'color': 0.67; 'discover': 0.73; 'obvious': 0.76; 'again?': 0.84; 'chrisa': 0.84; 'right!': 0.84; 'suggest,': 0.84; 'surprised,': 0.84; 'to:none': 0.91; 'try.': 0.91; 'story.': 0.96; 'serious': 0.97 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=NKymZ4nw7pXXb0xIEqro73JW7XtBmiBYpKiZPOrDSNc=; b=EWc/jA6SMbVXHnnF7s8sBBQR3GvenTankUS4mYc0FcdmtBIIX66x7ICP2ISLTHPFN7 bLmrt0aqnj4+OWer/XYWOtUdssysDUml+m/uEaoO6ibiJ+B9CBxhHGkwJxmWiEuqYIao bvExlTk2tFloRZVeNZxNA7tkzihn/HOoqADy07vaJOidXOx1rZOg+L/ODOxiHJgMwDdZ j1BkZ8mBoPyCi6flRbsuZV72PI+TtzLnXyoUJaBwnybw7/cvU2go4vG1UG90Y7FlS8Ee LukztrpjE0riF5ONIJUzVFECCNibgO0ivmCZO13mtcb988z5uHmNJC4Kq2klDSsN0gxH YXlA== X-Received: by 10.107.40.76 with SMTP id o73mr33500967ioo.157.1452160483814; Thu, 07 Jan 2016 01:54:43 -0800 (PST) In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ 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:101325 On Thu, Jan 7, 2016 at 8:33 PM, me wrote: > On 2016-01-05, Chris Angelico wrote: >> Oh, and then you keep editing and save again? Nah, I've *never* done >> that... Never! > > I'm quite surprised, buddy. You should definitely try. I know, right! It's so exciting to suddenly discover that you have two separate copies of a piece of code, and that one of them isn't where you think it is... makes life so interesting! Serious suggestion for people who run into weirdness: Sometimes it helps to make a deliberate and obvious syntax error (misuse a keyword, break the indentation, put a mass of symbols in someplace), just to see that your code is getting parsed. If it doesn't trigger an error, well, your deployment is failing somewhere. CSS gurus suggest, along similar lines, changing the background color of something to red. Saves ever so much fiddling around - instead of asking "why doesn't my padding work in IE?", you ask the correct question of "why isn't my CSS file being read?", upon which you discover that you were referencing it from the wrong directory. True story. ChrisA