[Pyrex] class or extention type

Phil Frost indigo at bitglue.com
Fri Oct 8 16:57:41 CEST 2004


A class is just a normal Python class. It can not contain methods
implemented in C. An extension type is like a class, but can contain C
methods.

On Thu, Oct 07, 2004 at 11:48:06PM -0700, Bryan Weingarten wrote:
> i thought i asked this question before,  but i can't seem to find it 
> with google, so i'll ask again...  with pyrex, what is the difference 
> between creating a class "class Foo" and an extension type "cdef class 
> Foo"?   how do i know which one i should create?   is there a simple 
> criteria to know which is the right one?  is there an 
> advantage/disadvantage?
> 
> thanks,
> 
> bryan




More information about the Pyrex mailing list