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


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

Re: What's the proper style for a library string function?

Started byIan Kelly <ian.g.kelly@gmail.com>
First post2014-07-19 13:00 -0600
Last post2014-07-19 13:00 -0600
Articles 1 — 1 participant

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

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: What's the proper style for a library string function? Ian Kelly <ian.g.kelly@gmail.com> - 2014-07-19 13:00 -0600

#74830 — Re: What's the proper style for a library string function?

FromIan Kelly <ian.g.kelly@gmail.com>
Date2014-07-19 13:00 -0600
SubjectRe: What's the proper style for a library string function?
Message-ID<mailman.12058.1405796467.18130.python-list@python.org>
On Sat, Jul 19, 2014 at 12:52 PM, C.D. Reimer <chris@cdreimer.com> wrote:
> I've seen code samples for simple functions with the definition and return
> statements written on one line.

Personally, I use this style sometimes for easily understood one-line
if statements or loops. Named functions consist of an interface
declaration and an implementation, and those should be visually
separated by a newline.

[toc] | [standalone]


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


csiph-web