Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #8971
| Date | 2011-07-06 13:42 -0500 |
|---|---|
| From | Andrew Berg <bahamutzero8825@gmail.com> |
| 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> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.715.1309977744.1164.python-list@python.org> (permalink) |
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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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