A 'Python like' language

Mel Wilson mwilson at the-wire.com
Fri Mar 26 21:54:02 EST 2004


In article <4064C129.1B8C937C at alcyone.com>,
Erik Max Francis <max at alcyone.com> wrote:
>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.

   Prothon seems to have a `with' clause, which overrides
the default thus:

    .name           # refers to the name attribute of the self object
...
    with other:
        .name       # refers to other.name


though I won't know for sure until I've found a copy of
MSVCR70.DLL


        Regards.        Mel.


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 100,000 Newsgroups - 19 Different Servers! =-----



More information about the Python-list mailing list