Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.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.079 X-Spam-Evidence: '*H*': 0.84; '*S*': 0.00; 'boolean': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'oct': 0.16; 'subject: \n ': 0.16; 'wrote:': 0.17; 'instance,': 0.17; 'thu,': 0.17; 'all,': 0.21; 'received:209.85.214.174': 0.21; 'header:In-Reply-To:1': 0.25; 'values': 0.26; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'subject:size': 0.29; 'this.': 0.29; 'function': 0.30; 'could': 0.32; "aren't": 0.33; 'to:addr :python-list': 0.33; 'skip:d 20': 0.34; 'received:google.com': 0.34; 'returning': 0.35; 'subject:?': 0.35; 'received:209.85': 0.35; 'there': 0.35; 'but': 0.36; 'subject:with': 0.36; 'why': 0.37; '(for': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'received:209.85.214': 0.39; 'header:Received:5': 0.40; 'decided': 0.65; 'concept,': 0.84; 'subject:NOT': 0.84; 'subject:any': 0.84; 'why?': 0.84 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:to :content-type; bh=0jaGNLX4HHVJLwHz23N4cFxGkd2Lv8mjwrqmyFjadjc=; b=0qDZg3pOBqKN64I667Z3tswo/buqc2bRbOLdpJC9tJbDyT1k1cxC2aearshMYR6qDF 2+4eCD5a47TweAdUH+akgEURFjdl3M+0PM2y7RKRFUTG3FZFiuKcYYKb0S+6fbNs2ruK Q44FHvjALjuznxErLYriLkQ7V/5npKCmoTjQCtR1Uo/2W53pKKDJvWJzR8kzywYh/C4V /VAlR6edN3g6BStY3kjtAqf9fUwa3W/we+OtyU4dMuQs+g406emtTk0OxJLK5YgJQQd9 BiERJszv8duykY9ZNRgfgNDm03O8EddAJ+SfxXa1KbNwLEu9hRY7Rm4Q8V/TpqF4MBfk FPPw== MIME-Version: 1.0 In-Reply-To: <84d4571f-430a-4fb3-8e54-cf6769a2c76f@googlegroups.com> References: <748e561a-7e75-4b13-be6b-91831d3b59c4@googlegroups.com> <84d4571f-430a-4fb3-8e54-cf6769a2c76f@googlegroups.com> Date: Thu, 18 Oct 2012 05:22:29 +1100 Subject: Re: Script for finding words of any size that do NOT contain vowels with acute diacritic marks? From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1350498151 news.xs4all.nl 6904 [2001:888:2000:d::a6]:37817 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:31532 On Thu, Oct 18, 2012 at 5:17 AM, wrote: > Not at all, I knew this. In this I decided to program like > this. > > Do you get it? Yes/No or True/False Yes but why? When you're returning a boolean concept, why not return a boolean value? You don't even use values with one that compares-as-true and the other that compares-as-false (for instance, you could write the function so that it returns just the diacritic-containing characters, meaning it'll return "" if there aren't any). To what benefit? Puzzled. ChrisA