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


Groups > comp.lang.python > #74169 > unrolled thread

Naming conventions for functions and methods

Started bypython@bdurham.com
First post2014-07-08 10:59 -0400
Last post2014-07-08 10:59 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Naming conventions for functions and methods python@bdurham.com - 2014-07-08 10:59 -0400

#74169 — Naming conventions for functions and methods

Frompython@bdurham.com
Date2014-07-08 10:59 -0400
SubjectNaming conventions for functions and methods
Message-ID<mailman.11628.1404831576.18130.python-list@python.org>

[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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web