diff --git a/Doc/Manual/Python.html b/Doc/Manual/Python.html index bd48a37f2..762abebba 100644 --- a/Doc/Manual/Python.html +++ b/Doc/Manual/Python.html @@ -3386,7 +3386,39 @@ public: +
+Note that when the underlying C++ method is overloaded, there is only one proxy Python method +for multiple C++ methods. In this case, only one of parsed methods is examined +for the feature. You are better off specifying the feature without the argument list to ensure it will get used, +as it will then get attached to all the overloaded C++ methods. For example: +
+
+%module example
+
+// Add python code to bar()
+
+%pythonprepend Foo::bar %{
+ #do something before C++ call
+%}
+
+%pythonappend Foo::bar %{
+ #do something after C++ call
+%}
+
+
+class Foo {
+public:
+ int bar(int x);
+ int bar();
+}
+
++The same applies for overloaded constructors. +