cython/cython — pull request #222 by nnemkin (2013-05-04 17:52:43+00:00)
Title: Hide Cython utility classes (like memoryview) from Python level module scope.

Two changes included:

1) cdef classes in utility code can have compiler directives attached to them. This is not used anywhere ATM, but memoryviews may benefit from ``@cython.final``.

2) All utility classes are excluded from module dictionary by *implicitly* marking them with ``@cython.internal`` . This fixes [#775](http://trac.cython.org/cython_trac/ticket/775), test is included.

I don't quite understand what CythonScope is and how utility classes are *supposed* to be hidden, but as it is now, utility code scope is merged into main module scope and there is nothing special about its classes.

BTW if a user declares his own class with the same name as utility class (for example, ``memoryview``), everything breaks down.