unicodedata.bidirectional()
unicodedata.bidirectional() is a Python function in the Unicodedata Module category. Returns the bidirectional class of a Unicode character. The syntax is unicodedata.bidirectional(chr). Returns: Bidi class string. A typical example: unicodedata.bidirectional("A") # "L" (left-to-right). A close sibling is unicodedata.lookup(), which looks up a Unicode character by its standard name. A close sibling is unicodedata.name(), which returns the Unicode name of a character. A close sibling is unicodedata.normalize(), which normalizes a Unicode string (NFC, NFKC, NFD, NFKD) for comparison. A close sibling is unicodedata.category(), which returns the general category of a Unicode character (Lu, Ll, Nd, etc.). More about this category: Unicode database — lookup, name, normalize, category, decimal. Related Unicodedata Module entries: unicodedata.lookup(), unicodedata.name(), unicodedata.normalize(), unicodedata.category(), unicodedata.decimal(), unicodedata.numeric(). This page is part of the free Python Reference documentation covering 978+ functions, methods, and modules with examples and parameter details. You can try unicodedata.bidirectional() immediately in the Python playground, look up unfamiliar terms in the glossary, or return to the Python Reference homepage.