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:
@@ -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));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user