PASTEBIN
| #1 paste tool since 2002
create new paste
tools
api
archive
faq
PASTEBIN
create new paste
trending pastes
sign up
login
my alerts
my settings
my profile
Don't like ads?
PRO users
don't see any ads ;-)
Public Pastes
Untitled
5 sec ago
Untitled
7 sec ago
Untitled
10 sec ago
Untitled
11 sec ago
Untitled
16 sec ago
marriagelicenses00volu
17 sec ago
Untitled
17 sec ago
Untitled
38 sec ago
Untitled
By: a guest on
Aug 12th, 2012
| syntax:
None
| size: 0.28 KB | hits: 11 | expires: Never
download
|
raw
|
embed
|
report abuse
|
print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
Convert Python List to Vector<int> in Cython
cdef pylist_to_handles(hs):
cdef vector[int] o_vect
for h in hs:
o_vect.push_back(h)
return o_vect
cdef object pylist_to_handles(hs):
...
return <object>o_vect
cdef vector[int] pylist_to_handles(hs):
create a
new version
of this paste
RAW Paste Data
Convert Python List to Vector<int> in Cython cdef pylist_to_handles(hs): cdef vector[int] o_vect for h in hs: o_vect.push_back(h) return o_vect cdef object pylist_to_handles(hs): ... return <object>o_vect cdef vector[int] pylist_to_handles(hs):