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
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
...
[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.
--
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.