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

Method GetWords

recipes/Python/392154_Generator_methods/recipe-392154.py:135–140  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

133
134 @generator_method('Foo')
135 def GetWords(self):
136 i = 0
137 while 1:
138 i += 1
139 s = super(Foo, self).GetWords()
140 yield '<%d> %s' % (i,s)
141
142print '*** Test instance ***'
143t = Test()

Callers 2

ResetAllMethod · 0.95
recipe-392154.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected