1 *** Modules/pycpp.cxx.orig Fri Oct 12 16:37:36 2001
2 --- Modules/pycpp.cxx Fri Oct 12 16:38:20 2001
5 *additional << "def " << realname << "(*_args,**_kwargs):\n";
6 *additional << tab4 << "val = " << class_name << "Ptr(apply("
7 << module << "." << name_construct(realname) << ",_args,_kwargs))\n"
8 ! << tab4 << "val.thisown = 1\n"
9 ! << tab4 << "return val\n\n";
11 // Patch up the documentation entry
14 *additional << "def " << realname << "(*_args,**_kwargs):\n";
15 *additional << tab4 << "val = " << class_name << "Ptr(apply("
16 << module << "." << name_construct(realname) << ",_args,_kwargs))\n"
17 ! << tab4 << "val.thisown = 1\n";
18 ! emitAddPragmas(*additional, realname, tab4);
19 ! *additional << tab4 << "return val\n\n";
21 // Patch up the documentation entry