Update of /cvsroot/pygccxml/source/pyplusplus/experimental
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4240
Modified Files:
declwrapper.py
Log Message:
Use the __str__ methods for writing the query log
Index: declwrapper.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/experimental/declwrapper.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** declwrapper.py 20 Mar 2006 10:52:55 -0000 1.6
--- declwrapper.py 22 Mar 2006 10:44:56 -0000 1.7
***************
*** 78,85 ****
print >>query_log, "Filter: %s"%filter
for decl in self.decl_handles:
! declstr = getattr(decl, "decl_string", "[no decl_string] "+pygccxml.declarations.full_name(decl))
! # declstr = pygccxml.declarations.full_name(decl)
! clsstr = decl.__class__.__name__.replace("_t", "")
! print >>query_log, " -> %s [%s]"%(declstr, clsstr)
if len(self.decl_handles)==0:
print >>query_log, " <no result>"
--- 78,82 ----
print >>query_log, "Filter: %s"%filter
for decl in self.decl_handles:
! print >>query_log, " -> %s"%decl
if len(self.decl_handles)==0:
print >>query_log, " <no result>"
***************
*** 247,251 ****
If fn is None, the string name is not quoted. You can use this form
! to wrap constructors or operators. Example:
Class("Foo").cdef("bp::init< const MFoo& >()")
--- 244,248 ----
If fn is None, the string name is not quoted. You can use this form
! to wrap constructors or operators. Example::
Class("Foo").cdef("bp::init< const MFoo& >()")
|