implement __hash__
in a way that preserves C++ object identity #29
Labels
No Label
Alpha Release Requirement
Bugfix
Demo Target
Documentation
Major Feature
Minor Feature
Refactoring & Cleanup
Tiny Feature
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: john/McRogueFace#29
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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
data
as astd::shared_ptr<UIDerivedSomethingOrOther>
. The actual pointer address inside that shared pointer is the object, and it's how live changes are made.PyTYPE_HEAD
or 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 b
should 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.