2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-23 17:52:17 +00:00
[SVN r14495]
This commit is contained in:
Dave Abrahams
2002-07-17 14:06:15 +00:00
parent bd72ee9cd1
commit 9d5e8b9ad8

View File

@@ -29,8 +29,9 @@ namespace boost { namespace python { namespace converter {
// type T. Indicates a successful lvalue conversion
//
// 3. where y is of type rvalue_from_python_data<T>,
// x.construct(source, y) attempts to construct an object of type T
// in y. Indicates an rvalue converter was found
// x.construct(source, y) constructs an object of type T
// in y.storage.bytes and then sets y.convertible == y.storage.bytes,
// or else throws an exception and has no effect.
BOOST_PYTHON_DECL rvalue_from_python_stage1_data rvalue_from_python_stage1(
PyObject* source
, registration const& converters)
@@ -231,7 +232,7 @@ pytype_result_from_python(PyTypeObject* type_, PyObject* source)
handle<> msg(
::PyString_FromFormat(
"Expecting a Python %s return type, but got an object of type %s instead"
, type_
, type_->tp_name
, source->ob_type->tp_name
));
PyErr_SetObject(PyExc_TypeError, msg.get());