[Pyrex] cdef private class ... ?

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Jan 29 02:33:07 CET 2008


Stefan Behnel wrote:

> I was thinking about module namespace pollution a bit more. What about adding
> a class modifier "private" that keeps a class from appearing in the module
> dictionary?

Using 'private' for that would be a bit confusing, since
it wouldn't mean the same thing as 'not public'. In Pyrex,
'public' is currently used to mean 'exported in a .h file'.

Also keep in mind that cimporting a type into another
Pyrex module currently requires it to be in the module dict.
So a 'private' type in this sense would not only be
hidden from Python but from other Pyrex modules as well.

--
Greg



More information about the Pyrex mailing list