This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author petdance
Recipients petdance
Date 2019-12-24.04:43:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
_Py_HashPointer in Python/pyhash.c takes a pointer argument that can be made const.  This will let compiler and static analyzers know that the pointer's target is not modified.  You can also change calls to _Py_HashPointer that are down-casting pointers.

For example, in meth_hash in Objects/methodobject.c, this call can have the void * changed to const void *.

    y = _Py_HashPointer((void*)(a->m_ml->ml_meth));
Date User Action Args
2019-12-24 04:43:00petdancesetrecipients: + petdance
2019-12-24 04:43:00petdancesetmessageid: <>
2019-12-24 04:43:00petdancelinkissue39127 messages
2019-12-24 04:43:00petdancecreate