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
Gwenaël Samain
cython
Commits
34249751
Commit
34249751
authored
Nov 27, 2012
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bugs'
parents
6a526088
0f9fb5fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
16 deletions
+11
-16
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+1
-1
Cython/Compiler/Visitor.py
Cython/Compiler/Visitor.py
+10
-15
No files found.
Cython/Compiler/Nodes.py
View file @
34249751
...
@@ -848,7 +848,7 @@ class CSimpleBaseTypeNode(CBaseTypeNode):
...
@@ -848,7 +848,7 @@ class CSimpleBaseTypeNode(CBaseTypeNode):
scope
=
env
scope
=
env
for
item
in
self
.
module_path
:
for
item
in
self
.
module_path
:
entry
=
scope
.
lookup
(
item
)
entry
=
scope
.
lookup
(
item
)
if
entry
.
is_cpp_class
:
if
entry
is
not
None
and
entry
.
is_cpp_class
:
scope
=
entry
.
type
.
scope
scope
=
entry
.
type
.
scope
else
:
else
:
scope
=
None
scope
=
None
...
...
Cython/Compiler/Visitor.py
View file @
34249751
...
@@ -159,23 +159,13 @@ class TreeVisitor(object):
...
@@ -159,23 +159,13 @@ class TreeVisitor(object):
@
cython
.
final
@
cython
.
final
def
_visit
(
self
,
obj
):
def
_visit
(
self
,
obj
):
try
:
handler_method
=
self
.
dispatch_table
[
type
(
obj
)]
except
KeyError
:
handler_method
=
self
.
find_handler
(
obj
)
self
.
dispatch_table
[
type
(
obj
)]
=
handler_method
return
handler_method
(
obj
)
@
cython
.
final
def
_visitchild
(
self
,
child
,
parent
,
attrname
,
idx
):
self
.
access_path
.
append
((
parent
,
attrname
,
idx
))
try
:
try
:
try
:
try
:
handler_method
=
self
.
dispatch_table
[
type
(
child
)]
handler_method
=
self
.
dispatch_table
[
type
(
obj
)]
except
KeyError
:
except
KeyError
:
handler_method
=
self
.
find_handler
(
child
)
handler_method
=
self
.
find_handler
(
obj
)
self
.
dispatch_table
[
type
(
child
)]
=
handler_method
self
.
dispatch_table
[
type
(
obj
)]
=
handler_method
re
sult
=
handler_method
(
child
)
re
turn
handler_method
(
obj
)
except
Errors
.
CompileError
:
except
Errors
.
CompileError
:
raise
raise
except
Errors
.
AbortError
:
except
Errors
.
AbortError
:
...
@@ -183,7 +173,12 @@ class TreeVisitor(object):
...
@@ -183,7 +173,12 @@ class TreeVisitor(object):
except
Exception
,
e
:
except
Exception
,
e
:
if
DebugFlags
.
debug_no_exception_intercept
:
if
DebugFlags
.
debug_no_exception_intercept
:
raise
raise
self
.
_raise_compiler_error
(
child
,
e
)
self
.
_raise_compiler_error
(
obj
,
e
)
@
cython
.
final
def
_visitchild
(
self
,
child
,
parent
,
attrname
,
idx
):
self
.
access_path
.
append
((
parent
,
attrname
,
idx
))
result
=
self
.
_visit
(
child
)
self
.
access_path
.
pop
()
self
.
access_path
.
pop
()
return
result
return
result
...
...
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