A 'Python like' language

Mark Hahn mark at prothon.org
Tue Mar 30 17:15:27 EST 2004


(Sorry about the blank reply)

> What about just combining it to this?
>
> with Thing = Base():

Yes, I want to.  But first I have to decide to get rid of Guido's aversion
to assignments returning a value.

Any ideas on how to implement assignment expressions and not have if x = y:
ambiguity problems?

I've considered using a different syntax for the expression version of "=",
such as ":=" or even left.replace!(right).

"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