Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #74830
| References | <53CAAD27.9010207@cdreimer.com> <lqed60$si$1@ger.gmane.org> <53CABE81.7040003@cdreimer.com> |
|---|---|
| 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? |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.12058.1405796467.18130.python-list@python.org> (permalink) |
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 comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: What's the proper style for a library string function? Ian Kelly <ian.g.kelly@gmail.com> - 2014-07-19 13:00 -0600
csiph-web