[Tutor] TypeError: unhashable type: 'pygame.math.Vector2'

Cravan savageapple850 at gmail.com
Thu Jun 25 19:40:00 EDT 2020


Hmm, I think I'll reconsider the use of vectors altogether. Thanks Mats! Appreciate your quick response!
Cheers,
Cravan



>    On 6/25/20 10:06 AM, Mats Wichmann wrote:
    
>  sigh... think one thing, write another:
    
    > Your Q is a dictionary;
    > 
    >     Q = {}
    > 
    > and dicts specifically have the restriction that the type be hashable
    
    ... that the _key_ be hashable ...
    _______________________________________________
    Tutor maillist  -  Tutor at python.org
    To unsubscribe or change subscription options:
    https://mail.python.org/mailman/listinfo/tutor
    




More information about the Tutor mailing list