Any other Python flaws?

Alex Martelli aleaxit at yahoo.com
Fri Jun 15 08:10:13 EDT 2001


"Steve Holden" <sholden at holdenweb.com> wrote in message
news:#72#QIT9AHA.262 at cpmsnbbsa09...
    ...
> > That leaves the remaining warts as minor wibbling about 'do'
> > statements, print >>, and the like.  Are there any other flaws that
> > should be added?
> >
> Despite the fact that our Fearless Leader and BDFL has already revered
> himself once on this issue, I'd like to see strict syntactical equity
> between function definitions and class definitions, which is to say that a
> class with no superclasses should be declarable as:
>
>     class myClass():
>         pass

Hear, hear!!!  It IS a minor but definite wart that those parentheses
are a syntax error in 'class' but mandatory in 'def'.


Alex






More information about the Python-list mailing list