2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-24 06:02:14 +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

@@ -8,6 +8,7 @@
# include <boost/python/object.hpp>
# include <boost/python/converter/pytype_arg_from_python.hpp>
# include <boost/python/converter/pytype_result_from_python.hpp>
namespace boost { namespace python {
@@ -153,7 +154,7 @@ namespace converter
result_type operator()(PyObject* x) const
{
return list(python::detail::new_reference(x));
return list((pytype_result_from_python)(&PyList_Type, x));
}
};
}