On this page
  1. unicodedata.lookup
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

unicodedata.lookup

Prev: unicodedata.is_normalized | Up: unicodedata | Next: unicodedata.mirrored
Rel: unicodedata.bidirectional, unicodedata.category, unicodedata.combining, unicodedata.decimal
Ref: docs.python.org — unicodedata.lookup
Tags: #public #python3 #stdlib #unicodedata


Import

import unicodedata
from unicodedata import lookup

Signature & Overview

unicodedata.lookup(name, /)

Look up character by name.

Usage

import unicodedata

assert unicodedata.lookup('GREEK SMALL LETTER PI') == 'π'

Gotchas

REPL Inspect

from unicodedata import lookup
help(lookup)

Linked from

Related notes