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
4ff586a3
Commit
4ff586a3
authored
Nov 28, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed caching for subexpr attributes as it can break tree manipulation
parent
678b2296
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+9
-11
No files found.
Cython/Compiler/ExprNodes.py
View file @
4ff586a3
...
...
@@ -196,17 +196,15 @@ class ExprNode(Node):
def
subexpr_nodes
(
self
):
# Extract a list of subexpression nodes based
# on the contents of the subexprs class attribute.
if
self
.
saved_subexpr_nodes
is
None
:
nodes
=
[]
for
name
in
self
.
subexprs
:
item
=
getattr
(
self
,
name
)
if
item
:
if
isinstance
(
item
,
ExprNode
):
nodes
.
append
(
item
)
else
:
nodes
.
extend
(
item
)
self
.
saved_subexpr_nodes
=
nodes
return
self
.
saved_subexpr_nodes
nodes
=
[]
for
name
in
self
.
subexprs
:
item
=
getattr
(
self
,
name
)
if
item
:
if
isinstance
(
item
,
ExprNode
):
nodes
.
append
(
item
)
else
:
nodes
.
extend
(
item
)
return
nodes
def
result
(
self
):
if
not
self
.
is_temp
or
self
.
is_target
:
...
...
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