Commit 429e8ecf authored by Robert Bradshaw's avatar Robert Bradshaw

from..cimport module test

parent 40370f54
...@@ -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
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