[Python-projects] Pylint : Non-ASCII characters count double
Lubin Fayolle
lubin_fayolle at yahoo.fr
Wed Jan 30 18:43:32 CET 2008
Hello,
I have just understood why some of my lines were deemed too long by
pylint. For instance, when checking the below script:
<BEGINNING OF SCRIPT>
# -*- coding: utf-8 -*-
"""A little script to demonstrate a little bug."""
print "------------------------------------------------------------------------"
print "-----------------------------------------------------------------------é"
<END OF SCRIPT>
Pylint returns the following warning:
myscript.py:6: [C] Line too long (81/80)
where line 6 corresponds to the second call of print. The two lines are
the same length though... It seems that 'é' counts double, like many (any?)
other non-ASCII characters.
Thought it was worth mentioning even if it is only an annoyance...
Best regards,
Lubin Fayolle
More information about the Python-Projects
mailing list