>________________________________
> From: Tony Cappellini <cappy2...@gmail.com>
>To: cplusplus-sig@python.org 
>Sent: Thursday, October 15, 2015 10:27 PM
>Subject: [C++-sig] Returning C++ buffer to Python 2.7
> 
>
>
>
>
>I've allocated memory in C++ and need to expose a function to Python
>so that Python can read this memory as a sequence.
>
>
>
>I've found this example
>
>
>http://pastebin.com/YGi61R4H
>
>
>
>from this URL
>http://stackoverflow.com/questions/16232520/how-to-expose-raw-byte-buffers-with-boostpython
>
>
>
>which **looks** like it will do what I need, from the description of the code 
>and the request from the original author.
>
>
>However, it looks incomplete to me. There is no code which defines, or 
>explains what
>handle<> is/does, in this line of code

>

See 
http://www.boost.org/doc/libs/1_55_0/libs/python/doc/tutorial/doc/html/python/object.html#python.creating_python_objectfor
 explanation of handle<>
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
https://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to