See https://github.com/cython/cython/wiki/enhancements-switch