#Maps.py
class Maps(object):
def __init__(self):
self.animals = []
self.currently_occupied = {}
def add_animal(self, name):
self.animals.append(name)
self.currently_occupied = {robot:[0, 0]}
#animal.py
class Animal(object):
def __init__(self, name):
import maps
maps.add_animal(rbt)
self.name = name
#Tproject.py
from Animal import Animal
Fred = Animal("Fred")
gives me this an error that looks like this
TypeError: unbound method add_animal() must be called with Maps instance as first argument (got str instance instead)
but i dont know what it means and i cannot figure it out searching through google or yahoo :(