A 'Python like' language

Magnus Lyck? magnus at thinkware.se
Tue Mar 30 14:51:56 EST 2004


"Greg Ewing (using news.cis.dfn.de)" <ieyf4fu02 at sneakemail.com> wrote in message news:<c48e0g$2fkvm2$1 at ID-169208.news.uni-berlin.de>...
> * A bit of syntactic sugar for defining prototype objects
>    wouldn't go amiss. Having to say
> 
>      Thing = Base()
>      with Thing:
>         ...
> 
>    every time I want to define a class (oops, sorry, prototype)
>    would drive me batty.

What about just combining it to this?

with Thing = Base():
    ...



More information about the Python-list mailing list