From: Marcelo M. <mar...@us...> - 2006-02-18 10:32:05
|
Update of /cvsroot/swig/SWIG/Source/Modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24084/Source/Modules Modified Files: python.cxx Log Message: add swigregister proxy method and move __repr__ to a single global module Index: python.cxx =================================================================== RCS file: /cvsroot/swig/SWIG/Source/Modules/python.cxx,v retrieving revision 1.189 retrieving revision 1.190 diff -C2 -d -r1.189 -r1.190 *** python.cxx 18 Feb 2006 09:23:55 -0000 1.189 --- python.cxx 18 Feb 2006 10:31:57 -0000 1.190 *************** *** 2686,2690 **** if (new_repr) { Printv(f_shadow_file, ! tab4, "__repr__ = lambda self: _swig_repr(self)\n", NIL); } --- 2686,2690 ---- if (new_repr) { Printv(f_shadow_file, ! tab4, "__repr__ = _swig_repr\n", NIL); } *************** *** 2738,2743 **** } } - Printf(f_shadow_file,"%s.%s_swigregister(%s)\n", module, class_name, class_name,0); Printf(f_shadow_file,"%s_swigregister = %s.%s_swigregister\n", class_name, module, class_name); shadow_indent = 0; --- 2738,2743 ---- } } Printf(f_shadow_file,"%s_swigregister = %s.%s_swigregister\n", class_name, module, class_name); + Printf(f_shadow_file,"%s_swigregister(%s)\n", class_name, class_name,0); shadow_indent = 0; |