(ch)
return _names[i]
Return the Unicode block name for ch, or None if ch has no block.

    >>> blockname(u'a')
    'Basic Latin'
    >>> blockname(unichr(0x0b80))
    'Tamil'
    >>> block(unichr(2048))
    None
Return the Unicode block name for ch, or None if ch has no block.
Return the Unicode block name for ch or None if ch has no block .
def blockname(ch):
    """Return the Unicode block name for ch, or None if ch has no block.

    >>> blockname(u'a')
    'Basic Latin'
    >>> blockname(unichr(0x0b80))
    'Tamil'
    >>> block(unichr(2048))
    None
    """

    assert isinstance(ch, text_type) and len(ch) == 1, repr(ch)
    cp = ord(ch)
    i = bisect_right(_starts, cp) - 1
    end = _ends[i]
    if cp > end:
        return None
    return _names[i]
def blockname ( ch ) : assert isinstance ( ch , text_type ) and len ( ch ) == 1 , repr ( ch ) cp = ord ( ch ) i = bisect_right ( _starts , cp ) - 1 end = _ends [ i ] if cp > end : return None return _names [ i ]