Static method and class method comments

Duncan Booth duncan at NOSPAMrcp.co.uk
Mon Jul 30 09:58:19 EDT 2001


Kevin.Smith at themorgue.org (Kevin Smith) wrote in
news:MdW77.10395$UB6.966994 at e3500-atl1.usenetserver.com: 

> I really like this idea.  This is better than the current
> implementation and the Jack Jansen syntax (which I found mildly
> confusing).  It also allows the current classmethod()/staticmethod()
> built-ins to still be used, but in a more appropriate spot in the
> method definition.  I can see a lot of additional power and flexibility
> with this idea.  This one gets my vote! 

Ok, I'll see if I can write this up into a PEP. One thing that worries me 
slightly though is that I can't see a really good way to include getset in 
this proposal. (I can think of loads of slightly tacky ways to do it 
though).

-- 
Duncan Booth                                             duncan at rcp.co.uk
int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3"
"\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?



More information about the Python-list mailing list