2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-25 18:32:24 +00:00

Added type checking when converting some Python types from python as return values.

[SVN r14478]
This commit is contained in:
Dave Abrahams
2002-07-16 11:45:10 +00:00
parent fa779034b5
commit 2bfeb20550
10 changed files with 165 additions and 28 deletions

View File

@@ -38,6 +38,11 @@ object apply_object_list(object f, list x)
return f(x);
}
list apply_list_list(object f, list x)
{
return call<list>(f.ptr(), x);
}
void append_object(list& x, object y)
{
x.append(y);
@@ -126,6 +131,7 @@ BOOST_PYTHON_MODULE_INIT(list_ext)
.def("listify", listify)
.def("listify_string", listify_string)
.def("apply_object_list", apply_object_list)
.def("apply_list_list", apply_list_list)
.def("append_object", append_object)
.def("append_list", append_list)