def __floordiv__(self, other): assert type(other) in scalar_types return Vector3(operator.floordiv(self.x, other), operator.floordiv(self.y, other), operator.floordiv(self.z, other))