Soy totalmente nuevo en python. Obtuve un errorTypeError: el objeto 'bool' no se puede llamar
while not cls.isFilled(row,col,myMap):
TypeError: 'bool' object is not callable
¿Podría indicarnos cómo solucionar este problema? La primera comprobación "si" está bien, pero "mientras no" tiene este error.
def main(cls, args):
...
if cls.isFilled(row,col,myMap):
numCycles = 0
while not cls.isFilled(row,col,myMap):
numCycles += 1
def isFilled(cls,row,col,myMap):
cls.isFilled = True
## for-while
i = 0
while i < row:
## for-while
j = 0
while j < col:
if not myMap[i][j].getIsActive():
cls.isFilled = False
j += 1
i += 1
return cls.isFilled
Si alguien obtiene un error similar con Flask-Login: 'current_user.is_authenticated(): TypeError: el objeto 'bool' no se puede llamar' se refiere a [esta pregunta] (http://stackoverflow.com/q/32750526/1429387) – naXa