[Bf-python] Hashing Vectors
Joe Eagar
joeedh at gmail.com
Tue Jul 18 15:57:41 CEST 2006
Martin Poirier wrote:
> --- Joe Eagar <joeedh at gmail.com> wrote:
>
>
> Errr, just make a tuple of the floats then, no need to
> mess around like that.
>
> The problem is not that they are floats, the problem
> is that vector objects are mutable.
>
> This is only a problem if you want to use vectors as
> dict keys or as part of a set.
>
> Making a tuple out of them is *the* way to solve that.
> Making vector immutable is not a viable option (due to
> how wrapped vectors currently work).
>
> Martin
>
Well I wasn't being totally serious. it just seemed like a fun (if
probably unpractical) solution.
Joe
More information about the Bf-python
mailing list