[New-bugs-announce] [issue34146] PyCData_Type.tp_hash doesn't use PyObject_HashNotImplemented
Dan Snider
report at bugs.python.org
Wed Jul 18 06:41:57 EDT 2018
New submission from Dan Snider <mr.assume.away at gmail.com>:
So not only does the function it does use (`PyCData_nohash`) prevent PyType_Ready from setting _ctypes._SimpleCData.__dict__["__hash__"] to `None`, (contrary to to every other unhashable type in the standard library) but the error message it returns is less detailed.
It seems like a big deal if this were to be changed as it could break backwards compatibility so I won't open PR myself as I'm still not that familiar with the contribution process.
----------
components: ctypes
messages: 321878
nosy: bup
priority: normal
severity: normal
status: open
title: PyCData_Type.tp_hash doesn't use PyObject_HashNotImplemented
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34146>
_______________________________________
More information about the New-bugs-announce
mailing list