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. + +
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: