Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #74830
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <ian.g.kelly@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.042 |
| X-Spam-Evidence | '*H*': 0.92; '*S*': 0.00; 'statements': 0.09; 'subject:string': 0.09; 'declaration': 0.16; 'personally,': 0.16; 'separated': 0.16; 'subject:library': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'written': 0.21; "i've": 0.25; 'header:In-Reply- To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'interface': 0.32; 'style': 0.33; 'subject:the': 0.34; 'definition': 0.35; 'received:google.com': 0.35; 'consist': 0.36; 'subject:?': 0.36; 'should': 0.36; 'easily': 0.37; 'sometimes': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'simple': 0.61; 'jul': 0.74; 'visually': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=oDzRq9B1a3zk0HliJaPvWH9r5/gzOA8lxJlTpnj1SZ0=; b=0Tptrw6XcS2qyK8KGbFux2/TDzHtzvI5gDShC5V94UER2BVNH/9ACHsejYMuiXzPVs 8iuO4kaG3VNOOe1YmMlyHwabSEIm5pAoroNp6XgQz98pfWtZUDQlh007vpw97XJ/7D69 ag3XPzD1HV7Th9WmxlFMoh7nuRvR1kMuAfFyGioNuweCBkJXVw2MmQXP3WLXDIiotz9V xdEjFG7aaeR9HP+8ksFHxlJpwdCE96IAPCZFVg8bGlLzxgYJdEKj1K1cHAtzh9r5S+h3 MRju9FWV0vR5jNcdt9rgnGGTcDzsG/nPvRZwXdlD31w1WbfF7SoEcwTYdadQgdTGcRYB IRxA== |
| X-Received | by 10.66.254.4 with SMTP id ae4mr13684555pad.99.1405796463530; Sat, 19 Jul 2014 12:01:03 -0700 (PDT) |
| MIME-Version | 1.0 |
| In-Reply-To | <53CABE81.7040003@cdreimer.com> |
| References | <53CAAD27.9010207@cdreimer.com> <lqed60$si$1@ger.gmane.org> <53CABE81.7040003@cdreimer.com> |
| From | Ian Kelly <ian.g.kelly@gmail.com> |
| Date | Sat, 19 Jul 2014 13:00:23 -0600 |
| Subject | Re: What's the proper style for a library string function? |
| To | Python <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| 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.12058.1405796467.18130.python-list@python.org> (permalink) |
| Lines | 8 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1405796467 news.xs4all.nl 2865 [2001:888:2000:d::a6]:37003 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:74830 |
Show key headers only | View raw
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