MCPcopy Create free account
hub / github.com/ActiveState/code / set_properties

Method set_properties

recipes/Python/577978_Text_Model/recipe-577978.py:89–100  ·  view source on GitHub ↗
(self, i1, i2, properties)

Source from the content-addressed store, hash-verified

87 i -= n
88
89 def set_properties(self, i1, i2, properties):
90 r = []
91 i = 0
92 for texel in self.data:
93 n = len(texel)
94 if i1<n and i2>0:
95 r.append(texel.set_properties(i1, i2, properties))
96 else:
97 r.append(texel)
98 i1 -= n
99 i2 -= n
100 return Group(r)
101
102 def split(self, i):
103 if i<0 or i>len(self):

Callers

nothing calls this directly

Calls 2

GroupClass · 0.85
appendMethod · 0.45

Tested by

no test coverage detected