On this page
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
- Returns
1for characters mirrored in right-to-left text (like parentheses and brackets).
REPL Inspect
from unicodedata import mirrored
help(mirrored)
Linked from
Related notes
- tuts/python3/stdlib_module/unicodedata/lookup Linked here; links to this page; shared tags: #stdlib, #unicodedata
- tuts/python3/stdlib_module/unicodedata/name Linked here; links to this page; shared tags: #stdlib, #unicodedata
- tuts/python3/stdlib_module/unicodedata Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/unicodedata/bidirectional Linked here; shared tags: #stdlib, #unicodedata
- tuts/python3/stdlib_module/unicodedata/category Linked here; shared tags: #stdlib, #unicodedata
- tuts/python3/stdlib_module/unicodedata/combining Linked here; shared tags: #stdlib, #unicodedata
- tuts/python3/stdlib_module/unicodedata/decimal Linked here; shared tags: #stdlib, #unicodedata
- tuts/python3/stdlib_module/unicodedata/decomposition shared tags: #stdlib, #unicodedata
- tuts/python3/stdlib_module/unicodedata/digit shared tags: #stdlib, #unicodedata
- tuts/python3/stdlib_module/unicodedata/east_asian_width shared tags: #stdlib, #unicodedata