Making statements (was Re: does python have useless destructors?)
Slawomir Nowaczyk
slawek at cs.lth.se
Wed Jun 16 06:12:45 EDT 2004
On 15 Jun 2004 11:38:48 -0400
aahz at pythoncraft.com (Aahz) wrote:
#> In article <e251b7ba.0406150326.20ab48cc at posting.google.com>,
#> David Turner <dkturner at telkomsa.net> wrote:
#>> Hmm... I wonder if it would be possible to override the "="
#>> operator...?
#> This comment indicates that you don't understand how Python works. In
#> Python, ``=`` is a *statement*, not an operator.
Well, technically, "a=1" is a statement (Reference manual, 6.3
Assignment statements). The symbol "=" itself is a 'grammar
delimiter' (Reference manual, 2.6 Delimiters), which is neither
operator nor statement.
Nevertheless, there is no way to override "=".
--
Best wishes,
Slawomir Nowaczyk
( Slawomir.Nowaczyk at cs.lth.se )
Zawinski's Law: "Every program attempts to expand until it can read mail.
Those programs which cannot so expand are replaced by ones which can."
More information about the Python-list
mailing list