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
Kirill Smelkov
cython
Commits
2096862e
Commit
2096862e
authored
May 23, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
47fee73f
9b11884b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
3 deletions
+5
-3
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+1
-1
Cython/Compiler/Symtab.py
Cython/Compiler/Symtab.py
+2
-2
tests/compile/dotted_cimport.pyx
tests/compile/dotted_cimport.pyx
+2
-0
tests/compile/dotted_cimport_submodule/a.pxd
tests/compile/dotted_cimport_submodule/a.pxd
+0
-0
No files found.
Cython/Compiler/Nodes.py
View file @
2096862e
...
@@ -3610,7 +3610,7 @@ class CImportStatNode(StatNode):
...
@@ -3610,7 +3610,7 @@ class CImportStatNode(StatNode):
return
return
module_scope
=
env
.
find_module
(
self
.
module_name
,
self
.
pos
)
module_scope
=
env
.
find_module
(
self
.
module_name
,
self
.
pos
)
if
"."
in
self
.
module_name
:
if
"."
in
self
.
module_name
:
names
=
self
.
module_name
.
split
(
"."
)
names
=
[
EncodedString
(
name
)
for
name
in
self
.
module_name
.
split
(
"."
)]
top_name
=
names
[
0
]
top_name
=
names
[
0
]
top_module_scope
=
env
.
context
.
find_submodule
(
top_name
)
top_module_scope
=
env
.
context
.
find_submodule
(
top_name
)
module_scope
=
top_module_scope
module_scope
=
top_module_scope
...
...
Cython/Compiler/Symtab.py
View file @
2096862e
...
@@ -1263,7 +1263,7 @@ class CClassScope(ClassScope):
...
@@ -1263,7 +1263,7 @@ class CClassScope(ClassScope):
if
name
==
"__new__"
:
if
name
==
"__new__"
:
warning
(
pos
,
"__new__ method of extension type will change semantics "
warning
(
pos
,
"__new__ method of extension type will change semantics "
"in a future version of Pyrex and Cython. Use __cinit__ instead."
)
"in a future version of Pyrex and Cython. Use __cinit__ instead."
)
name
=
"__cinit__"
name
=
Utils
.
EncodedString
(
"__cinit__"
)
entry
=
self
.
declare_var
(
name
,
py_object_type
,
pos
)
entry
=
self
.
declare_var
(
name
,
py_object_type
,
pos
)
special_sig
=
get_special_method_signature
(
name
)
special_sig
=
get_special_method_signature
(
name
)
if
special_sig
:
if
special_sig
:
...
@@ -1280,7 +1280,7 @@ class CClassScope(ClassScope):
...
@@ -1280,7 +1280,7 @@ class CClassScope(ClassScope):
def
lookup_here
(
self
,
name
):
def
lookup_here
(
self
,
name
):
if
name
==
"__new__"
:
if
name
==
"__new__"
:
name
=
"__cinit__"
name
=
Utils
.
EncodedString
(
"__cinit__"
)
return
ClassScope
.
lookup_here
(
self
,
name
)
return
ClassScope
.
lookup_here
(
self
,
name
)
def
declare_cfunction
(
self
,
name
,
type
,
pos
,
def
declare_cfunction
(
self
,
name
,
type
,
pos
,
...
...
tests/compile/dotted_cimport.pyx
0 → 100644
View file @
2096862e
cimport
dotted_cimport_submodule.a
import
dotted_cimport_submodule.b
tests/compile/dotted_cimport_submodule/a.pxd
0 → 100644
View file @
2096862e
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