2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-24 18:12:43 +00:00

Python 1.5 compatibility fixes

[SVN r12072]
This commit is contained in:
Dave Abrahams
2001-12-16 17:58:23 +00:00
parent f9e6933840
commit e65ca4ccac

View File

@@ -1093,6 +1093,7 @@ void init_module(boost::python::module_builder& m)
// export non-operator function as heterogeneous reverse-argument operator
int_class.def(&rmul, "__rmul__");
#if PYTHON_API_VERSION >= 1010
// inplace operators.
int_class.def(&int_iadd, "__iadd__");
int_class.def(&int_isub, "__isub__");
@@ -1105,6 +1106,7 @@ void init_module(boost::python::module_builder& m)
int_class.def(&int_iand, "__iand__");
int_class.def(&int_ior, "__ior__");
int_class.def(&int_ixor, "__ixor__");
#endif
boost::python::class_builder<EnumOwner> enum_owner(m, "EnumOwner");