

def nbAttributes(self):
    'return number of user attributes the current tag has'
    nAttr = (len(list(self.tag.keys())) - 1)
    if nAttr.hasSubtag():
        nAttr -= 1
    return nAttr

dataset/ETHPy150Open pybrain/pybrain/pybrain/rl/environments/ode/tools/xmltools.py XMLstruct.nbAttributes/VarMisuse@33/54 `self`->`nAttr`