How to break long method name into more than one line?

Herman sorsorday at gmail.com
Sun Mar 11 19:53:45 CET 2012


I am trying to stick to the rule described in the TDD book that, each
test method name consists of the method name to be tested, inputs and
the expected outputs. It takes up a lot of space and my company has a
rule of limiting 79 characters (or 80) per line. I found that
def abcdeef\
dddaaa(self):
    pass

does not work, but
def \
abcsajfoijfiawifoiwejfoi(self):
    pass

works. Is this the only way to do it?



More information about the Python-list mailing list