def is_letter_or_number(char):
    """ Returns whether the specified unicode character is a letter or a number.
    """
    cat = category(char)
    return cat.startswith('L') or cat.startswith('N')
 Returns whether the specified unicode character is a letter or a number.
    
angrmanagement/vendor/qtconsole/console_widget.py