Commit 530247a1 authored by Nikita Nemkin's avatar Nikita Nemkin

Cython utility cdef classes are internal by default. Fixes #775.

parent 19e88252
......@@ -82,6 +82,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
# Ensure that we don't generate import code for these entries!
for entry in scope.c_class_entries:
entry.type.module_name = self.full_module_name
entry.type.scope.directives["internal"] = True
self.scope.merge_in(scope)
......
cdef int data[10]
cdef int[:] myslice = data
def test_memoryview_namespace():
"""
>>> test_memoryview_namespace()
"""
namespace = dir(__import__(__name__))
assert 'array' not in namespace, namespace
assert 'memoryview' not in namespace, namespace
assert '_memoryviewslice' not in namespace, namespace
assert 'Enum' not in namespace, namespace
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment