]> granicus.if.org Git - python/commit
Issue 18772: Restore set dummy object back to unicode and restore the identity check...
authorRaymond Hettinger <python@rcn.com>
Wed, 21 Aug 2013 05:28:24 +0000 (22:28 -0700)
committerRaymond Hettinger <python@rcn.com>
Wed, 21 Aug 2013 05:28:24 +0000 (22:28 -0700)
commitae9e616a00e0a288c31dc053db40353302823e88
tree2aa78daeeb0535e22b040221a4ef63c00dac6bd6
parent0688897f056283d497b3e19a7a9806bcdd583494
Issue 18772:  Restore set dummy object back to unicode and restore the identity checks in lookkey().

The Gdb prettyprint plugin depended on the dummy object being displayable.
Other solutions besides a unicode object are possible.  For now, get it
back up and running.

The identity checks in lookkey() need to be there to prevent the dummy
object from leaking through Py_RichCompareBool() into user code in the
rare circumstance where the dummy's hash value exactly matches the hash
value of the actual key being looked up.
Objects/setobject.c