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
Boxiang Sun
cython
Commits
d0a8e247
Commit
d0a8e247
authored
Aug 11, 2012
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added new failing C++ test for using a stack allocate C++ vector inside of a generator
parent
edd10c3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
tests/run/cpp_vector_in_generator.pyx
tests/run/cpp_vector_in_generator.pyx
+12
-0
No files found.
tests/run/cpp_vector_in_generator.pyx
0 → 100644
View file @
d0a8e247
# mode: run
# tag: cpp
from
libcpp.vector
cimport
vector
def
stack_vector_in_generator
(
vector
[
int
]
vint
):
"""
>>> tuple( stack_vector_in_generator([1,2]) )
(1, 2)
"""
for
i
in
vint
:
yield
i
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