Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Joel Goldstick Newsgroups: comp.lang.python Subject: Re: Steve D'Aprano, you're the "master". What's wrong with this concatenation statement? Date: Sun, 8 May 2016 20:02:19 -0400 Lines: 28 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de 5nTXh3TKe8ofWsVKumBHPQyLt6Hvso/wGtauvb63Yw2Q== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.019 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'subject:skip:c 10': 0.07; 'tool,': 0.07; 'cc:addr:python-list': 0.09; 'statements': 0.09; 'received:209.85.218': 0.10; 'url:blog': 0.10; 'python': 0.10; 'anyway': 0.11; '(at': 0.13; 'subject: \n ': 0.15; 'things.': 0.15; '2016': 0.16; 'dfs': 0.16; 'practices.': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'tabs': 0.16; 'wrote:': 0.16; 'tells': 0.18; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'fine,': 0.22; 'seems': 0.23; 'header :In-Reply-To:1': 0.24; 'coding': 0.27; 'least': 0.27; 'message- id:@mail.gmail.com': 0.27; 'url:mailman': 0.30; 'code': 0.30; 'point': 0.33; 'problem': 0.33; 'url:python': 0.33; 'view,': 0.33; 'url:listinfo': 0.34; 'editor': 0.34; 'received:google.com': 0.35; 'text': 0.35; 'mix': 0.35; "isn't": 0.35; 'but': 0.36; 'url:org': 0.36; 'received:209.85': 0.36; 'depends': 0.36; 'subject:?': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'turn': 0.37; 'received:209': 0.38; 'several': 0.38; 'subject:the': 0.39; 'easily': 0.39; 'url:mail': 0.40; 'subject:with': 0.40; 'some': 0.40; 'your': 0.60; 'more': 0.63; 'you.': 0.64; 'wanting': 0.66; 'url:info': 0.71; 'useful.': 0.72; 'reviewed': 0.72; 'ask.': 0.84; 'solved.': 0.84; 'standards,': 0.84; 'subject:this': 0.85; 'subject:you': 0.85; 'concluded': 0.91; 'joel': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=DZI6mg95gtH4wMEE7BtRR2Ts7bIBKo+9TqJgimzITJk=; b=PKqeJL850eMhHbUiiZOP4+vGFAhOcThRkCHniTat8TI0uAMKHwlXritLVVt32myKnQ zy0nWGudmsFQuCor0WOyIfAeOFeu0xCVg3UmMgoJHisvDXJpnCWXRGFpsfGHnydDUsFH QYs23cBG7sfgW7H0GJTDBySu1IR/rqmvVlCGQqxmxkgF3o0b58HqRt5z4YwVqKPu2Y7J qcuC8Ff82QCVkwgk4N2r9uXfjUszpzRU1G6hGqkwyIP5aloXtnvAuhzCWQLyaVAPB5BP 1nrQQoQg1r2B6pBqtigeN+RyItJA4QOHR/4MdSFc/PS2q11pYcujRCf7auaTGUk9yGMv 0zJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=DZI6mg95gtH4wMEE7BtRR2Ts7bIBKo+9TqJgimzITJk=; b=KgLkeA6iClheXEiOu5LCetK3I92wtber3QqlhRggR5aY9Yq7XBzNufnLQ/vpsJyUmN vXRKTKtQ/zeLFNOjUo+gw6h9WIXj97YLacoCHA1tlWW5omXPYF8cIbgwtRgcqtoJMP2s sQgPAudlo6EHn3T4nXRO8hWDKzaXDpEt03PNScHfQo5n6bdNGw2so7aiXVRUs/x8rA7K fiWuF2M3c8dwsI22NBRPfzpKmYBSVTjMonbTHeOxiWIVf4ymZWw5aq2XqZqfWHoVU2Ub UnYoTANnghvEDLZmRbtqBYkojncB5+LOmw9un4lTLTA0so79POEQ/aKejiLUekcmO/vZ E1fA== X-Gm-Message-State: AOPr4FWl1oo68/Suv+Ua7MRzDwba+eRvON/EzQ1hadnwHeY3pquSg2jcEDXKG/hYN/4bN/QxNWc7DvNuAnSMSg== X-Received: by 10.202.80.208 with SMTP id e199mr9449460oib.177.1462752139660; Sun, 08 May 2016 17:02:19 -0700 (PDT) In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: Xref: csiph.com comp.lang.python:108399 On Sun, May 8, 2016 at 7:10 PM, DFS wrote: > sSQL = "line 1\n" > sSQL += "line 2\n" > sSQL += "line 3" > -- > https://mail.python.org/mailman/listinfo/python-list What is your point DFS? You found pylint, and you don't like what it tells you. Its a tool, and it can tell you some things. Your code seems to be a mix of tabs and spaces, and you don't like standard python practices. That's fine, coding is (at least alone) an individual pursuit. You can code anyway you like. But, learning from the work of others, can be awfully useful. Most people I know use spaces, they set their text editor up to make tabs turn into 4 spaces. Problem solved. As far as wanting to put several statements on a line, you can do that if you like, but others have concluded that the code is easier to read if you don't. If that isn't your view, do what you like. It depends upon what problems you want to fight. If you adhere to standards, your code is more easily reviewed and easier to get help from others, if that is what you ask. -- Joel Goldstick http://joelgoldstick.com/blog http://cc-baseballstats.info/stats/birthdays