comtypes icon indicating copy to clipboard operation
comtypes copied to clipboard

Remove remaining `__cmp__` in `comtypes`

Open junkmd opened this issue 1 year ago • 0 comments

In Python3,

The cmp() function should be treated as gone, and the __cmp__() special method is no longer supported. https://docs.python.org/3/whatsnew/3.0.html#ordering-comparisons

However, they are still contained in comtypes.

https://github.com/enthought/comtypes/blob/afc6488d3386771f69ab4a3e305099e16c34f4d7/comtypes/client/lazybind.py#L129-L132

https://github.com/enthought/comtypes/blob/afc6488d3386771f69ab4a3e305099e16c34f4d7/comtypes/GUID.py#L45-L48

https://github.com/enthought/comtypes/blob/afc6488d3386771f69ab4a3e305099e16c34f4d7/comtypes/init.py#L592-L605

Remove these dead code and modernize the codebase.

junkmd avatar Feb 08 '24 13:02 junkmd