Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1.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.061 X-Spam-Evidence: '*H*': 0.88; '*S*': 0.00; 'subject:Python': 0.06; '22,': 0.09; 'cc:addr:python-list': 0.11; 'jan': 0.12; 'chris,': 0.16; 'example?': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.18; 'variable': 0.18; 'thu,': 0.19; 'example': 0.22; 'cc:addr:python.org': 0.22; 'replace': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; 'spam,': 0.31; "i'd": 0.34; 'could': 0.34; 'problem': 0.35; "can't": 0.35; 'received:google.com': 0.35; 'really': 0.36; 'example,': 0.37; 'pm,': 0.38; 'rather': 0.38; 'does': 0.39; 'either': 0.39; 'how': 0.40; 'simple': 0.61; 'kind': 0.63; 'more': 0.64; 'real-world': 0.68; 'subject:! ': 0.74; '2015': 0.84; 'real-life': 0.84; 'wish.': 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=r7rwJlZiS1yU/2BFSCY/CR+FOeDoYLYebXQvf+md908=; b=E9UdAE3wMY3sHEfZSyV21N/J0tHT92FCb0csSnrBFpZtWV4pwgMzWen549kiVpGZOW NJshYvJCs2fKMzE4r/6kcx14tpj/rEGoZU7tp0piMLhybura0Fhj2XKPhnglY5Sq47fE nztplipoiRvlbaxqUoWX6FhK0BaRp9voeTzrosch3+T5zEZx/EMV1VvldKk7ZQ5b/ho/ S/6SZC0CqM9Pd6fpAIGcNAEtGA11zf19AXOJdFqI8UdYZtAnZD0Hit4iK7J+9dk4uqM3 6NP2Zmg4bAaAUJLQC0fkyvK7HW+ULX7Y6OtVtsRbWR2y098fOraWgUxRxrgHiKdZnMDn 2NgQ== MIME-Version: 1.0 X-Received: by 10.140.90.112 with SMTP id w103mr979790qgd.65.1421923463228; Thu, 22 Jan 2015 02:44:23 -0800 (PST) In-Reply-To: <1a194e0a09d48d2044efdfe5477@nntp.aioe.org> References: <1a194e0a09d48d2044efdfe5477@nntp.aioe.org> Date: Thu, 22 Jan 2015 21:44:23 +1100 Subject: Re: Python is DOOMED! Again! 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1421923836 news.xs4all.nl 2925 [2001:888:2000:d::a6]:51895 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:84224 On Thu, Jan 22, 2015 at 9:37 PM, Mario Figueiredo wrote: > Chris, > >> Hold on a moment, how often do you really do this kind of thing with >> "might be one of them or a sequence"? > > > Is it really that important that I give a more real-life example, or can't > you just get the problem from a ad-hoc example? > > I could replace the variable names with spam, ham and eggs, if you wish. I'd rather see a real-world example that can't be solved with either better design or some simple aliases. (And yes, the type hinting does allow for aliases.) ChrisA