[Python-ideas] Adding str.isascii() ?

Terry Reedy tjreedy at udel.edu
Fri Jan 26 23:22:33 EST 2018


On 1/26/2018 8:27 PM, Steven D'Aprano wrote:
> On Fri, Jan 26, 2018 at 02:37:14PM +0100, Victor Stinner wrote:

>> Really? I never required such check in practice. Would you mind to
>> elaborate your use case?
> 
> tcl/tk and Javascript only support UCS-2 (16 bit) Unicode strings.

Since IDLE is a tkinter application, it would be helpful if there were 
an isbmp function that exposed the existing flag in the string object.

-- 
Terry Jan Reedy



More information about the Python-ideas mailing list