def _add_body(self, body):
        """Adds a body to the space"""
        assert body not in self._bodies, "body already added to space"
        body._space = weakref.proxy(self)
        self._bodies.add(body)
        cp.cpSpaceAddBody(self._space, body._body)
dataset/ETHPy150Open estevaofon/angry-birds-python/pymunk-4.0.0/pymunk/__init__.py/Space._add_body/original