[pygccxml-commit] source/pygccxml/declarations class_declaration.py,1.19,1.20
Brought to you by:
mbaas,
roman_yakovenko
From: Matthias B. <mb...@us...> - 2006-03-22 10:39:15
|
Update of /cvsroot/pygccxml/source/pygccxml/declarations In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1081 Modified Files: class_declaration.py Log Message: Added a specialized __str__ method Index: class_declaration.py =================================================================== RCS file: /cvsroot/pygccxml/source/pygccxml/declarations/class_declaration.py,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** class_declaration.py 8 Mar 2006 08:46:09 -0000 1.19 --- class_declaration.py 22 Mar 2006 10:39:12 -0000 1.20 *************** *** 98,101 **** --- 98,107 ---- self._protected_members = [] + def __str__(self): + name = algorithm.full_name(self) + if name[:2]=="::": + name = name[2:] + return "%s [%s]"%(name, self.class_type) + def _get__cmp__scope_items(self): return [ self.class_type |