docstring patch has been submitted to SF
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25398 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		@@ -4,7 +4,7 @@ RCS file: /cvsroot/SWIG/Source/Modules/python.cxx,v
 | 
			
		||||
retrieving revision 1.39
 | 
			
		||||
diff -u -4 -r1.39 python.cxx
 | 
			
		||||
--- Source/Modules/python.cxx	22 Jan 2004 22:42:17 -0000	1.39
 | 
			
		||||
+++ Source/Modules/python.cxx	22 Jan 2004 23:39:03 -0000
 | 
			
		||||
+++ Source/Modules/python.cxx	24 Jan 2004 00:18:12 -0000
 | 
			
		||||
@@ -50,8 +50,17 @@
 | 
			
		||||
 static  int       have_constructor;
 | 
			
		||||
 static  int       have_repr;
 | 
			
		||||
@@ -52,7 +52,7 @@ diff -u -4 -r1.39 python.cxx
 | 
			
		||||
   }
 | 
			
		||||
 
 | 
			
		||||
 
 | 
			
		||||
@@ -441,8 +456,256 @@
 | 
			
		||||
@@ -441,8 +456,248 @@
 | 
			
		||||
   }
 | 
			
		||||
 
 | 
			
		||||
 
 | 
			
		||||
@@ -96,14 +96,6 @@ diff -u -4 -r1.39 python.cxx
 | 
			
		||||
+      have_auto = (autodoc != NULL && Len(autodoc) > 0);
 | 
			
		||||
+    }
 | 
			
		||||
+    
 | 
			
		||||
+//     if ( have_auto && have_ds )
 | 
			
		||||
+//       doc = NewStringf("%s%s\n\n%s%s", triple_double, autodoc, str, triple_double);
 | 
			
		||||
+//     else if ( !have_auto && have_ds )
 | 
			
		||||
+//       doc = NewStringf("%s%s%s", triple_double, str, triple_double);
 | 
			
		||||
+//     else
 | 
			
		||||
+//       doc = NewStringf("%s%s%s", triple_double, autodoc, triple_double);
 | 
			
		||||
+
 | 
			
		||||
+    
 | 
			
		||||
+    // If there is more than one line then make docstrings like this:
 | 
			
		||||
+    //
 | 
			
		||||
+    //      """
 | 
			
		||||
@@ -309,7 +301,7 @@ diff -u -4 -r1.39 python.cxx
 | 
			
		||||
    *    Check if there is a %addtofunc directive and it has text
 | 
			
		||||
    * ------------------------------------------------------------ */
 | 
			
		||||
 
 | 
			
		||||
@@ -1698,9 +1961,11 @@
 | 
			
		||||
@@ -1698,9 +1953,11 @@
 | 
			
		||||
 	  Printf(f_shadow, modern ? "(object)" : "(_object)");
 | 
			
		||||
 	}
 | 
			
		||||
       }
 | 
			
		||||
@@ -322,7 +314,7 @@ diff -u -4 -r1.39 python.cxx
 | 
			
		||||
         Printv(f_shadow,tab4,"__swig_setmethods__ = {}\n",NIL);
 | 
			
		||||
         if (Len(base_class)) {
 | 
			
		||||
           Printf(f_shadow,"%sfor _s in [%s]: __swig_setmethods__.update(_s.__swig_setmethods__)\n",tab4,base_class);
 | 
			
		||||
@@ -1833,16 +2098,22 @@
 | 
			
		||||
@@ -1833,16 +2090,22 @@
 | 
			
		||||
 	  Delete(pyaction);
 | 
			
		||||
 	  Printv(f_shadow,pycode,"\n",NIL);
 | 
			
		||||
 	} else {
 | 
			
		||||
@@ -352,7 +344,7 @@ diff -u -4 -r1.39 python.cxx
 | 
			
		||||
         }
 | 
			
		||||
 
 | 
			
		||||
       }
 | 
			
		||||
@@ -1857,14 +2128,20 @@
 | 
			
		||||
@@ -1857,14 +2120,20 @@
 | 
			
		||||
   virtual int staticmemberfunctionHandler(Node *n) {
 | 
			
		||||
     String *symname = Getattr(n,"sym:name");
 | 
			
		||||
     Language::staticmemberfunctionHandler(n);
 | 
			
		||||
@@ -377,7 +369,7 @@ diff -u -4 -r1.39 python.cxx
 | 
			
		||||
                " = staticmethod(", symname, ")\n", NIL);
 | 
			
		||||
 
 | 
			
		||||
         if (!modern) {
 | 
			
		||||
@@ -1949,8 +2226,10 @@
 | 
			
		||||
@@ -1949,8 +2218,10 @@
 | 
			
		||||
  	    }
 | 
			
		||||
 
 | 
			
		||||
             Printv(f_shadow, tab4, "def __init__(self, *args",
 | 
			
		||||
@@ -388,7 +380,7 @@ diff -u -4 -r1.39 python.cxx
 | 
			
		||||
             if (!modern) {
 | 
			
		||||
               Printv(f_shadow, tab8, "_swig_setattr(self, ", rclassname, ", 'this', ", 
 | 
			
		||||
                      funcCallHelper(Swig_name_construct(symname), allow_kwargs), ")\n", NIL);
 | 
			
		||||
@@ -1964,9 +2243,9 @@
 | 
			
		||||
@@ -1964,9 +2235,9 @@
 | 
			
		||||
               Printv(f_shadow, tab8, "self.thisown = 1\n", NIL);
 | 
			
		||||
               Printv(f_shadow, tab8, "del newobj.thisown\n", NIL);
 | 
			
		||||
             }
 | 
			
		||||
@@ -399,7 +391,7 @@ diff -u -4 -r1.39 python.cxx
 | 
			
		||||
   	  }
 | 
			
		||||
 	  have_constructor = 1;
 | 
			
		||||
 	} else {
 | 
			
		||||
@@ -1982,8 +2261,10 @@
 | 
			
		||||
@@ -1982,8 +2253,10 @@
 | 
			
		||||
 	  } else {
 | 
			
		||||
 
 | 
			
		||||
             Printv(f_shadow_stubs, "\ndef ", symname, "(*args",
 | 
			
		||||
@@ -410,7 +402,7 @@ diff -u -4 -r1.39 python.cxx
 | 
			
		||||
                    funcCallHelper(Swig_name_construct(symname), allow_kwargs), "\n", NIL);
 | 
			
		||||
 	    Printv(f_shadow_stubs, tab4, "val.thisown = 1\n", NIL);
 | 
			
		||||
             if ( have_addtofunc(n) )
 | 
			
		||||
@@ -2015,13 +2296,15 @@
 | 
			
		||||
@@ -2015,13 +2288,15 @@
 | 
			
		||||
 	Delete(pyaction);
 | 
			
		||||
 	Printv(f_shadow,pycode,"\n", NIL);
 | 
			
		||||
       } else {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user