A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-February/042837.html below:

[Python-Dev] Re: new syntax for wrapping (PEP 318)

[Python-Dev] Re: new syntax for wrapping (PEP 318)Paul Moore pf_moore at yahoo.co.uk
Fri Feb 27 16:57:19 EST 2004
Michael Chermside <mcherm at mcherm.com> writes:

>       I think that two objections still stand:
>
>       * "def foo (bar,baz) [qux, quux]:" is certainly not "executable
>         pseudocode".

This has been mentioned a couple of times. I'm not sure I see the
issue, though. With concrete examples, it *does* read like executable
pseudocode to me:

    def factory(cls, arg1, arg2) [classmethod]:
        ...

reads to me as "define a factory function, with arguments cls, arg1,
arg2 - it's a class method".

    def tidy_up() [onexit]:

reads as "define the tidy_up function which is called on exit from the
program".

Getting the decorator names right is the key thing, I think.

Paul.
-- 
This signature intentionally left blank


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4