En Wed, 31 Oct 2007 19:26:17 -0300, Anand <[EMAIL PROTECTED]> escribió:
> On Oct 31, 9:57 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
> wrote:
>>
>> If you know at compile time which features you want, you can use
>> multiple
>> inheritance to define the new class.
>> If you only know the set of
On Oct 31, 9:57 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Wed, 31 Oct 2007 00:36:34 -0300, Anand <[EMAIL PROTECTED]> escribió:
>
> >> No, that is an argument for multiple-inheritance, mixin classes etc. You
> >> know when constructing the object what behaviour you want it to have. It
On Oct 31, 8:26 am, Anand <[EMAIL PROTECTED]> wrote:
> On Oct 28, 1:16 am, Pradeep Jindal <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Friday 26 Oct 2007 6:21:57 pm Anand wrote:
>
> > > On Oct 26, 5:31 pm, "Pradeep Jindal" <[EMAIL PROTECTED]> wrote:
> > > > Can you tell any specific use case for doing t
En Wed, 31 Oct 2007 00:36:34 -0300, Anand <[EMAIL PROTECTED]> escribió:
>> No, that is an argument for multiple-inheritance, mixin classes etc. You
>> know when constructing the object what behaviour you want it to have. It
>> isn't an argument for changing the behaviour of an existing object
>> d
> No, that is an argument for multiple-inheritance, mixin classes etc. You
> know when constructing the object what behaviour you want it to have. It
> isn't an argument for changing the behaviour of an existing object
> dynamically.
Partially true. I don't want to change the behavior of an exit
On Oct 28, 1:16 am, Pradeep Jindal <[EMAIL PROTECTED]> wrote:
> On Friday 26 Oct 2007 6:21:57 pm Anand wrote:
>
>
>
> > On Oct 26, 5:31 pm, "Pradeep Jindal" <[EMAIL PROTECTED]> wrote:
> > > Can you tell any specific use case for doing this?
>
> > I have many implementaions of a db interface.
>
> >
On Friday 26 Oct 2007 6:21:57 pm Anand wrote:
> On Oct 26, 5:31 pm, "Pradeep Jindal" <[EMAIL PROTECTED]> wrote:
> > Can you tell any specific use case for doing this?
>
> I have many implementaions of a db interface.
>
> SimpleDB - simple implementation
> BetterDB - optimized implementation
> Cache
Anand <[EMAIL PROTECTED]> wrote:
> On Oct 26, 5:31 pm, "Pradeep Jindal" <[EMAIL PROTECTED]> wrote:
>> Can you tell any specific use case for doing this?
>
> I have many implementaions of a db interface.
>
> SimpleDB - simple implementation
> BetterDB - optimized implementation
> CachedDB - an im
On Oct 26, 5:31 pm, "Pradeep Jindal" <[EMAIL PROTECTED]> wrote:
> Can you tell any specific use case for doing this?
I have many implementaions of a db interface.
SimpleDB - simple implementation
BetterDB - optimized implementation
CachedDB - an implementation with caching of queries
RestrictedDB
Can you tell any specific use case for doing this?
Regards,
Pradeep
On 10/26/07, Anand <[EMAIL PROTECTED]> wrote:
> I am trying to implement some kind of object inheritance. Just like
> one class can extend from another, I want to do the same on objects
> dynamically.
>
>
I am trying to implement some kind of object inheritance. Just like
one class can extend from another, I want to do the same on objects
dynamically.
I just thought that I can share my excitement here.
Suppose there are classes A and B and their instances a and b.
class A:
def foo(self
George Sakkis wrote:
> "Ron Adam" <[EMAIL PROTECTED]> wrote:
>
>
>>I'm trying to implement simple svg style colored complex objects in
>>tkinter and want to be able to inherit default values from other
>>previously defined objects.
>>
>>I want to something roughly similar to ...
>>
>>class sh
George Sakkis wrote:
> "Ron Adam" <[EMAIL PROTECTED]> wrote:
>
> > I'm trying to implement simple svg style colored complex objects in
> > tkinter and want to be able to inherit default values from other
> > previously defined objects.
> >
> > I want to something roughly similar to ...
> >
> >
"Ron Adam" <[EMAIL PROTECTED]> wrote:
> I'm trying to implement simple svg style colored complex objects in
> tkinter and want to be able to inherit default values from other
> previously defined objects.
>
> I want to something roughly similar to ...
>
> class shape(object):
> def __
I'm trying to implement simple svg style colored complex objects in
tkinter and want to be able to inherit default values from other
previously defined objects.
I want to something roughly similar to ...
class shape(object):
def __init__(self, **kwds):
# set a bunch
15 matches
Mail list logo