Re: A couple of questions about pyrex
"Stefan Behnel" <[email protected]> Tue, 12 May 2009 15:18:59 +0200 (CEST)
| Newsgroups | gmane.comp.python.pyrex |
|---|---|
| Message-ID | <2e7ed37e23e5fb53269da8c2b3d9f277.squirrel@groupware.dvs.informatik.tu-darmstadt.de> |
Yingjie Lan wrote: > If 'cdef' define a function hidden from python, > why 'cdef class' define a class for python? > I would expect 'cdef class' define an invisible > class (for internal use of the module) in a > pythonic way (making things easier). This is a major FAQ in Pyrex. Yes, this is inconsistent, but it's the way it is and it will not change. It also makes it hard to find a syntax to define 'private' (module-internal) classes, although there will hopefully be such a syntax one day (this has also been discussed many, many times). Stefan