[issue46697] _ctypes_simple_instance returns inverted logic

2022-02-09 Thread Eryk Sun
Change by Eryk Sun : -- stage: -> patch review versions: -Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list

[issue46697] _ctypes_simple_instance returns inverted logic

2022-02-09 Thread hydroflask
hydroflask added the comment: I place that patch into the public domain, I claim no ownership over that patch. The patch is attached purely for demonstration purposes. -- ___ Python tracker

[issue46697] _ctypes_simple_instance returns inverted logic

2022-02-09 Thread hydroflask
New submission from hydroflask : `_ctypes_simple_instance` in _ctypes.c returns the opposite logic of what its documentation claims. It is supposed to return true when the argument (a type object) is a direct subclass of `Simple_Type` (`_SimpleCData` in Python code). However it returns false