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-April/043928.html below:

[Python-Dev] Re: PEP 318 bake-off?

[Python-Dev] Re: PEP 318 bake-off?David Goodger goodger at python.org
Thu Apr 1 18:43:07 EST 2004
Phillip J. Eby wrote:
> Thanks!  So for example, this:
> 
> def admonition(*args):
>     return make_admonition(nodes.admonition, *args)
> 
> admonition.arguments = (1, 0, 1)
> admonition.options = {'class': directives.class_option}
> admonition.content = 1
...
> 
> might be rephrased as (say):
> 
> as [rst_directive(
>         arguments=(1,0,1),
>         options={'class': directives.class_option},
>         content=1
>     )
> ] def admonition(*args):
>     return make_admonition(nodes.admonition, *args)

I suppose so, but a generic function attribute decorator
would do just as well.  IOW, it doesn't have to be
"rst_directive", just "attributes" would do fine.

-- David Goodger

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