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

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

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant