Changeset 2500:c9c8448341fd in livinglogic.python.xist

Show
Ignore:
Timestamp:
04/25/06 18:22:15 (13 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Use fullname in repr().

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • _xist/xsc.py

    r2497 r2500  
    14701470        else: 
    14711471            loc = "" 
    1472         return "<%s.%s content=%r%s at 0x%x>" % (self.__class__.__module__, self.__class__.__name__, self.content, loc, id(self)) 
     1472        return "<%s.%s content=%r%s at 0x%x>" % (self.__class__.__module__, self.__fullname__(), self.content, loc, id(self)) 
    14731473 
    14741474 
     
    18351835        else: 
    18361836            loc = "" 
    1837         return "<%s.%s object (%s)%s at 0x%x>" % (self.__class__.__module__, self.__class__.__name__, info, loc, id(self)) 
     1837        return "<%s.%s object (%s)%s at 0x%x>" % (self.__class__.__module__, self.__fullname__(), info, loc, id(self)) 
    18381838 
    18391839 
     
    19321932        else: 
    19331933            loc = "" 
    1934         return "<%s.%s procinst content=%r%s at 0x%x>" % (self.__class__.__module__, self.__class__.__name__, self.content, loc, id(self)) 
     1934        return "<%s.%s procinst content=%r%s at 0x%x>" % (self.__class__.__module__, self.__fullname__(), self.content, loc, id(self)) 
    19351935 
    19361936 
     
    21162116        else: 
    21172117            loc = "" 
    2118         return "<%s.%s attr object (%s)%s at 0x%x>" % (self.__class__.__module__, self.__class__.__name__, info, loc, id(self)) 
     2118        return "<%s.%s attr object (%s)%s at 0x%x>" % (self.__class__.__module__, self.__fullname__(), info, loc, id(self)) 
    21192119 
    21202120 
     
    27872787        else: 
    27882788            loc = "" 
    2789         return "<%s.%s attrs %s%s at 0x%x>" % (self.__class__.__module__, self.__class__.__name__, info, loc, id(self)) 
     2789        return "<%s.%s attrs %s%s at 0x%x>" % (self.__class__.__module__, self.__fullname__(), info, loc, id(self)) 
    27902790         
    27912791    def __xiter__(self, mode): 
     
    34323432        else: 
    34333433            loc = "" 
    3434         return "<%s.%s element object (%s/%s)%s at 0x%x>" % (self.__class__.__module__, self.__class__.__name__, infoc, infoa, loc, id(self)) 
     3434        return "<%s.%s element object (%s/%s)%s at 0x%x>" % (self.__class__.__module__, self.__fullname__(), infoc, infoa, loc, id(self)) 
    34353435 
    34363436    def __xrepr__(self, mode): 
     
    34903490        else: 
    34913491            loc = "" 
    3492         return "<%s.%s entity object%s at 0x%x>" % (self.__class__.__module__, self.__class__.__name__, loc, id(self)) 
     3492        return "<%s.%s entity object%s at 0x%x>" % (self.__class__.__module__, self.__fullname__(), loc, id(self)) 
     3493 
    34933494 
    34943495class _CharRef_Meta(Entity.__metaclass__): # don't subclass Text.__metaclass__, as this is redundant