PEP 8 : Maximum line Length :
Marko Rauhamaa
marko at pacujo.net
Fri May 16 06:48:58 EDT 2014
Chris Angelico <rosuav at gmail.com>:
> Compare these two assignment statements:
>
> area = (base*base + extension*extension
> + annex*annex + (annex-extension)*annex
> + triangle*triangle/2
> + circle*circle*math.PI + sphere*sphere*4*math.PI)
>
> area = (base*base + extension*extension + annex*annex
> + (annex-extension)*annex + triangle*triangle/2
> + circle*circle*math.PI + sphere*sphere*4*math.PI)
>
> [...]
> How are you going to cope with this distinction? That's real, useful
> information, which the AST doesn't carry.
Such nuances would be lost, yes. However, the nuances are constantly
abused and misinterpreted anyway.
Marko
More information about the Python-list
mailing list