Is using `is` with arbitrary objects safe?

You don’t even need ctypes hacking for that, just a tracing profiler hook.