Message 159786 - Python tracker
I think you misuse __builtin_unreachable(): the code *is* reachable, it is just very unlikely. I really prefer to return something looking valid and continue the execution of the program, instead of calling the evil Py_FatalError() in release mode which stops immediatly the program in an insane manner. For example, -1 is a valid result for findchar(), so the program execution will continue, even if the kind is invalid.