Breakdown of approaches to PEP318

Valentino Volonghi aka Dialtone dialton3.NOSPAM#_ME_TAG# at virgilio.it
Sun Mar 28 16:59:42 EST 2004


Il Sun, 28 Mar 2004 11:59:03 -0500, Sean Ross ha scritto:

> # [7] :function_attribute:...
> def foo(self)[publish_to_web]:
>         :spark_rule:"DOC:= HEAD BODY FOOT"
>         :url:"/cgi-bin/directory/directory"
>         "doc string"
>         body

> # [11] current method
> def foo(self):
>        "doc string"
>        very
>        long
>        body
>        ....
> foo.spark_rule = "DOC:=HEAD BODY FOOT",
> foo.url="/cgi-bin/directory/directory") foo = publish_to_web(foo)

> Personally, I find all of this very off-putting. I find none of these
> proposals clean, clear, and/or readable, except perhaps [11] (which
> started the whole mess in the first place). I tend to agree with the
> following, somewhat out of context, remark:

Just look at those 2 above... They are almost the same, really clear.

My vote goes to number 7.

+1 for 7

-- 
Valentino Volonghi aka Dialtone
Linux User #310274, Gentoo Proud User
X Python Newsreader developer
http://sourceforge.net/projects/xpn/




More information about the Python-list mailing list