A 'Python like' language

Mark Hahn mark at prothon.org
Mon Mar 29 11:19:47 CEST 2004


> Not quite the same, as with Prothon it looks like it always relates to
> the self object, whereas in a `with' clause you can make it relates to
> any object you wish.

Just to confuse the issue, I'd like to point out that in Prothon, the
leading dot does always relate to the self object, but the 'with' clause
sets the self object to any object you want at any time.  So both statements
above are true at once.  The concept of changing the self object on the fly
is somewhat bizzare, much like changing the protoype on the fly, which you
can also do.

Mark Hahn (Prothon Author)

"Erik Max Francis" <max at alcyone.com> wrote in message
news:4064C129.1B8C937C at alcyone.com...
> Valentino Volonghi aka Dialtone wrote:
>
> > Anyway GvR just posted on the python-dev saying this:
> >
> > ==
> > No, I want to reserve the leading dot for attribute assignment to a
> > special object specified by a 'with' statement, e.g.
> >
> > with self:
> >     .foo = [1, 2, 3]
> >     .bar(4, .foo)
> > ==
> >
> > So another feature of this prothon (and a major one) is going to be a
> > python one
> > too.
>
> Not quite the same, as with Prothon it looks like it always relates to
> the self object, whereas in a `with' clause you can make it relates to
> any object you wish.
>
> -- 
>  __ Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
> /  \ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
> \__/ Drifting from woman-who-tries misconstrued / Shifting to
>     woman-wise -- Lamya





More information about the Python-list mailing list