Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.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.015 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'python,': 0.02; 'none,': 0.07; 'executed': 0.09; 'subject: [': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'subject:"]': 0.16; 'tradition': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'cc:addr:python.org': 0.22; 'subject:problem': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'message-id:@mail.gmail.com': 0.30; 'languages': 0.32; 'subject:with': 0.35; 'received:209.85': 0.35; 'received:209.85.220': 0.35; 'johnson': 0.35; 'received:google.com': 0.35; 'received:209': 0.37; 'pm,': 0.38; 'subject:The': 0.64; 'to:addr:gmail.com': 0.65; 'statement,': 0.68; 'behavior': 0.77; 'rick': 0.93; '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 :cc:content-type; bh=kmeRZ+s7mCuVgbSENURpTJLYy1/hkJjmqMS+A6BYPno=; b=CXXicwOERvjj5le+CW0mI7QM0xMXAyIhwN6Hh1yEL8icf/imHmTKC3/uZFTlp0moeF sisL1Qf7v6yohgcA4zGVd2oPQi17IolNmnNoJH7eVLHm0WK3VNVWPs2t0Y4LTqlzQ8fq nISediruMUrB1YZ092DvSVvMU3dyrYbnPGi7/FdoMZ6jit/5C988Wu95FLayjWQrAja4 3PPqzlkzAPanLQTKgx68cxn8/50ZKkCXfI0Bdh524KptutU9jIfjGoecvcBTVDA41IkC 6mt2x5PuO29Rl6C5CrjqRp4eo81du986mBOBmTwablWvQ7nMl/KP6hlxScGDNGAq52um Y8bQ== X-Received: by 10.52.164.19 with SMTP id ym19mr8113703vdb.38.1370536840877; Thu, 06 Jun 2013 09:40:40 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <687dea63-84da-4c45-9366-cb5a10665d1f@googlegroups.com> <51ab95d5$0$29966$c3e8da3$5496439d@news.astraweb.com> <51ad7daf$0$11118$c3e8da3@news.astraweb.com> From: Devin Jeanpierre Date: Thu, 6 Jun 2013 12:39:59 -0400 Subject: Re: Bools and explicitness [was Re: PyWart: The problem with "print"] To: Rick Johnson Content-Type: text/plain; charset=UTF-8 Cc: python-list@python.org 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: 8 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1370536848 news.xs4all.nl 15888 [2001:888:2000:d::a6]:56156 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:47242 On Thu, Jun 6, 2013 at 12:24 PM, Rick Johnson wrote: > In Python, if you fail to use the return statement, then Python will return None, NOT some some value that just happens to be the last line executed in the function -- Ruby breaks the law of least astonishment. Ruby comes from a tradition where this behavior is not astonishing. Languages do not exist in a vacuum. -- Devin