Suggesting for overloading the assign operator
Rim
rimbalaya at yahoo.com
Tue Jul 1 13:10:26 EDT 2003
mis6 at pitt.edu (Michele Simionato) wrote in message news:<2259b0e2.0307010328.1e1b4a04 at posting.google.com>...
> rimbalaya at yahoo.com (Rim) wrote in message news:<6f03c4a5.0306301931.3f15fbb7 at posting.google.com>...
> > Hi,
> >
> > I have been thinking about how to overload the assign operation '='.
>
> Notice that you can always override __setattr__ ...
Thanks. I have noticed that already, but it does not give me what I
want. What do you think about providing a statement to assign values
without assigning type?
'=' statement assigns value and type
':=' statement assigns value ony
Rim
More information about the Python-list
mailing list