[PEAK] PropertyName and lookupKeys()
Radek Kanovsky
rk at dat.cz
Mon Nov 29 09:41:34 EST 2004
Hi All,
is there any reason why PropertyName yields self twice in lookupKeys()?
>>> from peak.api import *
>>> list(PropertyName('hello').lookupKeys())
[PropertyName('hello'), '*', PropertyName('hello'), 'hello?']
Is it intension or just forgotten line?
def lookupKeys(self):
---> yield self
if not self.isPlain():
return
name = self
while '.' in name:
name = name[:name.rindex('.')]
yield name+'.*'
yield '*'
---> yield self
yield self+'?'
RadekK
More information about the PEAK
mailing list