2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-22 05:22:45 +00:00

Changes to support explicit constructor of py::Ptr.

[SVN r8185]
This commit is contained in:
Dave Abrahams
2000-11-12 21:01:30 +00:00
parent fc5155e30d
commit 9aa1129dd9

View File

@@ -89,15 +89,15 @@ struct raw_arguments_function : Function
private:
PyObject* do_call(PyObject* args, PyObject* keywords) const
{
Ptr dict(keywords ?
Ptr(keywords, Ptr::new_ref) :
PyDict_New());
{
Ptr dict(keywords ?
Ptr(keywords, Ptr::new_ref) :
Ptr(PyDict_New()));
return to_python(
(*m_pf)(from_python(args, py::Type<Args>()),
from_python(dict.get(), py::Type<Keywords>())));
}
return to_python(
(*m_pf)(from_python(args, py::Type<Args>()),
from_python(dict.get(), py::Type<Keywords>())));
}
const char* description() const
{ return typeid(PtrFun).name(); }