Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!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.038 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'think,': 0.07; 'subtle': 0.09; 'worse': 0.09; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'inputs': 0.16; 'keys.': 0.16; 'limiting': 0.16; 'roaming': 0.16; 'sane': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'trying': 0.19; "python's": 0.19; 'typing': 0.19; 'subject:problem': 0.24; 'mon,': 0.24; '(or': 0.24; "i've": 0.25; 'values': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'along': 0.30; "d'aprano": 0.31; 'giant': 0.31; 'steven': 0.31; 'bugs': 0.33; 'could': 0.34; 'subject:with': 0.35; 'received:google.com': 0.35; 'building': 0.35; 'to:addr:python-list': 0.38; 'moving': 0.39; 'to:addr:python.org': 0.39; 'subject:"': 0.60; 'hear': 0.63; 'subject:The': 0.64; 'more': 0.64; 'caused': 0.69; 'url:v': 0.71; 'url:youtube': 0.71; 'url:watch': 0.77; 'episode': 0.84; 'youtube.': 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:date:message-id:subject:from:to :content-type; bh=BVb5UNGdluOXR2HY5aMqUPxmtESXC3/9xHlwKu/1+GY=; b=afkByybqCqkZUETEZ8oupcmLmPxOxOdefry8PmfGkSaGV9LUPS0lLJFsvHVWqL9Bmj UjmzfnjJJbH8QgWsw3svaQrzmeiXKR+Q63JHvxXwiwdaCPXV9XW2LDMlchCA5TMXV2VH 6BSw2lnwNdRIdvzOpdwwqzzXnxLeu0bbzTjRW7JfIRLArGn7WUyUaa03ar7HHLavKg68 iuPHXUgnCHaH5jAke99v1bj69YTjzJF46YGdJQ5Twrz+3S5jBR/O/Q11SoDtJHKjS4I7 pVQLhZ1nB578A56hd0M+D0V0+chJ9drpV8+Tft/s6d6eI62DrdWlTCB9w1zD2TXmhx+d Qahg== MIME-Version: 1.0 X-Received: by 10.52.121.99 with SMTP id lj3mr13281283vdb.52.1370204932690; Sun, 02 Jun 2013 13:28:52 -0700 (PDT) In-Reply-To: <51ab95d5$0$29966$c3e8da3$5496439d@news.astraweb.com> References: <687dea63-84da-4c45-9366-cb5a10665d1f@googlegroups.com> <51ab95d5$0$29966$c3e8da3$5496439d@news.astraweb.com> Date: Mon, 3 Jun 2013 06:28:52 +1000 Subject: Re: PyWart: The problem with "print" 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: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1370204934 news.xs4all.nl 15925 [2001:888:2000:d::a6]:43020 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:46732 On Mon, Jun 3, 2013 at 4:58 AM, Steven D'Aprano wrote: >> I've found that many subtle bugs are caused by not limiting the inputs >> to sane values (or types). And with Python's duct typing > > Nothing worse than having pythons roaming through your ducts, eating your > ducks. Steven, you misunderstand. It's more about using your ducts to type code. Have you seen the Mythbusters episode where they're trying to enter a building surreptitiously? ("Crimes and Mythdemeanors 1", I think, if you want to look it up.) At one point, we can CLEARLY hear one of the hosts, moving along a duct, *typing*. We can hear the click-click-click of giant keys. Hah. Knew I could trust Youtube. http://www.youtube.com/watch?v=5LovGVrrIuk ChrisA