diff --git a/pyste/doc/pyste.txt b/pyste/doc/pyste.txt index 813b77ef..585df472 100644 --- a/pyste/doc/pyste.txt +++ b/pyste/doc/pyste.txt @@ -188,7 +188,14 @@ with the function [^exclude]: exclude(World.greet) exclude(World.msg) -Easy, huh? [$theme/smiley.gif] +To access the operators of a class, access the member [^operator] like this +(supposing that [^C] is a class being exported): + + exclude(C.operator['+']) + exclude(C.operator['*']) + exclude(C.operator['<<']) + +The string inside the brackets is the same as the name of the operator in C++.[br] [page:1 Policies] diff --git a/pyste/doc/renaming_and_excluding.html b/pyste/doc/renaming_and_excluding.html index 29a8001b..4f56bb92 100644 --- a/pyste/doc/renaming_and_excluding.html +++ b/pyste/doc/renaming_and_excluding.html @@ -50,7 +50,15 @@ with the function exclude:
exclude(World.msg)
-Easy, huh? 
+ exclude(C.operator['+'])
+ exclude(C.operator['*'])
+ exclude(C.operator['<<'])
+
+
+The string inside the brackets is the same as the name of the operator in C++.