Hi all. I am not sure whether you see my post on Boost.Python mailing list, so
will repost it here.
I created new and cool call policy: return_range.
Class return_range is a model of CallPolicies, which can be used to
wrap C++ functions that return a pointer to some array. The new call
policy constructs object, which provides a regular Python sequence
interface.
For more information refer to documentation:
http://language-binding.net/pyplusplus/documentation/functions/call_policies.html#return-range
Enjoy.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
|