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: 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: <51ad8928-619c-4e9c-b66f-15bd4a2a8124@googlegroups.com> <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 Cc: "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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Sat, May 17, 2014 at 10:52 PM, Albert van der Horst 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 sig= ns, > triangles and what not. Underbarred and upper twiggled, as a suffix a pre= fix > or a superfix. All in the name of avoiding names longer than one characte= r. > > 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 conventio= n. 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=E2=82=80" (one-character name with a subscript tag on it) to avoid collision with multiplication. > Now translate E=3Dmc^2 into Java. Dunno, but in Python it would be: assert E=3D=3Dm*c*c And would probably fail, because that's all floating point :) ChrisA