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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
429e8ecf
Commit
429e8ecf
authored
May 30, 2017
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
from..cimport module test
parent
40370f54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
tests/run/cimport.srctree
tests/run/cimport.srctree
+10
-0
No files found.
tests/run/cimport.srctree
View file @
429e8ecf
...
@@ -26,6 +26,13 @@ cdef class A:
...
@@ -26,6 +26,13 @@ cdef class A:
cdef int foo(int a):
cdef int foo(int a):
return a**2
return a**2
######## pkg/__init__.py ########
######## pkg/sub.pxd ########
ctypedef int my_int
######## a.pyx ########
######## a.pyx ########
from other cimport A, foo
from other cimport A, foo
...
@@ -33,3 +40,6 @@ print A, foo(10)
...
@@ -33,3 +40,6 @@ print A, foo(10)
cimport other
cimport other
print other.A, other.foo(10)
print other.A, other.foo(10)
from pkg cimport sub
cdef sub.my_int a = 100
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