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

doctest tests test_richcmp?.py, make test updated.

[SVN r10662]
This commit is contained in:
Ralf W. Grosse-Kunstleve
2001-07-18 21:33:47 +00:00
parent c7e12ecf3d
commit 9bca6982a4
14 changed files with 187 additions and 97 deletions

View File

@@ -24,11 +24,13 @@ namespace {
int m_code;
};
#if PYTHON_API_VERSION >= 1010
boost::python::ref
NotImplemented(const code&, const code&) {
return
boost::python::ref(Py_NotImplemented, boost::python::ref::increment_count);
}
#endif
}
namespace {
@@ -41,10 +43,12 @@ namespace {
py_code.def(boost::python::constructor<int>());
py_code.def(boost::python::operators<( boost::python::op_eq
| boost::python::op_ne)>());
#if PYTHON_API_VERSION >= 1010
py_code.def(NotImplemented, "__lt__");
py_code.def(NotImplemented, "__le__");
py_code.def(NotImplemented, "__gt__");
py_code.def(NotImplemented, "__ge__");
#endif
}
} // namespace <anonymous>