On 1 February 2012 00:54, Emmanuel Mayssat wrote:
> I have the following program.
> I am trying to have index the attributes of an object using __getitem__.
> Reading them this way works great, but assigning them a value doesn't
> Is there a way to do such a thing?
> (Almost like a named tuple, bu
On Tue, Jan 31, 2012 at 5:54 PM, Emmanuel Mayssat wrote:
> I have the following program.
> I am trying to have index the attributes of an object using __getitem__.
> Reading them this way works great, but assigning them a value doesn't
> Is there a way to do such a thing?
For assignment, use __se