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


Groups > comp.lang.python > #71689

Re: PEP 8 : Maximum line Length :

From Roy Smith <roy@panix.com>
Newsgroups comp.lang.python
Subject Re: PEP 8 : Maximum line Length :
Date 2014-05-17 09:49 -0400
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <roy-13D9A0.09495817052014@news.panix.com> (permalink)
References (1 earlier) <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> <mailman.10083.1400332708.18130.python-list@python.org>

Show all headers | View raw


In article <mailman.10083.1400332708.18130.python-list@python.org>,
 Chris Angelico <rosuav@gmail.com> wrote:

> 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

Nah.  Python has relativistic duck typing:

>>> c = 186000
>>> m = 100
>>> E = 3459600000000L
>>> assert E==m*c*c
>>>

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