Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eweka.nl!lightspeed.eweka.nl!194.109.133.86.MISMATCH!newsfeed.xs4all.nl!newsfeed3.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.150 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.71; '*S*': 0.00; 'args)': 0.09; 'comment,': 0.09; 'awesome.': 0.16; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'loud': 0.16; 'wrote:': 0.18; 'header:User-Agent:1': 0.23; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'point': 0.28; 'function': 0.29; 'chris': 0.29; 'that.': 0.31; 'terminate': 0.31; "we're": 0.32; 'could': 0.34; 'no,': 0.35; 'but': 0.35; 'view,': 0.36; 'should': 0.36; 'message- id:@gmail.com': 0.38; 'needed': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'read': 0.60; 'most': 0.60; 'took': 0.61; 'determine': 0.67; 'theoretical': 0.74; 'beats': 0.84; 'laughed': 0.84; 'subject:Value': 0.84; 'for).': 0.91 X-Virus-Scanned: amavisd-new at torriefamily.org Date: Fri, 21 Jun 2013 20:46:41 -0600 From: Michael Torrie User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.12) Gecko/20130105 Thunderbird/10.0.12 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Default Value References: <7e6361d5-6619-4aaa-adda-8b5f01bde57f@googlegroups.com> <447dd1c6-1bb2-4276-a109-78d7a067b442@d8g2000pbe.googlegroups.com> <2e92b4c7-31be-40d2-a906-ab19f3630dfa@googlegroups.com> <51c477dd$0$29999$c3e8da3$5496439d@news.astraweb.com> <565a1c8f-6fd9-4bab-9834-076eaea527f8@googlegroups.com> <7e1ed740-df18-4978-b11d-8ca9c4b5bd04@googlegroups.com> <03e9544e-9d6d-4155-a793-56f0c22c7f7a@googlegroups.com> <51c4fab1$0$29999$c3e8da3$5496439d@news.astraweb.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1371869219 news.xs4all.nl 15882 [2001:888:2000:d::a6]:60713 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:48913 On 06/21/2013 07:41 PM, Chris Angelico wrote: >> While we're at it, I would like to petition for a function >> terminates(f, args) that I can use to determine whether a function >> will terminate before I actually call it. > > Nice idea from a theoretical point of view, but practicality beats > purity, and most people know their functions will terminate (that's > what Ctrl-C is for). No, I want a function isbuggy(f) to find out > whether a function is, well, buggy. We could abolish all unit-testing > if we had that. That's awesome. I laughed out loud when I read Ian's comment, though it took me longer than I should have needed to notice your tongue firmly in your cheek as well.