def _add_constraint(self, constraint):
        """Adds a constraint to the space"""
        assert constraint not in self._constraints, "constraint already added to space"
        self._constraints.add(constraint)
        cp.cpSpaceAddConstraint(self._space, constraint._constraint)
dataset/ETHPy150Open estevaofon/angry-birds-python/pymunk-4.0.0/pymunk/__init__.py/Space._add_constraint/original