Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!newsfeed.eweka.nl!feeder3.eweka.nl!81.171.88.15.MISMATCH!eweka.nl!lightspeed.eweka.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.029 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'subject:Does': 0.04; 'python': 0.08; 'subject:file': 0.13; 'wrote:': 0.15; 'usual,': 0.16; 'pm,': 0.16; 'received:209.85.210.174': 0.19; 'received :mail-iy0-f174.google.com': 0.19; 'sound': 0.22; 'maybe': 0.22; "doesn't": 0.22; 'header:In-Reply-To:1': 0.22; 'trying': 0.23; 'closest': 0.23; 'fix': 0.29; 'effectively.': 0.30; 'none,': 0.30; 'subject:support': 0.30; 'subject:?': 0.31; 'message- id:@gmail.com': 0.32; 'to:addr:python-list': 0.34; 'header:User- Agent:1': 0.34; 'which,': 0.35; 'comparing': 0.37; 'note,': 0.37; 'received:192': 0.38; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.38; 'steven': 0.38; 'case,': 0.38; 'received:192.168.1': 0.39; "there's": 0.39; 'to:addr:python.org': 0.39; 'received:209': 0.40; '06:16': 0.84; 'subject:mode': 0.84; 'tolerance': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=nIraRvIEvZfRoH7cIloJt9Wg0JL0poe8GBsg3Jb3mPs=; b=WNM6HDTyReX9rP7CVP/pE7z8VZgg+AubRxU6QTLTMjc1YWCO5zrUZUctHoXHvw79Es nc3xm6csrFk6ldj4iCc71V9V/g7QWVw9MXKZeKnq7qDE3gyQ1SRClD74MOm6HkEGo5Bz TlwmFY3jPVhkD6Md1efkekjNZAqJjWHtxHOrw= Date: Thu, 07 Jul 2011 07:50:08 -0500 From: Andrew Berg User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: "comp.lang.python" Subject: Re: Does hashlib support a file mode? References: <0c058f60-3fd7-4b67-85a2-0658b2bb1887@glegroupsg2000goo.googlegroups.com> <9e976158-94c7-4e8b-8aa8-f0daa644b06d@fv14g2000vbb.googlegroups.com> <4e14ecd4$0$29965$c3e8da3$5496439d@news.astraweb.com> In-Reply-To: <4e14ecd4$0$29965$c3e8da3$5496439d@news.astraweb.com> X-Enigmail-Version: 1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 1310043020 news.xs4all.nl 21830 [2001:888:2000:d::a6]:43476 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:9027 On 2011.07.06 06:16 PM, Steven D'Aprano wrote: > Phlip wrote: > > > Note the fix also avoids comparing to None, which, as usual, is also > > icky and less typesafe! > > "Typesafe"? Are you trying to make a joke? Maybe he has a duck phobia. Maybe he denies the existence of ducks. Maybe he doesn't like the sound of ducks. Maybe he just weighs the same as a duck. In any case, duck tolerance is necessary to use Python effectively. On a side note, it turns out there's no word for the fear of ducks. The closest phobia is anatidaephobia, which is the fear of being /watched/ by a duck.