PEP 318

AdSR artur_spruce at yahoo.com
Mon Mar 22 14:25:01 EST 2004


Nicolas Fleury <nid_oizo at yahoo.com_removethe_> wrote...
> Marco Bubke wrote:
> > def foo(x, y) as staticmethode: pass
> > 
> > Define foo with arguments x and y as staticmethode.
> > 
> > Is Python now C++? Mabe I miss something why this syntax is wrong.
> 
> Personnally, I prefer the "as" syntax to the other proposed (and by a 
> large margin).  However, I feel that it is making the language more 
> complex and I'm far from sure it's worth the effort.  I've given some 
> [snip
> If easing the creation of class methods is so important, I would prefer 

Just done a quick check:

$ find /lib/python2.3/ -name "*.py" -exec egrep
"(class|static)method\W" {} ';' | wc --lines
     49

Not all of them are calls, and all this in 773 *.py files. I guess
this says something about importance...

Cheers,

AdSR



More information about the Python-list mailing list