Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.01; 'subject:Does': 0.04; 'python': 0.08; 'defined,': 0.09; 'defined.': 0.09; 'func': 0.09; 'namespace': 0.09; 'subject:file': 0.13; 'wrote:': 0.15; 'fail,': 0.16; 'mode.': 0.16; 'object)': 0.16; 'pm,': 0.16; 'received:209.85.210.174': 0.19; 'received :mail-iy0-f174.google.com': 0.19; 'language': 0.20; 'maybe': 0.22; 'header:In-Reply-To:1': 0.22; 'function': 0.26; '(in': 0.26; 'helpful': 0.26; 'object': 0.30; 'confused': 0.30; 'subject:support': 0.30; 'looks': 0.30; 'least': 0.31; 'subject:?': 0.31; 'message-id:@gmail.com': 0.32; 'does': 0.32; 'typically': 0.33; 'initial': 0.33; 'to:addr:python-list': 0.34; 'header:User-Agent:1': 0.34; 'another': 0.38; 'received:192': 0.38; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.38; 'created': 0.38; 'received:192.168.1': 0.39; 'to:addr:python.org': 0.39; 'received:209': 0.40; 'storage': 0.67; 'special': 0.67; 'subject:mode': 0.84; "everything's": 0.91; 'surprise': 0.96 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=KBKWnva+5jjjX2tOvGKzXJCL7vhEvrONB3UVdCxu+9s=; b=PcG02doMPyGgmUt9Jky/dh3XJDxuiP8OmiJ5bqzkPQK2ODL66c3gcD8o6AaazqxXV0 Byepx0KKe9cMpWSZ0lmFJv5qbJJwCf74eIQcq0znjvwjnM8m56wEA2W+MlN5loN+0Dw/ GtgplDE1ESNId684mvwqtiPufdjtFNZWqkGHQ= Date: Wed, 06 Jul 2011 13:42:12 -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: <453cc47b-b545-4bcf-91c0-2efe2aae37bd@v11g2000prn.googlegroups.com> In-Reply-To: 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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1309977744 news.xs4all.nl 21879 [2001:888:2000:d::a6]:58008 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:8971 On 2011.07.06 12:38 PM, Phlip wrote: > Python sucks. m = md5() looks like an initial assignment, not a > special magic storage mode. Principle of least surprise fail, and > principle of most helpful default behavior fail. func() = whatever the function returns func = the function object itself (in Python, everything's an object) Maybe you have Python confused with another language (I don't know what exactly you mean by initial assignment). Typically one does not need more than one name for a function/method. When a function/method is defined, it gets created as a function object and occupies the namespace in which it's defined.