Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.168 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.70; '*S*': 0.04; '22,': 0.09; 'args)': 0.09; 'terminates': 0.09; '10:49': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'url:wiki': 0.31; 'terminate': 0.31; 'url:wikipedia': 0.31; "we're": 0.32; 'fri,': 0.33; 'maybe': 0.34; 'could': 0.34; 'received:google.com': 0.35; 'skip:> 10': 0.36; 'url:org': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'ian': 0.60; 'different': 0.65; 'determine': 0.67; 'physical': 0.72; 'conclude': 0.84; 'subject:Value': 0.84; 'universe': 0.84; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=7M9dXeA6jnzS6AqH95whJMIISPbgl8rBjWyANLh3Fc4=; b=1JX8vUGYUPWKk05OYuFcPc53rO61Y0msPBLt5RZFnZXUbJGuLh8OFai+n3VS9wR3e8 ayci9FEm0HCjTJUeXllZ5ZxBNQVQZCv56i8rs+Jya6/kTgLmy9ue1oZBDsDfYtbfXd6f XTYvDT/UJ3hSHEa7EHLxP2dJf2qyJEsQyZSU6t+/NxpfF/yHtjADqh05fnfGWQiYctZ7 /fJ6bnpZbUXdzOb7J2tbK6m/Z4cveuZ2gh5s0d0/IztD1TrF6w8cCADsICKCzjONmUZj hNp5iUNvE4m/nh/du2F1mRT01dX7nRGxpx2015mr/NAIgtCYKu6P/B+v2O3T8QwKMqYg C16Q== X-Received: by 10.66.144.136 with SMTP id sm8mr21158359pab.115.1371927467166; Sat, 22 Jun 2013 11:57:47 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <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> From: Ian Kelly Date: Sat, 22 Jun 2013 12:57:07 -0600 Subject: Re: Default Value To: Python 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: 1371927476 news.xs4all.nl 15935 [2001:888:2000:d::a6]:37824 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:48941 On Sat, Jun 22, 2013 at 10:49 AM, Dennis Lee Bieber wrote: > On Fri, 21 Jun 2013 19:27:42 -0600, Ian Kelly > declaimed the following: > >>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. > > Maybe in a universe with different physical constants... > > Otherwise I think you have encountered > http://en.wikipedia.org/wiki/Halting_problem (consider: could your function > conclude that it terminates when fed it's own code) Yes, that was the joke.