[IronPython] IronPython.Objects.List doesn't support GetHashCode()

Chris Anderson (WINDOWS) chrisan at windows.microsoft.com
Thu May 12 06:12:54 CEST 2005

Is there any special reason why this is the case? The code currently

        public override int GetHashCode() {
            throw Ops.TypeError("list object is unhashable");

So it's obviously intentional... however, I'm trying to use a native
Python list as a data source for UI binding, and the collection needs to
support GetHashCode? Is there any harm in implementing this method to
just return the object identity hash?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20050511/8118adba/attachment.html>

More information about the Ironpython-users mailing list