Define functions with too many arguments to abide by PEP8 standard

An example is given in PEP 8:

class Rectangle(Blob):

    def __init__(self, width, height,
                 color="black", emphasis=None, highlight=0):

So that is the official answer. Personally I detest this approach, in which continuation lines have leading whitespace that doesn’t correspond to any real indentation level. My approach would be:

class Rectangle(Blob):

    def __init__(
        self, width, height,
        color="black", emphasis=None, highlight=0
    ):

. . . or just let the line run over 80 characters.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)