implement __hash__ in a way that preserves C++ object identity #29
Labels
No labels
Alpha Release Requirement
Bugfix
Demo Target
Documentation
Major Feature
Minor Feature
priority:tier1-active
priority:tier2-foundation
priority:tier3-future
priority:tier4-deferred
Refactoring & Cleanup
system:animation
system:documentation
system:grid
system:input
system:performance
system:procgen
system:python-binding
system:rendering
system:ui-hierarchy
Tiny Feature
workflow:blocked
workflow:needs-benchmark
workflow:needs-documentation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
john/McRogueFace#29
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Notes say:
34 feat: All python objects that wrap C++ classes should return the "data" pointer address as a hash, so that "is" operator will work on UI objects or collections generated as different Python objects
dataas astd::shared_ptr<UIDerivedSomethingOrOther>. The actual pointer address inside that shared pointer is the object, and it's how live changes are made.PyTYPE_HEADor whatever holds the Python object info can be duplicated - multiple Python objects can hold shared pointers to the same C++ object. Totally intentional.a is bshould returnTrue.wontfix / the current usage of hash is probably incorrect and should be deprecated. Hashable object should be immutable. So the mcrf data containers probably should not have this value.