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
2c748f0e
Commit
2c748f0e
authored
Apr 02, 2009
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test for ticket #4, from package cimport module, finish fixing ticket.
parent
7176077c
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
2 deletions
+10
-2
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+6
-2
tests/compile/a/__init__.py
tests/compile/a/__init__.py
+0
-0
tests/compile/a/b.pxd
tests/compile/a/b.pxd
+1
-0
tests/compile/cimport_package_module_T4.pyx
tests/compile/cimport_package_module_T4.pyx
+3
-0
No files found.
Cython/Compiler/Nodes.py
View file @
2c748f0e
...
@@ -4687,6 +4687,10 @@ class FromCImportStatNode(StatNode):
...
@@ -4687,6 +4687,10 @@ class FromCImportStatNode(StatNode):
elif
kind
==
'class'
:
elif
kind
==
'class'
:
entry
=
module_scope
.
declare_c_class
(
name
,
pos
=
pos
,
entry
=
module_scope
.
declare_c_class
(
name
,
pos
=
pos
,
module_name
=
self
.
module_name
)
module_name
=
self
.
module_name
)
else
:
submodule_scope
=
env
.
context
.
find_module
(
name
,
relative_to
=
module_scope
,
pos
=
self
.
pos
)
if
submodule_scope
.
parent_module
is
module_scope
:
env
.
declare_module
(
as_name
or
name
,
submodule_scope
,
self
.
pos
)
else
:
else
:
error
(
pos
,
"Name '%s' not declared in module '%s'"
error
(
pos
,
"Name '%s' not declared in module '%s'"
%
(
name
,
self
.
module_name
))
%
(
name
,
self
.
module_name
))
...
...
tests/compile/a/__init__.py
0 → 100644
View file @
2c748f0e
tests/compile/a/b.pxd
0 → 100644
View file @
2c748f0e
cdef
int
**
foo
(
void
*
)
tests/compile/cimport_package_module_T4.pyx
0 → 100644
View file @
2c748f0e
from
a
cimport
b
cdef
int
**
t
=
b
.
foo
(
NULL
)
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