From 2324ac4f9693df5af5c6e7317ffc38e4d1339884 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ullrich=20K=C3=B6the?= Date: Wed, 22 Nov 2000 18:15:05 +0000 Subject: [PATCH] resolved conflicts caused by the last merge [SVN r8302] --- special.html | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/special.html b/special.html index 29bedc80..d32b843b 100644 --- a/special.html +++ b/special.html @@ -76,10 +76,13 @@ python::class_builder<Foo> foo_class(my_module, "Foo"); foo_class.def(&to_string, "__str__"); - Note that py_cpp also supports automatic wrapping in case of - __str__ and __cmp__. This is explained in the next + + Note that py_cpp also supports automatic wrapping of + "__str__" and "__cmp__". This is explained in the next section and the table of numeric operators. + +

Numeric Operators

@@ -87,7 +90,7 @@ manual wrapping (as is done with general operators) and automatic wrapping. Lets start with the second possibility. Suppose, C++ defines a class Int (which might - represent an infinite-precision integer) which support addition, so that + represent an infinite-precision integer) which supports addition, so that we can write (in C++):
     Int a, b, c;
@@ -456,7 +459,8 @@
              left <= right
left > right
left >= right
- left == right + left == right
+ left != right python::op_cmp @@ -558,6 +562,8 @@ usually defined automatically, otherwise special treatment required + +

Sequence and Mapping Operators

@@ -584,7 +590,7 @@ is out-of-range in order to enable the  "for i in S:"  idiom.

- Here is an example. Suppose you, we want to wrap a + Here is an example. Suppose, we want to wrap a std::map<std::size_t,std::string>. This is done as follows as follows: