Instantiating classes which are derived from built-in types.

2005-11-28 Thread Achim Dahlhoff
Hi. I'm trying to find out the diffrence between normal classes and classes derived from built-in types. (Which is causing me trouble trying to instantiate a class using C API calls) class A: ... pass ... class B(dict): ... pass ... type(A) type 'classobj' type(B) type 'type' When I

Re: Instantiating classes which are derived from built-in types.

2005-11-28 Thread Alex Martelli
Achim Dahlhoff [EMAIL PROTECTED] wrote: Hi. I'm trying to find out the diffrence between normal classes and classes derived from built-in types. (Which is causing me trouble trying to instantiate a class using C API calls) class A: ... pass ... class B(dict): ... pass ...

Re: Instantiating classes which are derived from built-in types.

2005-11-28 Thread Paul Rubin
[EMAIL PROTECTED] (Alex Martelli) writes: A is oldstyle -- a wart existing for backwards compatibility. I think it's time for from __future__ import newclasses since I hate having to type class A(object): instead of class A: all over the place. --

Re: Instantiating classes which are derived from built-in types.

2005-11-28 Thread Alex Martelli
Paul Rubin http://[EMAIL PROTECTED] wrote: [EMAIL PROTECTED] (Alex Martelli) writes: A is oldstyle -- a wart existing for backwards compatibility. I think it's time for from __future__ import newclasses since I hate having to type class A(object): instead of class A: all over the place.