[Python-ideas] 80 character line width vs. something wider

Ben Finney ben+python at benfinney.id.au
Wed May 20 02:07:40 CEST 2009


Jason Orendorff writes:

> I find the long lines in my code are not as contrived as the thread so
> far suggests:
> 
>                     t = t[:m.start()] + t[m.end():]  # ok because
> we're iterating in reverse
> 
>             sys.stderr.write("js-build: WARNING: Due to COMMAND_MODE
> madness, this can fail on Leopard!\n"
>                              "js-build:          Workaround is to
> upgrade to Python 2.5.2 or later.\n")
> 
> allVariants = [_m + _r + _x for _x in ('', 'x') for _m in ('', 'm')
> for _r in ('r', 'd')]
[and so on]

Jason, if you want to show code with long lines, please use an email
tool chain that doesn't wrap those long lines. Somewhere along the way
you're getting extra line breaks inserted.

-- 
 \     “Facts do not cease to exist because they are ignored.” —Aldous |
  `\                                                            Huxley |
_o__)                                                                  |
Ben Finney




More information about the Python-ideas mailing list