[Python-ideas] discontinue iterable strings
tritium-list at sdamon.com
tritium-list at sdamon.com
Sun Aug 21 03:55:37 EDT 2016
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.com at python.org] On Behalf Of Alexander Heger
Sent: Saturday, August 20, 2016 4:52 PM
To: Chris Angelico <rosuav at gmail.com>
Cc: python-ideas <python-ideas at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160821/b19d9980/attachment.html>
More information about the Python-ideas
mailing list