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
51b2ec16
Commit
51b2ec16
authored
Sep 27, 2016
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'complex'
parents
89cdd5a8
5976d24e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+2
-2
tests/run/cpp_stl_vector.pyx
tests/run/cpp_stl_vector.pyx
+8
-0
No files found.
Cython/Compiler/PyrexTypes.py
View file @
51b2ec16
...
...
@@ -395,8 +395,8 @@ class CTypedefType(BaseType):
if
base_type
is
self
.
typedef_base_type
and
namespace
is
self
.
typedef_namespace
:
return
self
else
:
return
CTypedefT
ype
(
self
.
typedef_name
,
base_type
,
self
.
typedef_cname
,
self
.
typedef_is_external
,
namespace
)
return
create_typedef_t
ype
(
self
.
typedef_name
,
base_type
,
self
.
typedef_cname
,
0
,
namespace
)
def
__repr__
(
self
):
return
"<CTypedefType %s>"
%
self
.
typedef_cname
...
...
tests/run/cpp_stl_vector.pyx
View file @
51b2ec16
...
...
@@ -146,3 +146,11 @@ def test_value_type(x):
"""
cdef
vector
[
double
].
value_type
val
=
x
return
val
def
test_value_type_complex
(
x
):
"""
>>> test_value_type_complex(2)
(2+0j)
"""
cdef
vector
[
double
complex
].
value_type
val
=
x
return
val
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