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
56e8878a
Commit
56e8878a
authored
Jan 17, 2008
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
dfbb24da
4dbdde33
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
180 additions
and
111 deletions
+180
-111
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+2
-2
Cython/Compiler/ModuleNode.py
Cython/Compiler/ModuleNode.py
+1
-1
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+177
-108
No files found.
Cython/Compiler/ExprNodes.py
View file @
56e8878a
...
@@ -2062,12 +2062,12 @@ class SequenceNode(ExprNode):
...
@@ -2062,12 +2062,12 @@ class SequenceNode(ExprNode):
rhs
.
py_result
(),
rhs
.
py_result
(),
rhs
.
py_result
(),
rhs
.
py_result
(),
len
(
self
.
args
)))
len
(
self
.
args
)))
code
.
putln
(
"PyObject* tuple = %s;"
%
rhs
.
py_result
())
for
i
in
range
(
len
(
self
.
args
)):
for
i
in
range
(
len
(
self
.
args
)):
item
=
self
.
unpacked_items
[
i
]
item
=
self
.
unpacked_items
[
i
]
code
.
putln
(
code
.
putln
(
"%s = PyTuple_GET_ITEM(
%s
, %s);"
%
(
"%s = PyTuple_GET_ITEM(
tuple
, %s);"
%
(
item
.
result_code
,
item
.
result_code
,
rhs
.
py_result
(),
i
))
i
))
code
.
put_incref
(
item
.
result_code
,
item
.
ctype
())
code
.
put_incref
(
item
.
result_code
,
item
.
ctype
())
value_node
=
self
.
coerced_unpacked_items
[
i
]
value_node
=
self
.
coerced_unpacked_items
[
i
]
...
...
Cython/Compiler/ModuleNode.py
View file @
56e8878a
...
@@ -797,7 +797,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
...
@@ -797,7 +797,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
code
.
putln
(
"}"
)
code
.
putln
(
"}"
)
for
entry
in
py_attrs
:
for
entry
in
py_attrs
:
name
=
"p->%s"
%
entry
.
cname
name
=
"p->%s"
%
entry
.
cname
code
.
putln
(
"tmp =
%s;"
%
code
.
as_pyobject
(
name
,
entry
.
type
)
)
code
.
putln
(
"tmp =
((PyObject*)%s);"
%
name
)
code
.
put_init_to_py_none
(
name
,
entry
.
type
)
code
.
put_init_to_py_none
(
name
,
entry
.
type
)
code
.
putln
(
"Py_XDECREF(tmp);"
)
code
.
putln
(
"Py_XDECREF(tmp);"
)
code
.
putln
(
code
.
putln
(
...
...
Cython/Compiler/Nodes.py
View file @
56e8878a
This diff is collapsed.
Click to expand it.
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