blob: 313e72a67863301afc23f43e987a77cff9d5958b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
# distutils: language = c++
from libcpp.string cimport string
def get_bytes():
py_bytes_object = b'hello world'
cdef string s = py_bytes_object
s.append('abc')
py_bytes_object = s
return py_bytes_object
|