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:[email protected]] On Behalf Of Alexander Heger Sent: Saturday, August 20, 2016 4:52 PM To: Chris Angelico <[email protected]> Cc: python-ideas <[email protected]> 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 [email protected] https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/
