Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #74830 > unrolled thread
| Started by | Ian Kelly <ian.g.kelly@gmail.com> |
|---|---|
| First post | 2014-07-19 13:00 -0600 |
| Last post | 2014-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.
Re: What's the proper style for a library string function? Ian Kelly <ian.g.kelly@gmail.com> - 2014-07-19 13:00 -0600
| From | Ian Kelly <ian.g.kelly@gmail.com> |
|---|---|
| Date | 2014-07-19 13:00 -0600 |
| Subject | Re: 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.
Back to top | Article view | comp.lang.python
csiph-web