Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #68475
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <skip.montanaro@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.003 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'operator': 0.03; 'binary': 0.07; "subject:' ": 0.07; 'literal': 0.09; 'pep': 0.09; 'subject:string': 0.09; 'cc:addr:python-list': 0.11; 'suggest': 0.14; '10:59': 0.16; 'from:addr:pobox.com': 0.16; 'from:addr:skip': 0.16; 'operator.': 0.16; 'practice?': 0.16; 'whitespace.': 0.16; 'sender:addr:gmail.com': 0.17; 'wrote:': 0.18; 'things.': 0.19; 'example': 0.22; 'preferred': 0.22; 'cc:addr:python.org': 0.22; 'skip': 0.24; 'space.': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'chris': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'operators': 0.31; 'priorities': 0.31; 'used,': 0.33; 'maybe': 0.34; 'could': 0.34; 'subject:with': 0.35; 'common': 0.35; 'done.': 0.35; 'operations': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'doing': 0.36; 'pm,': 0.38; 'enough': 0.39; 'space': 0.40; 'skip:u 10': 0.60; 'more': 0.64; 'different': 0.65; 'to:addr:gmail.com': 0.65; 'worth': 0.66; 'mar': 0.68; 'lowest': 0.74; 'surround': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=+VSACBpko8HYDz7MbMyrsYFCqEvghqEBlNOIMEoeb40=; b=r/j/N33QyJJFVu+NUtLv9rDlVVVVafvk1SVyC+0nvcaRPGDld/Nq1pTH4umeOfTPcT rOmc7gVODcY0/v1BPW5NKb2fz9zRzh6f5tmqpfVVl3qCe7BjZv97O9pTC8VKP1ev7sbF dOe+qwpccEV1RFtx1g2xeFYcvOHZnmofbXQup508UAwrV5ptwd/HwrqRbGMDfL7tH+ep aDbIj00XNOwGS4wkKCK9anYKVBM3CuYlBZPaSUEYkw9ZxFLqw+Ojct66qBzdgBcsNOet j5f5gZjkXBUOcweiEaszN4yGR10VUldKNN/RWY9MBlhvCgubarBzYeIZSGP3vdOU275p XUvg== |
| MIME-Version | 1.0 |
| X-Received | by 10.50.47.231 with SMTP id g7mr16029875ign.8.1395104851312; Mon, 17 Mar 2014 18:07:31 -0700 (PDT) |
| Sender | skip.montanaro@gmail.com |
| In-Reply-To | <CAPTjJmpMw7fnU9L8OKMSvyQJZ8t9uM3VbzZxHzwoU0dV6wHaLQ@mail.gmail.com> |
| References | <8c862bec-815e-424c-81e2-8f37ebab1c35@googlegroups.com> <loom.20140317T184835-830@post.gmane.org> <lg7rle$4q0$1@ger.gmane.org> <CANc-5UzEHLBDcHVdt9odKX24hp7=rdGtBTBiWjO7Me_BEwgGDg@mail.gmail.com> <CAPTjJmpMw7fnU9L8OKMSvyQJZ8t9uM3VbzZxHzwoU0dV6wHaLQ@mail.gmail.com> |
| Date | Mon, 17 Mar 2014 20:07:31 -0500 |
| X-Google-Sender-Auth | IU9v-7CR9_WNqoBEJ9kJY2DTruA |
| Subject | Re: 'complex' function with string argument. |
| From | Skip Montanaro <skip@pobox.com> |
| To | Chris Angelico <rosuav@gmail.com> |
| Content-Type | text/plain; charset=UTF-8 |
| Cc | Python <python-list@python.org> |
| 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.8234.1395104861.18130.python-list@python.org> (permalink) |
| Lines | 34 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1395104861 news.xs4all.nl 2854 [2001:888:2000:d::a6]:38984 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:68475 |
Show key headers only | View raw
On Mon, Mar 17, 2014 at 7:16 PM, Chris Angelico <rosuav@gmail.com> wrote: > On Tue, Mar 18, 2014 at 10:59 AM, Skip Montanaro <skip@pobox.com> wrote: >> Perhaps it's worth pointing out that pylint complains about most/many >> infix operations if you don't surround the operator with white space. > > IMO that's excessive. Not every infix operator needs whitespace. I wasn't suggesting it was the only way things could be done. Just pointing out that there is enough common practice out there to suggest that white space around infix operators is often the preferred way of doing things. Quoting from PEP 8: If operators with different priorities are used, consider adding whitespace around the operators with the lowest priority(ies). Use your own judgment; however, never use more than one space, and always have the same amount of whitespace on both sides of a binary operator. Yes: i = i + 1 submitted += 1 x = x*2 - 1 hypot2 = x*x + y*y c = (a+b) * (a-b) ... My point is that accommodating white space around the + or - sign isn't altogether unreasonable. Maybe PEP 8 needs to be tweaked with an example of good complex literal practice? Skip
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
'complex' function with string argument. Jayanth Koushik <jnkoushik@gmail.com> - 2014-03-15 09:26 -0700
Re: 'complex' function with string argument. Mark H Harris <harrismh777@gmail.com> - 2014-03-17 11:18 -0500
Re: 'complex' function with string argument. Chris Angelico <rosuav@gmail.com> - 2014-03-18 04:03 +1100
Re: 'complex' function with string argument. Marko Rauhamaa <marko@pacujo.net> - 2014-03-17 20:15 +0200
Re: 'complex' function with string argument. Ian Kelly <ian.g.kelly@gmail.com> - 2014-03-17 12:28 -0600
Re: 'complex' function with string argument. Chris Angelico <rosuav@gmail.com> - 2014-03-18 05:59 +1100
Re: 'complex' function with string argument. Marko Rauhamaa <marko@pacujo.net> - 2014-03-17 21:22 +0200
Re: 'complex' function with string argument. Chris Angelico <rosuav@gmail.com> - 2014-03-18 06:32 +1100
Re: 'complex' function with string argument. Steven D'Aprano <steve@pearwood.info> - 2014-03-18 04:08 +0000
Re: 'complex' function with string argument. Mark H Harris <harrismh777@gmail.com> - 2014-03-17 13:20 -0500
Re: 'complex' function with string argument. Steven D'Aprano <steve@pearwood.info> - 2014-03-18 04:52 +0000
Re: 'complex' function with string argument. Chris Angelico <rosuav@gmail.com> - 2014-03-18 15:59 +1100
Re: 'complex' function with string argument. Mark H Harris <harrismh777@gmail.com> - 2014-03-18 11:14 -0500
Re: 'complex' function with string argument. wxjmfauth@gmail.com - 2014-03-19 00:30 -0700
Re: 'complex' function with string argument. Marko Rauhamaa <marko@pacujo.net> - 2014-03-19 10:51 +0200
Re: 'complex' function with string argument. wxjmfauth@gmail.com - 2014-03-19 02:52 -0700
Re: 'complex' function with string argument. Marko Rauhamaa <marko@pacujo.net> - 2014-03-19 12:09 +0200
Re: 'complex' function with string argument. Ian Kelly <ian.g.kelly@gmail.com> - 2014-03-19 04:33 -0600
Re: 'complex' function with string argument. Marko Rauhamaa <marko@pacujo.net> - 2014-03-19 12:53 +0200
Re: 'complex' function with string argument. Ian Kelly <ian.g.kelly@gmail.com> - 2014-03-19 13:35 -0600
Re: 'complex' function with string argument. Skip Montanaro <skip@pobox.com> - 2014-03-19 06:04 -0500
Re: 'complex' function with string argument. wxjmfauth@gmail.com - 2014-03-19 07:35 -0700
Re: 'complex' function with string argument. Ian Kelly <ian.g.kelly@gmail.com> - 2014-03-19 12:45 -0600
Re: 'complex' function with string argument. Mark Dickinson <mdickinson@enthought.com> - 2014-03-17 17:55 +0000
Re: 'complex' function with string argument. Terry Reedy <tjreedy@udel.edu> - 2014-03-17 18:06 -0400
Re: 'complex' function with string argument. Skip Montanaro <skip@pobox.com> - 2014-03-17 18:59 -0500
Re: 'complex' function with string argument. Chris Angelico <rosuav@gmail.com> - 2014-03-18 11:16 +1100
Re: 'complex' function with string argument. Skip Montanaro <skip@pobox.com> - 2014-03-17 20:07 -0500
Re: 'complex' function with string argument. Christian Gollwitzer <auriocus@gmx.de> - 2014-03-18 08:04 +0100
Re: 'complex' function with string argument. Chris Angelico <rosuav@gmail.com> - 2014-03-18 18:11 +1100
Re: 'complex' function with string argument. Steven D'Aprano <steve@pearwood.info> - 2014-03-18 08:00 +0000
Re: 'complex' function with string argument. Christian Gollwitzer <auriocus@gmx.de> - 2014-03-18 09:21 +0100
Re: 'complex' function with string argument. Marko Rauhamaa <marko@pacujo.net> - 2014-03-18 16:00 +0200
csiph-web