cannot create my own dict
Steven D'Aprano
steve at REMOVE-THIS-cybersource.com.au
Wed Sep 19 20:30:52 EDT 2007
On Wed, 19 Sep 2007 21:43:59 +0200, Bruno Desthuilliers wrote:
>> So if copying all methods of a native dictionary is not enough, what
>> should I do to make my class work as a dictionary WITHOUT deriving from
>> dict (which will obviously work).
>>
>>
> Sorry, I missed this last requirement. BTW, why don't you want to
> subclass dict ?
Possibly because it is a learning exercise?
--
Steven.
More information about the Python-list
mailing list