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
eec9f0ff
Commit
eec9f0ff
authored
Nov 11, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trial fix for bizarre build bug
parent
bf6f3c10
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Cython/Compiler/Visitor.pxd
Cython/Compiler/Visitor.pxd
+1
-1
Cython/Compiler/Visitor.py
Cython/Compiler/Visitor.py
+2
-2
No files found.
Cython/Compiler/Visitor.pxd
View file @
eec9f0ff
...
@@ -4,7 +4,7 @@ cdef class BasicVisitor:
...
@@ -4,7 +4,7 @@ cdef class BasicVisitor:
cdef
dict
dispatch_table
cdef
dict
dispatch_table
cpdef
visit
(
self
,
obj
)
cpdef
visit
(
self
,
obj
)
cdef
_visit
(
self
,
obj
)
cdef
_visit
(
self
,
obj
)
cdef
_
find_handler
(
self
,
obj
)
cdef
find_handler
(
self
,
obj
)
cdef
class
TreeVisitor
(
BasicVisitor
):
cdef
class
TreeVisitor
(
BasicVisitor
):
cdef
public
list
access_path
cdef
public
list
access_path
...
...
Cython/Compiler/Visitor.py
View file @
eec9f0ff
...
@@ -26,11 +26,11 @@ class BasicVisitor(object):
...
@@ -26,11 +26,11 @@ class BasicVisitor(object):
try
:
try
:
handler_method
=
self
.
dispatch_table
[
type
(
obj
)]
handler_method
=
self
.
dispatch_table
[
type
(
obj
)]
except
KeyError
:
except
KeyError
:
handler_method
=
self
.
_
find_handler
(
obj
)
handler_method
=
self
.
find_handler
(
obj
)
self
.
dispatch_table
[
type
(
obj
)]
=
handler_method
self
.
dispatch_table
[
type
(
obj
)]
=
handler_method
return
handler_method
(
obj
)
return
handler_method
(
obj
)
def
_
find_handler
(
self
,
obj
):
def
find_handler
(
self
,
obj
):
cls
=
type
(
obj
)
cls
=
type
(
obj
)
#print "Cache miss for class %s in visitor %s" % (
#print "Cache miss for class %s in visitor %s" % (
# cls.__name__, type(self).__name__)
# cls.__name__, type(self).__name__)
...
...
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