Henry Gomersall | 10 Jul 2012 15:45
Favicon
Gravatar

inheriting from object

What is the consequence of a cdefd class inheriting from object? Are the
cython classes new-style?

Cheers,

Henry

Stefan Behnel | 10 Jul 2012 16:22
Picon
Favicon

Re: inheriting from object

Henry Gomersall, 10.07.2012 15:45:
> What is the consequence of a cdefd class inheriting from object?

None. Pure convenience syntax for the pure Python mode

> Are the cython classes new-style?

They are "built-in classes" or "extension types". "new-style" and "classic"
refer to plain Python classes.

Stefan

Henry Gomersall | 10 Jul 2012 16:28
Favicon
Gravatar

Re: inheriting from object

On Tue, 2012-07-10 at 16:22 +0200, Stefan Behnel wrote:
> 
> > Are the cython classes new-style?
> 
> They are "built-in classes" or "extension types". "new-style" and
> "classic"
> refer to plain Python classes. 

Does that mean one can use them like any other built in? (subclassing
and suchlike)

Cheers,

Henry


Gmane