How can I do a line break (line continuation) in Python for lines with multiple objects/functions in it?

25 Views Asked by At

With PEP 8 -- Style Guide for Python Code, the maximum line length should be 79 characters. I have a line like the following

object1.function1().function2().function3()

or

object1.object2.object3.function1()

which is more than 79 characters. How should I do a line break, in these cases?

0

There are 0 best solutions below