Skip to content

No longer able to add MetaClass to set (unhashable type) #1

Description

@pfleer

Hi Mark,

Thanks for starting the Python 3 repo!
Unfortunately I've noticed you can no longer add MetaClasses to a set anymore; this now raises a TypeError because MetaClass is an unhashable type.

My test code (working in Python 2, not in 3)

from Red9 import setup
setup.start()
import Red9.core.Red9_Meta as r9m
from maya import cmds

group = cmds.group(name='test', empty=True)
testNode = r9m.MetaClass(node=group, name='TestMetaNode')

s = set()
s.add(testNode)

Let me know if I can help with more info.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions