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

Add examples that were meant to go here in the first place, but

were accidentally added to the main branch.


[SVN r9022]
This commit is contained in:
Ralf W. Grosse-Kunstleve
2001-02-08 01:51:09 +00:00
parent 82ef4c070d
commit 52ab91e34c
11 changed files with 324 additions and 1 deletions

View File

@@ -70,7 +70,8 @@ BOOST_PYTHON_BEGIN_CONVERSION_NAMESPACE
//
MillerIndex from_python(PyObject* p, python::type<const MillerIndex&>)
{
python::tuple tup = python::tuple(python::ref(p, ref::increment_count));
python::tuple tup
= python::tuple(python::ref(p, python::ref::increment_count));
if (tup.size() != 3) {
PyErr_SetString(PyExc_ValueError,
"expecting exactly 3 values in tuple.");