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


Groups > comp.lang.python > #71683

Re: PEP 8 : Maximum line Length :

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.005
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'convention.': 0.07; 'conventions': 0.07; 'subject:PEP': 0.07; 'think,': 0.07; 'integral': 0.09; 'prefix': 0.09; 'suffix': 0.09; 'translate': 0.10; 'cc:addr:python-list': 0.11; 'python': 0.11; 'be:': 0.16; 'character.': 0.16; 'fail,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'java.': 0.16; 'name),': 0.16; 'symbols': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'variable': 0.18; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'subject: : ': 0.26; 'van': 0.27; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'leave': 0.29; 'characters': 0.30; 'message-id:@mail.gmail.com': 0.30; 'that.': 0.31; 'assert': 0.31; 'probably': 0.32; 'run': 0.32; 'not.': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'functions.': 0.36; 'pm,': 0.38; 'even': 0.60; 'tag': 0.61; 'name': 0.63; 'choose': 0.64; 'upper': 0.74; 'special': 0.74; 'characters,': 0.84; 'collision': 0.84; 'greek': 0.84; 'roman,': 0.84; 'signs,': 0.84; 'albert': 0.91; 'to:none': 0.92
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:cc :content-type:content-transfer-encoding; bh=bjV3Q+/zFxY6zA/MF7eBpHrhhC+lp0ofojr1h5+XMsk=; b=qgGBKpkj9CK1nw0y/ZImSnlPd0Rqcn7Nzd0ze3KvkXHrxVOPGEkYgAYdJzS6EG8+R5 tyBaviaR/LGUjNShKp77MpnvjyjmiXM7aBekiMTboR6k68Lju8rEeZIm5dpZz6cZNU0J kzo7rwFFos3QtuDr9t4ROrBLsiIrF/6tTRjI0gnmYEte8Ka2MIStWnR/gwiRfpFcG6b5 CBGm1aOR7u+R7gitsWmEAjSTsl4SX+1okaTQGUrKn+TS+bVFeLTcQXN7sw7iTyXgvxIp k2FA5sFJGQaTPSbpBV3kP6/L3MY8rHlom5sFjGFP5o0pe78ayU9r+skI52OT7NKQUUkT xdJA==
MIME-Version 1.0
X-Received by 10.220.253.132 with SMTP id na4mr2751709vcb.39.1400332701664; Sat, 17 May 2014 06:18:21 -0700 (PDT)
In-Reply-To <53775b9c$0$27160$e4fe514c@dreader35.news.xs4all.nl>
References <CACT3xuWxJHqqV26R+3aYvpovRs7OZ6_TFynSVV-n-b+EkMmtKA@mail.gmail.com> <mailman.9952.1399970767.18130.python-list@python.org> <51ad8928-619c-4e9c-b66f-15bd4a2a8124@googlegroups.com> <mailman.10041.1400164039.18130.python-list@python.org> <53775b9c$0$27160$e4fe514c@dreader35.news.xs4all.nl>
Date Sat, 17 May 2014 23:18:21 +1000
Subject Re: PEP 8 : Maximum line Length :
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
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.10083.1400332708.18130.python-list@python.org> (permalink)
Lines 32
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1400332708 news.xs4all.nl 2874 [2001:888:2000:d::a6]:33758
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:71683

Show key headers only | View raw


On Sat, May 17, 2014 at 10:52 PM, Albert van der Horst
<albert@spenarnc.xs4all.nl> wrote:
> That may be tong-in-cheek but mathematicians do exactly that. We
> use roman, greek and hebrew alphabets in normal italics and boldface
> and then some special characters for element-of, logical-or, integral signs,
> triangles and what not. Underbarred and upper twiggled, as a suffix a prefix
> or a superfix. All in the name of avoiding names longer than one character.
>
> When we run out then there are creative ways to combine known characters
> into Jacobi symbols and choose functions.
>
> There are even conventions that allow to leave out characters, like
> "juxtaposition means multiplication" and the Einstein summation convention.

This, I think, is the main reason for the one-character variable name
convention. Why else are there subscripts? Instead of using "V0"
(two-character name), you use "V₀" (one-character name with a
subscript tag on it) to avoid collision with multiplication.

> Now translate E=mc^2 into Java.

Dunno, but in Python it would be:

assert E==m*c*c

And would probably fail, because that's all floating point :)

ChrisA

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


Thread

Re: PEP 8 : Maximum line Length : Peter Otten <__peter__@web.de> - 2014-05-13 10:45 +0200
  Re: PEP 8 : Maximum line Length : Rustom Mody <rustompmody@gmail.com> - 2014-05-13 06:18 -0700
  Re: PEP 8 : Maximum line Length : wxjmfauth@gmail.com - 2014-05-15 07:17 -0700
    Re: PEP 8 : Maximum line Length : Chris Angelico <rosuav@gmail.com> - 2014-05-16 00:27 +1000
      Re: PEP 8 : Maximum line Length : wxjmfauth@gmail.com - 2014-05-15 08:48 -0700
      Re: PEP 8 : Maximum line Length : albert@spenarnc.xs4all.nl (Albert van der Horst) - 2014-05-17 12:52 +0000
        Re: PEP 8 : Maximum line Length : Chris Angelico <rosuav@gmail.com> - 2014-05-17 23:18 +1000
          Re: PEP 8 : Maximum line Length : Roy Smith <roy@panix.com> - 2014-05-17 09:49 -0400
        Re: PEP 8 : Maximum line Length : Tim Chase <python.list@tim.thechases.com> - 2014-05-17 08:28 -0500
          Re: PEP 8 : Maximum line Length : Roy Smith <roy@panix.com> - 2014-05-17 09:46 -0400
        Re: PEP 8 : Maximum line Length : Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-05-17 15:02 +0100
          Re: PEP 8 : Maximum line Length : Roy Smith <roy@panix.com> - 2014-05-17 10:06 -0400
            Re: PEP 8 : Maximum line Length : Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-05-17 15:21 +0100
            Re: PEP 8 : Maximum line Length : Rustom Mody <rustompmody@gmail.com> - 2014-05-17 10:46 -0700

csiph-web