[Python-Dev] PEP 318: Can't we all just get along? (original) (raw)

Scott Gilbert xscottg at yahoo.com
Fri Aug 20 02:02:04 CEST 2004


Please count a humble vote for list after def.

The following is simple:

def foo(self, a, b) [classmethod]:
    pass

And the pathological cases can be made more readable with a little formatting:

def longMethodNameForEffect(
    longArgumentOne=None,
    longArgumentTwo=42
)[
    staticmethod,
    funcattrs(
        grammar="'@' dotted_name [ '(' [arglist] ')' ]",
        status="experimental", author="BDFL"
    )
]:
    """This method blah, blah.

    It supports the following arguments:
    - longArgumentOne -- a string giving ...
    - longArgumentTwo -- a number giving ...

    blah, blah.

    """
    raise NotYetImplemented

Back to lurking...



More information about the Python-Dev mailing list