Is this an ok thing to do in a class
Vincent Davis
vincent at vincentdavis.net
Tue May 18 16:49:30 EDT 2010
On Tue, May 18, 2010 at 2:41 PM, Ethan Furman <ethan at stoneleaf.us> wrote:
>
> Do you expect afoo.letter[x] to always be afoo.x? Because they aren't:
>
> >>> afoo.A = 9
> >>> afoo.letter['a']
> 1
>
What you are pointing out is that the assignment is not reversed . But that
does make me thing of something I had not.
>>> afoo.letter['a'] = 345
>>> afoo.A
1
Thats kinda a bummer, whats a good way to make sure affo.A gets updated?
Vincent
>
> ~Ethan~
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
*Vincent Davis
720-301-3003 *
vincent at vincentdavis.net
my blog <http://vincentdavis.net> |
LinkedIn<http://www.linkedin.com/in/vincentdavis>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100518/42226287/attachment-0001.html>
More information about the Python-list
mailing list