I am writing in python 3.5.1 and I am a programming novice.
I use gedit with a pep8 and pyflakes plugins showing style mistakes according to the python style guide. I do not know whether to follow the style recommendation to the letter or not.
I have, however, three recurring style flaws indicated by E501: line too long (80 > 79 characters)
, E502: the backslash is redundant between brackets
and E128/E127/...: continuation line under-indented for visual indent
. Screenshots below.
My two questions are:
- How can I adequately make a line break in python in order to avoid
E501
and the subsequent style errorsE502
andE127/128
? - Is it helpful to follow the style guide pep8 to the letter, especially with publication in mind? What do advanced python programmers say?
_()
is an i18n function. See https://mcmap.net/q/294368/-meaning-of-leading-underscore-in-list-of-tuples-used-to-define-choice-fields – Coelacanth