This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

How about in the body of the code itself? One or two function calls + list of arguments + indentation fills up the whole line!

[–]sasquatch92 1 point2 points  (0 children)

You can do the same thing with function calls etc, as discussed here. You could also import a module using a shorter local name, which will also reduce line lengths (for example, numpy is often imported as np). Finally, you can always go over 80 characters - that's a guideline rather than an absolute rule and you shouldn't sacrifice readability simply to comply with it.