That would require strings to also not be sequences, or to totally drop the 
sequence protocol.  These are non-starters.  They *will not* happen.  Not they 
shouldn’t happen, or they probably won’t happen.  They cannot and will not 
happen.

 

That is a much bigger break than they were even willing to make between 2 and 3.

 

From: Python-ideas 
[mailto:python-ideas-bounces+tritium-list=sdamon....@python.org] On Behalf Of 
Alexander Heger
Sent: Saturday, August 20, 2016 4:52 PM
To: Chris Angelico <ros...@gmail.com>
Cc: python-ideas <python-ideas@python.org>
Subject: Re: [Python-ideas] discontinue iterable strings

 

 

I was not proposing a character type, only that strings are not iterable:

 

for i in 'abc':

    print(i)

 

TypeError: 'str' object is not iterable

 

_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to