A 'Python like' language

Mark Hahn mark at prothon.org
Tue Mar 30 17:10:56 EST 2004


"Magnus Lyck?" <magnus at thinkware.se> wrote in message
news:258fd9b8.0403301151.179e9190 at posting.google.com...
> "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