Python Forum
Python Forum
>
Python Coding
>
General Coding Help
> is this Unicode printable?
Full Version:
is this Unicode printable?
You're currently viewing a stripped down version of our content.
View the full version
with proper formatting.
Skaperen
Sep-20-2021, 05:32 PM
given a Unicode character (a str of len() == 1 or maybe an int that can be used with chr()) how can the code determine if it is printable? how small could a pythonic
is_printable(ch)
be?
BashBedlam
Sep-20-2021, 07:59 PM
It's built-in
test = chr (7) print (test.isprintable ())
Skaperen
Sep-23-2021, 01:25 AM
ah, i tried that the wrong way and misconcluded that it was not there. thanks!
Python Forum
>
Python Coding
>
General Coding Help
> is this Unicode printable?