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

unicodedata.mirrored

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


Import

import unicodedata
from unicodedata import mirrored

Signature & Overview

unicodedata.mirrored(chr, /)

Returns the mirrored property assigned to the character chr as integer.

Usage

import unicodedata

assert unicodedata.mirrored('(') == 1 and unicodedata.mirrored('A') == 0

Gotchas

REPL Inspect

from unicodedata import mirrored
help(mirrored)

Linked from

Related notes