gh-106318: Add examples for str.isprintable() (GH-140043)
(cherry picked from commit
7b0a372b20ae3b80053d52e84c2b7bdd114c19f0)
Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Nonprintable characters are those in group Separator or Other (Z or C),
except the ASCII space.
+ For example:
+
+ .. doctest::
+
+ >>> ''.isprintable(), ' '.isprintable()
+ (True, True)
+ >>> '\t'.isprintable(), '\n'.isprintable()
+ (False, False)
+
.. method:: str.isspace()