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

Guido van Rossum guido at python.org
Sat Jan 27 02:01:10 EST 2018


On Fri, Jan 26, 2018 at 8:22 PM, Terry Reedy <tjreedy at udel.edu> wrote:

> 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.
>

Sorry, no. The existing internal flag is an implementation detail that
should not show in the API.

-- 
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180126/60086eb0/attachment-0001.html>


More information about the Python-ideas mailing list