PEP8 revised: max line lengths

wxjmfauth at gmail.com wxjmfauth at gmail.com
Fri Aug 2 17:15:31 EDT 2013


Le vendredi 2 août 2013 17:19:11 UTC+2, Skip Montanaro a écrit :
> > The solely valid solution, assuming there is some wish,
> 
> > is to define a maximal line width (preferably in SI units ;-)
> 
> 
> 
> So, 79 * 8 points == 0.222955555696 meters, right? :-)
> 
> 
> 
> Skip

You can correct your mistake yourself. In your
equation, the unit at the left is [1] * [point] = [point],
at the right the unit is [meter], obviously
[point] != [meter].


Problem #1
For a tool which is supposed to be Unicode compliant,
a Unicode compliant font has never a constant pitch,
so counting a maximal width in number of characters
does not make sense.

Problem #2
The only valid constraint which makes sense is
a maximal size in a length unit. Two possibilities:
– if you consider your document is to be viewed
as a screen document, pixel comes in mind.
– if you condider your document will be printed,
retain a physical unit length (cm, inch).

Problem #3
cm or inch? The only serious unit is an SI unit.
(In scientific publications, only SI units are accepted)


Hint: Put you code in a pdf.

jmf




More information about the Python-list mailing list