[pygccxml-development] return_range - new call policy
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2007-02-20 18:34:19
|
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/ |