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


Groups > comp.lang.python > #2685

Re: Fun python 3.2 one-liner

From Ben Finney <ben+python@benfinney.id.au>
Newsgroups comp.lang.python
Subject Re: Fun python 3.2 one-liner
References (1 earlier) <mailman.1381.1301429221.1189.python-list@python.org> <d9f11a36-8d93-4713-b8bd-dc2805836e86@j9g2000prj.googlegroups.com> <8vi963F9lhU1@mid.individual.net> <mailman.46.1302010711.9059.python-list@python.org> <948e53d8-6f17-414e-987a-8b6f0435e20f@17g2000prr.googlegroups.com>
Date 2011-04-06 13:59 +1000
Message-ID <878vvoghcv.fsf@benfinney.id.au> (permalink)
Organization Unlimited download news at news.astraweb.com

Show all headers | View raw


Raymond Hettinger <python@rcn.com> writes:

> On Apr 5, 6:38 am, Daniel Fetchinson <fetchin...@googlemail.com>
> wrote:
> > Yeah, but we don't live in the 80's or 90's anymore and our screens
> > can support xterms (or let alone IDE widows) much wider than 80
> > characters. I'm using 140 for python these days. Seriously, who
> > would want to limit him/herself to 80 characters in 2011?

A broadsheet newspaper allows a whole lot of characters on a single
line, yet they still limit the width of each passage of text. The limit
on line length is not only for technical reasons, but for readability.

> I wonder how many people will shorten otherwise clear
> variable names just to get their lines to fit in 80 characters?

Not me. When the line is over 78 characters or so, I just break the line
at an appropriate point.

Line breaks (within bracketing syntax) are far less expensive than
uncommunicative variable names.

-- 
 \     “I must have a prodigious quantity of mind; it takes me as much |
  `\   as a week sometimes to make it up.” —Mark Twain, _The Innocents |
_o__)                                                          Abroad_ |
Ben Finney

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


Thread

Re: Fun python 3.2 one-liner Terry Reedy <tjreedy@udel.edu> - 2011-03-29 16:06 -0400
  Re: Fun python 3.2 one-liner Martin De Kauwe <mdekauwe@gmail.com> - 2011-03-30 02:19 -0700
    Re: Fun python 3.2 one-liner Chris Angelico <rosuav@gmail.com> - 2011-03-30 20:31 +1100
    Re: Fun python 3.2 one-liner Raymond Hettinger <python@rcn.com> - 2011-03-30 16:39 -0700
    Re: Fun python 3.2 one-liner Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2011-03-31 16:02 +1300
      Re: Fun python 3.2 one-liner Daniel Fetchinson <fetchinson@googlemail.com> - 2011-04-05 15:38 +0200
        Re: Fun python 3.2 one-liner Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-04-05 15:07 +0000
          Re: Fun python 3.2 one-liner Chris Angelico <rosuav@gmail.com> - 2011-04-06 01:19 +1000
            Re: Fun python 3.2 one-liner Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-04-05 17:48 +0000
          Re: Fun python 3.2 one-liner Daniel Fetchinson <fetchinson@googlemail.com> - 2011-04-05 19:54 +0200
          Re: Fun python 3.2 one-liner Lie Ryan <lie.1296@gmail.com> - 2011-04-09 00:27 +1000
        Re: Fun python 3.2 one-liner Raymond Hettinger <python@rcn.com> - 2011-04-05 17:10 -0700
          Re: Fun python 3.2 one-liner Ben Finney <ben+python@benfinney.id.au> - 2011-04-06 13:59 +1000
          Re: Fun python 3.2 one-liner Chris Angelico <rosuav@gmail.com> - 2011-04-06 11:34 +1000
      Re: Fun python 3.2 one-liner Tim Wintle <tim.wintle@teamrubber.com> - 2011-04-05 16:04 +0100

csiph-web