8.2.11.2.54. isprintableΒΆ

Token.isprintable()

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.