Changeset 3244:2c1da62dba2a in livinglogic.python.xist

Show
Ignore:
Timestamp:
03/29/08 18:02:35 (12 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

ProcInst?.(r)mul now returns n repetition of the PI instead of one PI with n repetitions of the content.

Files:
2 modified

Legend:

Unmodified
Added
Removed
  • NEWS.rst

    r3243 r3244  
    1313    support specifying whether the preferred stylesheets or an alternate 
    1414    stylesheet group should be used. 
     15 
     16*   :meth:`ll.xist.xsc.ProcInst.__mul__` and 
     17    :meth:`ll.xist.xsc.ProcInst.__rmul__` now return a fragment containing 
     18    the node repeated a number of times instead of one processing instruction 
     19    node containing repeated content. 
    1520 
    1621 
  • src/ll/xist/xsc.py

    r3227 r3244  
    18441844            loc = "" 
    18451845        return "<%s.%s procinst content=%r%s at 0x%x>" % (self.__class__.__module__, self.__fullname__, self.content, loc, id(self)) 
     1846 
     1847    def __mul__(self, n): 
     1848        return Node.__mul__(self, n) 
     1849 
     1850    def __rmul__(self, n): 
     1851        return Node.__rmul__(self, n) 
    18461852 
    18471853