private final static char kindAndNBytesToType(final short kind, final short nbytes) {
        switch (kind) {
        case INTEGER:
            switch (nbytes) {
            case 1:
                return '1';
            case 2:
                return 's';
            case 4:
                return 'i';
            case 8:
                return 'l';
            default:
                break;
            }
            break;
        case FLOATINGPOINT:
            switch (nbytes) {
            case 4:
                return 'f';
            case 8:
                return 'd';
            default:
                break;
            }
            break;
        case COMPLEX:
            switch (nbytes) {
            case 4:
                return 'F';
            case 8:
                return 'D';
            default:
                break;
            }
            break;
        case PYOBJECT:
            return 'O';
        }
        throw Py.ValueError("internal error in kindAndNBytesToType");
    }