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

Antoine Pitrou solipsis at pitrou.net
Fri Jan 26 05:22:07 EST 2018


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.




More information about the Python-ideas mailing list