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