> Do I understand correctly that you want to use the object essentially like > a dictionary, just with obj.key instead of obj["key"]? > I consider this bad practice, since it isn't obvious to readers of your > code.
Yes, you make a good point here, and it has made me question the use cases that I was considering. That said, this type of usage can provide some elegant solutions to otherwise cumbersome ones, and I admit, I can sometimes be a very lazy programmer. This raises the question of how, if object identity is not preserved, one can explicitly associate data with objects in order to look up said data later. Do I have to expose an ID manually on each class I wrap? Earl _______________________________________________ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig