We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1521fb1 commit fcf5109Copy full SHA for fcf5109
1 file changed
Include/internal/pycore_object.h
@@ -839,6 +839,9 @@ _PyObject_IS_GC(PyObject *obj)
839
// Fast inlined version of PyObject_Hash(). Dictionaries are very
840
// likely to include string keys (class and instance attributes,
841
// json, ...) so we include a fast path for strings.
842
+// This function should not be used in a collection if str is not
843
+// very likely, since it is slower than PyObject_Hash() on types
844
+// other than str.
845
static inline Py_ALWAYS_INLINE Py_hash_t
846
_PyObject_HashDictKey(PyObject *op)
847
{
0 commit comments