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
ef7778b6
Commit
ef7778b6
authored
Jan 09, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backed out changeset 4a6021b8a18c
there is a better way to do that
parent
56b5cbd3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
Cython/Compiler/ModuleNode.py
Cython/Compiler/ModuleNode.py
+0
-4
No files found.
Cython/Compiler/ModuleNode.py
View file @
ef7778b6
...
...
@@ -723,11 +723,9 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
if
py_attrs
:
self
.
generate_self_cast
(
scope
,
code
)
if
base_type
:
code
.
putln
(
"if (PyType_IS_GC(%s)) {"
%
base_type
.
typeptr_cname
)
code
.
putln
(
"e = %s->tp_traverse(o, v, a); if (e) return e;"
%
base_type
.
typeptr_cname
)
code
.
putln
(
"}"
)
for
entry
in
py_attrs
:
var_code
=
"p->%s"
%
entry
.
cname
code
.
putln
(
...
...
@@ -758,11 +756,9 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
if
py_attrs
:
self
.
generate_self_cast
(
scope
,
code
)
if
base_type
:
code
.
putln
(
"if (PyType_IS_GC(%s)) {"
%
base_type
.
typeptr_cname
)
code
.
putln
(
"%s->tp_clear(o);"
%
base_type
.
typeptr_cname
)
code
.
putln
(
"}"
)
for
entry
in
py_attrs
:
name
=
"p->%s"
%
entry
.
cname
code
.
put_xdecref
(
name
,
entry
.
type
)
...
...
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