Re: different types of inheritence...

2015-05-27 Thread zipher
On Tuesday, May 26, 2015 at 3:53:25 PM UTC-5, Michael Torrie wrote: On 05/26/2015 08:57 AM, zipher wrote: Comprende? I'm not trying to be cryptic here. This is a bit of OOP theory to be discussed. No, sorry. Maybe an actual example (with use case) would spur discussion. In the first

Re: different types of inheritence...

2015-05-26 Thread zipher
Apart from object composition or mix-in style, I want to illustrate something regarding the arrow of inheritance. class super_dict(dict): def __init__(self, init={}, default_value=0, collision_function=None): *expands what dict can do* def get_default(self): #stupid

Re: different types of inheritence...

2015-05-26 Thread Michael Torrie
On 05/26/2015 08:57 AM, zipher wrote: Comprende? I'm not trying to be cryptic here. This is a bit of OOP theory to be discussed. No, sorry. Maybe an actual example (with use case) would spur discussion. -- https://mail.python.org/mailman/listinfo/python-list

Re: different types of inheritence...

2015-05-26 Thread Ian Kelly
On Tue, May 26, 2015 at 2:52 PM, Michael Torrie torr...@gmail.com wrote: On 05/26/2015 08:57 AM, zipher wrote: Comprende? I'm not trying to be cryptic here. This is a bit of OOP theory to be discussed. No, sorry. Maybe an actual example (with use case) would spur discussion. Better yet,

different types of inheritence...

2015-05-21 Thread zipher
Still considering distinguishing between different types of inheritance. Apart from object composition or mix-in style, I want to illustrate something regarding the arrow of inheritance. class super_dict(dict): def __init__(self, init={}, default_value=0, collision_function=None):