overriding '=' operator?

John Roth newsgroups at jhrothjr.com
Thu Oct 30 17:22:15 EST 2003


<user at domain.invalid> wrote in message
news:5ef57a632c39376e860dfdd2511451ae at news.teranews.com...
> Hi,
>
> Is it possible to override assignment, the
> way that '+' can be overridden for example?

No, because "=" isn't an operator, it's a statement.

John Roth
>
> Thanks,
>
> Toby
>






More information about the Python-list mailing list