[Cython] About subclassing the module type
Robert Bradshaw
robertwb at math.washington.edu
Mon Oct 6 22:53:12 CEST 2008
On Oct 6, 2008, at 12:20 PM, Dag Sverre Seljebotn wrote:
> (I've mentioned this idea before but it now has more actuality.)
>
> I just read ticket 95. When it comes to subclassing the module type
> (if
> this is possible and easy and doesn't cost too much performance etc
> etc)
I looked into this a touch, and think it'd be fairly easy and very
little (if any) performance overhead. The only question is if there
are thing that access/manipulate the module's __dict__ directly,
which is of course discouraged.
> then this has another advantage: We could make early-bound symbols
> read-only.
I've been thinking *exactly* the same thing.
- Robert
More information about the Cython-dev
mailing list