From a947f7249f8eccf65c96969cb043049d5c89995c Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Fri, 13 Dec 2024 17:16:43 +0800 Subject: [PATCH] Update vec.py --- benchmarks/vec.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/benchmarks/vec.py b/benchmarks/vec.py index 1703378c..5fdde97f 100644 --- a/benchmarks/vec.py +++ b/benchmarks/vec.py @@ -10,6 +10,9 @@ class vec2: def __eq__(self, other): return self.x == other.x and self.y == other.y + + def __ne__(self, other): + return not self == other x = vec2(0, 0) for i in range(10000000):