Re: ctypes inheritance issue

2011-02-24 Thread Carl Banks
On Feb 23, 9:38 am, Steve wrote: > After looking at some metaclass examples it appears this information > is readily available. A metaclass gets a dictionary containing > information about the parent class (or should, at least). What examples did you look at? > It seems > like it must have thi

Re: ctypes inheritance issue

2011-02-23 Thread Steve
On Feb 23, 12:38 am, Carl Banks wrote: > Steve wrote: > > I've filed a bug in python but I wanted to see if other ctypes users/ > > experts viewed this issue as a bug. > > Consider the following: > > python code: > > import ctypes > > class my_array( ctypes.Array ): > >     _type_    = ctypes.c_ui

Re: ctypes inheritance issue

2011-02-22 Thread Carl Banks
Steve wrote: > I've filed a bug in python but I wanted to see if other ctypes users/ > experts viewed this issue as a bug. > Consider the following: > python code: > import ctypes > class my_array( ctypes.Array ): > _type_= ctypes.c_uint8 > _length_ = 256 > > class my_array2( my_array

ctypes inheritance issue

2011-02-22 Thread Steve
I've filed a bug in python but I wanted to see if other ctypes users/ experts viewed this issue as a bug. Consider the following: python code: import ctypes class my_array( ctypes.Array ): _type_= ctypes.c_uint8 _length_ = 256 class my_array2( my_array ): pass Output: class my_ar

Re: Inheritance issue...

2008-03-03 Thread Carl Banks
On Mar 3, 3:14 pm, MooMaster <[EMAIL PROTECTED]> wrote: > On Mar 3, 11:49 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > > > > > MooMaster schrieb: > > > > I'm trying to use inheritance to create a simple binary tree, but it's > > > not going so well... here's what I pull from the documentatio

Re: Inheritance issue...

2008-03-03 Thread MooMaster
On Mar 3, 11:49 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > MooMaster schrieb: > > > I'm trying to use inheritance to create a simple binary tree, but it's > > not going so well... here's what I pull from the documentation for > > super() > > "super( type[, object-or-type]) > > > Return the

Re: Inheritance issue...

2008-03-03 Thread Diez B. Roggisch
MooMaster schrieb: > I'm trying to use inheritance to create a simple binary tree, but it's > not going so well... here's what I pull from the documentation for > super() > "super( type[, object-or-type]) > > Return the superclass of type. If the second argument is omitted the > super object retur

Re: Inheritance issue...

2008-03-03 Thread Matimus
On Mar 3, 9:37 am, MooMaster <[EMAIL PROTECTED]> wrote: > I'm trying to use inheritance to create a simple binary tree, but it's > not going so well... here's what I pull from the documentation for > super() > "super( type[, object-or-type]) > > Return the superclass of type. If the second argument

Inheritance issue...

2008-03-03 Thread MooMaster
I'm trying to use inheritance to create a simple binary tree, but it's not going so well... here's what I pull from the documentation for super() "super( type[, object-or-type]) Return the superclass of type. If the second argument is omitted the super object returned is unbound. If the second arg