def blocknum(ch):
 cp = ord(ch)
 i = (bisect_right(_starts, cp) - 1)
 end = _ends[i]
 if (cp > end):
  return None
 return i

def blocknum ( ch ) : cp = ord ( ch ) i = ( bisect_right ( _starts , cp ) - 1 ) end = _ends [ i ] if ( cp > end ) : return None return i
returns the unicode block number for ch .