Re: [Tutor] Creating an object which is an extension of a dictionary

2016-03-26 Thread Alan Gauld
On 26/03/16 11:35, Ian Winstanley wrote: > I'm attempting to create an object which can have elements which can be > referenced like a dictionary but can also have normal methods and > attributes like a conventional object but can also be referenced with key > items using d[key] I think you are lo

[Tutor] Creating an object which is an extension of a dictionary

2016-03-26 Thread Ian Winstanley
I'm attempting to create an object which can have elements which can be referenced like a dictionary but can also have normal methods and attributes like a conventional object but can also be referenced with key items using d[key] The dictionary I have is below: UPPERCASE = "ucase" LOWERCASE = "l