Suggesting for overloading the assign operator

sismex01 at sismex01 at
Tue Jul 1 16:06:38 CEST 2003

> From: rimbalaya at [mailto:rimbalaya at] 
> Sent: Lunes, 30 de Junio de 2003 10:32 p.m.
> Hi,
> [..same rehash of overloading '=' a'la C++...]
> If the type of the variable was still undefined, ':=' would behave
> like '='. It might create confusion in future code, but does not break
> old code.
> I think it would be a nice feature to have. Comments?

It's *not* a nice feature to have.  If this kind of
functionality, strictly applicable to mutable types,
is needed, then a self.set(x) method, or a self.value = x
property, can be created.

An overloadable assignment _statement_ is not going
to happen.

> Thanks,
> - Rim

You're welcome.

Advertencia:La informacion contenida en este mensaje es confidencial y
restringida, por lo tanto esta destinada unicamente para el uso de la
persona arriba indicada, se le notifica que esta prohibida la difusion de
este mensaje. Si ha recibido este mensaje por error, o si hay problemas en
la transmision, favor de comunicarse con el remitente. Gracias.

More information about the Python-list mailing list