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

Victor Stinner victor.stinner at gmail.com
Fri Jan 26 06:10:17 EST 2018


+1

The idea is not new and I like it.

Naoki created https://bugs.python.org/issue32677

Victor

2018-01-26 11:22 GMT+01:00 Antoine Pitrou <solipsis at pitrou.net>:
> On Fri, 26 Jan 2018 17:42:31 +0900
> INADA Naoki <songofacandy at gmail.com>
> wrote:
>>
>> If str has str.isascii() method, it can be simpler:
>>
>> `if s.isascii() and s.isdigit():`
>>
>> I want to add it in Python 3.7 if there are no opposite opinions.
>
> +1 from me.
>
> Regards
>
> Antoine.
>
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/


More information about the Python-ideas mailing list