[issue43509] CFunctionType object should be hashable in Python

2021-03-22 Thread Xinmeng Xia
Change by Xinmeng Xia : -- type: compile error -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43509] CFunctionType object should be hashable in Python

2021-03-15 Thread Xinmeng Xia
New submission from Xinmeng Xia : See the following examples, ctypes.resize is a built-in function and it's hashable. ctypes.memset is a C function (CFunctionType object) and it's “unhashable”. However, ctypes.resize and ctypes.memset are both immutable. They should act the same in