Re: A couple of questions about pyrex
Greg Ewing <[email protected]> Wed, 13 May 2009 11:42:56 +1200
| Newsgroups | gmane.comp.python.pyrex |
|---|---|
| Message-ID | <[email protected]> |
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