Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
cython
Commits
530247a1
Commit
530247a1
authored
May 04, 2013
by
Nikita Nemkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cython utility cdef classes are internal by default. Fixes #775.
parent
19e88252
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
Cython/Compiler/ModuleNode.py
Cython/Compiler/ModuleNode.py
+1
-0
tests/run/memoryview_namespace_T775.pyx
tests/run/memoryview_namespace_T775.pyx
+13
-0
No files found.
Cython/Compiler/ModuleNode.py
View file @
530247a1
...
...
@@ -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
)
...
...
tests/run/memoryview_namespace_T775.pyx
0 → 100644
View file @
530247a1
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment