Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #74169
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin1!goblin.stu.neva.ru!news.astraweb.com!border5.a.newsrouter.astraweb.com!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python@bdurham.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.026 |
| X-Spam-Evidence | '*H*': 0.95; '*S*': 0.00; 'example:': 0.03; 'received:internal': 0.09; 'acted': 0.16; 'from:addr:python': 0.16; 'hashes': 0.16; 'message-id:@webmail.messagingengine.com': 0.16; 'naming': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:messagingengine.com': 0.16; 'thoughts?': 0.16; 'file.': 0.24; 'function': 0.29; 'appear': 0.29; 'related': 0.29; "doesn't": 0.30; 'allows': 0.31; 'could': 0.34; 'received:66': 0.35; 'received:10': 0.37; 'being': 0.38; 'convention': 0.38; 'to:addr:python-list': 0.38; 'guidance': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; '2nd': 0.60; 'from:no real name:2**0': 0.61; 'offer': 0.62; 'header:Message-Id:1': 0.63; 'name': 0.63; 'more': 0.64; 'opinions': 0.70; '1st': 0.74 |
| DKIM-Signature | v=1; a=rsa-sha1; c=relaxed/relaxed; d=bdurham.com; h= message-id:from:to:mime-version:content-transfer-encoding :content-type:subject:date; s=mesmtp; bh=sO9py5UR37JLxrUmdgap0Hm hbN8=; b=i/QOeKFMRZWVpwO5NR7tspnZnW4KX3hNNtkcUzfjBqx2Gb00OVTTn9a AdcTEFt+3mkHhV+MM4S+vJpePXvY3WV44U1a9cmUka/qp8F1XClKQNMjpdsr0Gaf URmXtBKOggiGuArgOLPo9e0/ph+H8OXnoorJcExES3gBoOLF1CZg= |
| DKIM-Signature | v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:subject:date; s=smtpout; bh=sO9py5UR37JLxrUmdgap0HmhbN8=; b=ZRBuCKMm6kBwR0jtOWOTvwnXQFO8 3nR7TEWuQJ2pKZEi5h87rU2Z5AHXe4ArpeTGoIDtiDNgkLedPJkDg30hpclFYaDq q/UCjqc2zJ8hA/j305tADNx9YO/PY4LGdeOXxmwVWJoAMmukXh0JQgRHJHgqnhNv 5rrfY9NAaMjQ7xY= |
| X-Sasl-Enc | J994dlUPb17guE+6gsCsIdtDqiRhCtXPxPl2CrCNKJd6 1404831558 |
| From | python@bdurham.com |
| To | python-list@python.org |
| MIME-Version | 1.0 |
| Content-Transfer-Encoding | 7bit |
| Content-Type | multipart/alternative; boundary="_----------=_140483155869420"; charset="utf-8" |
| X-Mailer | MessagingEngine.com Webmail Interface - ajax-a4eee4d1 |
| Subject | Naming conventions for functions and methods |
| Date | Tue, 08 Jul 2014 10:59:18 -0400 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://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 | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.11628.1404831576.18130.python-list@python.org> (permalink) |
| Lines | 30 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1404831576 news.xs4all.nl 2960 [2001:888:2000:d::a6]:45788 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:74169 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
Looking for your opinions on how you name your functions and methods. Example: I have a function that hashes a file. I could name this function hash_file() or file_hash(). The 1st naming convention sounds more natural, the 2nd naming convention allows one to group related functions together by the object being acted on. PEP-8 doesn't appear to offer guidance in this area. Thoughts? Malcolm
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Naming conventions for functions and methods python@bdurham.com - 2014-07-08 10:59 -0400
csiph-web