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
21094547
Commit
21094547
authored
May 19, 2009
by
Dag Sverre Seljebotn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for T203 testcase failure (new intern string api)
parent
9a1e646a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+9
-7
No files found.
Cython/Compiler/Nodes.py
View file @
21094547
...
...
@@ -3912,21 +3912,23 @@ class ForFromStatNode(LoopNode, StatNode):
if
self
.
target
.
entry
.
is_pyglobal
:
# We know target is a NameNode, this is the only ugly case.
target_node
=
ExprNodes
.
PyTempNode
(
self
.
target
.
pos
,
None
)
target_node
.
result_code
=
code
.
funcstate
.
allocate_temp
(
py_object_type
,
False
)
target_node
.
allocate
(
code
)
interned_cname
=
code
.
intern_identifier
(
self
.
target
.
entry
.
name
)
code
.
putln
(
"/*here*/"
)
code
.
putln
(
"%s = __Pyx_GetName(%s, %s); %s"
%
(
target_node
.
result
_code
,
target_node
.
result
()
,
Naming
.
module_cname
,
self
.
target
.
entry
.
interned_cname
,
code
.
error_goto_if_null
(
target_node
.
result
_code
,
self
.
target
.
pos
)))
code
.
put_gotref
(
target_node
.
result
_code
)
interned_cname
,
code
.
error_goto_if_null
(
target_node
.
result
()
,
self
.
target
.
pos
)))
code
.
put_gotref
(
target_node
.
result
()
)
else
:
target_node
=
self
.
target
from_py_node
=
ExprNodes
.
CoerceFromPyTypeNode
(
self
.
loopvar_node
.
type
,
target_node
,
None
)
from_py_node
.
temp_code
=
loopvar_name
from_py_node
.
generate_result_code
(
code
)
if
self
.
target
.
entry
.
is_pyglobal
:
code
.
put_decref
_clear
(
target_node
.
result_code
,
py_object_
type
)
code
.
funcstate
.
release_temp
(
target_node
.
result_
code
)
code
.
put_decref
(
target_node
.
result
(),
target_node
.
type
)
target_node
.
release
(
code
)
code
.
putln
(
"}"
)
if
self
.
py_loopvar_node
:
# This is potentially wasteful, but we don't want the semantics to
...
...
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