Py3K idea: why not drop the colon?

Christophe chris.cavalaria at free.fr
Wed Nov 15 04:08:17 EST 2006


Stephen Eilert a écrit :
> Well, I *hate* underscores with a passion. So it is kinda frustrating
> that I *have* to say "__init__". The fact that the coding conventions
> for Python suggest things such as methods_called_this_or_that do not
> help. Everything else seems fine, since if there's voodoo involved, it
> had best be sticking out from the text in big, bloody, blinking, red
> letters.
> 
> I know, there's noone preventing me from doing otherwise (except for
> that blasted __init__). I'd like to follow the pack here, tho.
I'm sure a carefully crafted metaclass can be used to automaticaly 
convert any init function to __init__ ;)



More information about the Python-list mailing list