[Pyrex] A couple of questions about pyrex
    Greg Ewing 
    greg.ewing at canterbury.ac.nz
       
    Wed May 13 01:42:56 CEST 2009
    
    
  
Yingjie Lan wrote:
> I see. But would not pyrex be able to tell which is which even
> if the same simple syntax is used?
Not always. There are many differences between Python
classes and extension types that are not reflected in
the syntax. Special methods work differently, for
example, and extension types do not have a __dict__
by default, whereas Python classes do.
Also, it's much easier for the parser if it knows
up front what kind of class it's dealing with, and
also for the human reader.
-- 
Greg
    
    
More information about the Pyrex
mailing list