Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #8971

Re: Does hashlib support a file mode?

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 <bahamutzero8825@gmail.com>
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 <bahamutzero8825@gmail.com>
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" <python-list@python.org>
Subject Re: Does hashlib support a file mode?
References <453cc47b-b545-4bcf-91c0-2efe2aae37bd@v11g2000prn.googlegroups.com> <mailman.704.1309969573.1164.python-list@python.org> <b317226a-8008-4177-aaa6-3fdc30125eea@e20g2000prf.googlegroups.com> <mailman.709.1309971973.1164.python-list@python.org> <c109e4f7-9e7e-457d-8fdf-4e4aa577e874@q12g2000prb.googlegroups.com>
In-Reply-To <c109e4f7-9e7e-457d-8fdf-4e4aa577e874@q12g2000prb.googlegroups.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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.715.1309977744.1164.python-list@python.org> (permalink)
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

Show key headers only | View raw


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.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Does hashlib support a file mode? Phlip <phlip2005@gmail.com> - 2011-07-06 08:59 -0700
  Re: Does hashlib support a file mode? Peter Otten <__peter__@web.de> - 2011-07-06 18:26 +0200
    Re: Does hashlib support a file mode? Phlip <phlip2005@gmail.com> - 2011-07-06 09:49 -0700
      Re: Does hashlib support a file mode? Peter Otten <__peter__@web.de> - 2011-07-06 19:06 +0200
        Re: Does hashlib support a file mode? Phlip <phlip2005@gmail.com> - 2011-07-06 10:38 -0700
          Re: Does hashlib support a file mode? Andrew Berg <bahamutzero8825@gmail.com> - 2011-07-06 13:42 -0500
      Re: Does hashlib support a file mode? Chris Torek <nospam@torek.net> - 2011-07-06 17:54 +0000

csiph-web