Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #50139
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <xfq.free@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.002 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'newbie': 0.05; 'subject:PEP': 0.07; 'pep': 0.09; 'subject:question': 0.10; 'python': 0.11; 'archive': 0.14; "'a',": 0.16; "'b',": 0.16; "'c',": 0.16; "'d',": 0.16; "'e',": 0.16; 'constructs': 0.16; 'direction?': 0.16; 'all,': 0.19; 'typing': 0.19; 'point': 0.28; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; 'anyone': 0.31; 'to:name:python-list': 0.33; 'skip:s 30': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'consistent': 0.36; 'in:': 0.36; 'web,': 0.36; 'to:addr:python-list': 0.38; 'list,': 0.38; 'to:addr:python.org': 0.39; '|the': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=jlRygh0yKIWcBhEv6krxjaBVk09En725dx/zIcNpe/8=; b=tlFH/24ret/6Rx+wr/oyoyYHNgK9kQ29uOE7d3r4b4kHoiaNpGH1CQ7mraB2uu4BuR rSd054pn4C77HpwMIVnj+r9u+wX+tkw+s3jkBs7iUoS1YYupnsUyd1BIoTRVPpJhPNeO /g8ZdmlE8dCmPOhZZq0JfqUJtCGe3HNufIbSWxkjl2tjFwdDcazvC7JfxG1OTBg61PLV K1Xwog5uRWq7JOuZqctlISlrDMvWCY3dPM81yWaZg/G0PnH/GAObSBXnYraP136H/okt zp29bP9i2kj0fNg/2HlynZG7WvEaoggL2yw6dfx1QT6QqXxMDBWRxH0+gq7mS3cl95T9 5BKQ== |
| MIME-Version | 1.0 |
| X-Received | by 10.50.111.170 with SMTP id ij10mr4282840igb.9.1373239921805; Sun, 07 Jul 2013 16:32:01 -0700 (PDT) |
| Date | Mon, 8 Jul 2013 07:32:01 +0800 |
| Subject | A small question about PEP 8 |
| From | Xue Fuqiao <xfq.free@gmail.com> |
| To | python-list <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| X-Mailman-Approved-At | Mon, 08 Jul 2013 11:22:35 +0200 |
| 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 | <http://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 | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4377.1373275365.3114.python-list@python.org> (permalink) |
| Lines | 29 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1373275365 news.xs4all.nl 16009 [2001:888:2000:d::a6]:48200 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:50139 |
Show key headers only | View raw
Hi all, (English is not my native language; please excuse typing errors.) I'm a Python newbie and just started reading PEP 8. PEP says: ----------------------------------------------------------------------- |The closing brace/bracket/parenthesis on multi-line constructs may |either line up under the last item of the list, as in: | |my_list = [ | 1, 2, 3, | 4, 5, 6, | ] |result = some_function_that_takes_arguments( | 'a', 'b', 'c', | 'd', 'e', 'f', | ) ----------------------------------------------------------------------- I think the last item in my_list/result is 6/'f', respectively. So why doesn't the bracket/paren line up _under_ the last item? ISTM the code isn't consistent with the description. I have searched the archive of c.l.p and the web, but nothing helped. Can anyone point me in the right direction? -- Best regards, Xue Fuqiao.
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
A small question about PEP 8 Xue Fuqiao <xfq.free@gmail.com> - 2013-07-08 07:32 +0800 Re: A small question about PEP 8 Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-07-08 11:46 +0000
csiph-web