2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-26 06:42:27 +00:00

More converter centralization

[SVN r14487]
This commit is contained in:
Dave Abrahams
2002-07-17 01:54:58 +00:00
parent 134bc44c45
commit 244e0fa5e6
13 changed files with 369 additions and 240 deletions

View File

@@ -7,11 +7,13 @@
namespace boost { namespace python {
BOOST_PYTHON_DECL detail::new_reference list::call(object const& arg)
BOOST_PYTHON_DECL detail::new_non_null_reference list::call(object const& arg)
{
return (detail::new_reference)PyObject_CallFunction(
(PyObject*)&PyList_Type, "(O)",
arg.ptr());
return (detail::new_non_null_reference)
(expect_non_null)(
PyObject_CallFunction(
(PyObject*)&PyList_Type, "(O)",
arg.ptr()));
}
BOOST_PYTHON_DECL list::list()