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
Kirill Smelkov
cython
Commits
0183926e
Commit
0183926e
authored
Jul 06, 2018
by
gabrieldemarmiesse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: Modified a C++ example to make it simpler.
parent
04260b51
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
docs/examples/userguide/wrapping_CPlusPlus/iterate.pyx
docs/examples/userguide/wrapping_CPlusPlus/iterate.pyx
+2
-5
No files found.
docs/examples/userguide/wrapping_CPlusPlus/iterate.pyx
View file @
0183926e
...
...
@@ -3,12 +3,9 @@
from
libcpp.vector
cimport
vector
def
main
():
cdef
vector
[
int
]
v
cdef
int
i
,
value
for
i
in
range
(
10
):
v
.
push_back
(
i
)
cdef
vector
[
int
]
v
=
[
4
,
6
,
5
,
10
,
3
]
cdef
int
value
for
value
in
v
:
print
(
value
)
...
...
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