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
c176a809
Commit
c176a809
authored
Jan 30, 2010
by
daniloaf@daniloaf-PC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug on subclass instanciation and using 'del' on templates compile test
parent
b3f27fe5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+2
-1
tests/compile/cpp_templates.pyx
tests/compile/cpp_templates.pyx
+2
-0
No files found.
Cython/Compiler/PyrexTypes.py
View file @
c176a809
#
#
# Pyrex - Types
# Pyrex - Types
#
#
...
@@ -1879,7 +1880,7 @@ class CppClassType(CType):
...
@@ -1879,7 +1880,7 @@ class CppClassType(CType):
if
other_type
.
is_cpp_class
:
if
other_type
.
is_cpp_class
:
if
self
==
other_type
:
if
self
==
other_type
:
return
1
return
1
elif
self
.
template_type
==
other_type
.
template_type
:
elif
self
.
template_type
and
self
.
template_type
==
other_type
.
template_type
:
if
self
.
templates
==
other_type
.
templates
:
if
self
.
templates
==
other_type
.
templates
:
return
1
return
1
for
t1
,
t2
in
zip
(
self
.
templates
,
other_type
.
templates
):
for
t1
,
t2
in
zip
(
self
.
templates
,
other_type
.
templates
):
...
...
tests/compile/cpp_templates.pyx
View file @
c176a809
...
@@ -26,3 +26,5 @@ c = e.getValue2()
...
@@ -26,3 +26,5 @@ c = e.getValue2()
cdef
char
f
=
d
.
getValue2
()
cdef
char
f
=
d
.
getValue2
()
f
=
e
.
getValue2
()
f
=
e
.
getValue2
()
del
b
,
e
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