Export to GitHub

pyeuclid - issue #9

Vector classes should raise on __hash__


Posted on Aug 27, 2010 by Quick Ox

>>> from euclid import Vector2 >>> s = { Vector2(1, 2) } >>> Vector2(1, 2) in s False

Vectors are mutable, so should be un-hashable, to prevent misleading behaviour in hashmap containers.

Comment #1

Posted on Nov 8, 2010 by Quick Ox

(No comment was entered for this change.)

Status: Fixed

Labels:
Type-Defect Priority-Medium