[Pyrex] [Cython-dev] cdef private class ... ?
Stefan Behnel
stefan_ml at behnel.de
Wed Jan 30 08:38:55 CET 2008
Hi,
Greg Ewing wrote:
> Stefan Behnel wrote:
>> I would really like to have something like this.
>
> The main thing that worries me is the cimport issue --
> if you remove the module dict entry, then other Pyrex
> modules (and any other C-implemented modules, for that
> matter) are prevented from accessing the type as well.
> This applies regardless of whether it's done by a keyword
> or by del.
Not quite, if you use a keyword (or modifer), you could check at compile time
that the type does not appear in the associated .pxd, i.e. that it cannot be
cimported.
Stefan
More information about the Pyrex
mailing list