Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #38700

Re: PyDev, pep8.py conflict on spaces around negative numbers

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!xlned.com!feeder7.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python@mrabarnett.plus.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.026
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; 'example:': 0.03; 'parameter': 0.07; '**,': 0.16; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'message- id:@mrabarnett.plus.com': 0.16; 'number?': 0.16; 'wrote:': 0.17; 'insert': 0.23; 'this:': 0.23; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'right.': 0.27; 'post': 0.28; 'spaces': 0.29; 'subject:numbers': 0.29; 'keyword': 0.30; 'code': 0.31; 'right?': 0.33; 'to:addr:python-list': 0.33; 'there': 0.35; 'should': 0.36; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'space': 0.39; 'received:192.168': 0.40; 'subject:, ': 0.61; 'header:Reply-To:1': 0.68; 'reply-to:no real name:2**0': 0.72; 'reply-to:addr:python.org': 0.84; 'subject:around': 0.84
X-CM-Score 0.00
X-CNFS-Analysis v=2.0 cv=XeZXOvF5 c=1 sm=1 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=Tv4_tr9OjFAA:10 a=BFvbt9bKUkcA:10 a=ihvODaAuJD4A:10 a=OUOv7kDek9cA:10 a=8nJEP1OIZ-IA:10 a=EBOSESyhAAAA:8 a=8AHkEIZyAAAA:8 a=6wzbdm3CzPwA:10 a=boNkfjxVNJIINoLg8s4A:9 a=wPNLvfGTeEIA:10 a=eieyHaIQuX6BjCGe:21 a=Shkq1k1BwyV2-wDS:21 a=0nF1XD0wxitMEM03M9B4ZQ==:117
X-AUTH mrabarnett:2500
Date Mon, 11 Feb 2013 18:09:38 +0000
From MRAB <python@mrabarnett.plus.com>
User-Agent Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130107 Thunderbird/17.0.2
MIME-Version 1.0
To python-list@python.org
Subject Re: PyDev, pep8.py conflict on spaces around negative numbers
References <a93bb384-ac71-4223-896b-6d47e592abcf@googlegroups.com>
In-Reply-To <a93bb384-ac71-4223-896b-6d47e592abcf@googlegroups.com>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
Reply-To python-list@python.org
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.1666.1360606165.2939.python-list@python.org> (permalink)
Lines 21
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1360606165 news.xs4all.nl 6872 [2001:888:2000:d::a6]:38193
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:38700

Show key headers only | View raw


On 2013-02-11 16:39, Wanderer wrote:
> If I check the 'Use space before and after operators? (+, -, /, *,
> //, **, etc.)' in the Eclipse>PyDev>Editor>Code Style> Code
> Formatter, PyDev will insert a space before a negative number in a
> keyword parameter declaration. Pep8.py will then post a warning 'E251
> no spaces around keyword / parameter equals'.
>
> For example:
> foo(bar= -25)
>
> So which is right? Should there be a space before a negative number?
>
Pep8.py is right.

This is preferred:

     foo(bar=-25)

as is this:

     bar = -25

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

PyDev, pep8.py conflict on spaces around negative numbers Wanderer <wanderer@dialup4less.com> - 2013-02-11 08:39 -0800
  Re: PyDev, pep8.py conflict on spaces around negative numbers MRAB <python@mrabarnett.plus.com> - 2013-02-11 18:09 +0000
    Re: PyDev, pep8.py conflict on spaces around negative numbers Wanderer <wanderer@dialup4less.com> - 2013-02-11 10:56 -0800
    Re: PyDev, pep8.py conflict on spaces around negative numbers Wanderer <wanderer@dialup4less.com> - 2013-02-11 10:56 -0800

csiph-web