[Python-ideas] discontinue iterable strings

Sven R. Kunze srkunze at mail.de
Sun Aug 21 05:42:51 EDT 2016


On 21.08.2016 04:52, Steven D'Aprano wrote:
> Saying that these so-called "fixes" (we haven't established yet that
> Python's string behaviour is a bug that need fixing) will be easier and
> more obvious than the change to Unicode is not that bold a claim.

Agreed. Especially those "we need to distinguish between char and 
string" calls are somewhat irritating. I need to work with such 
languages at work sometimes and honestly: it sucks (but that may just be 
me).


Furthermore, I don't see much benefit at all.

First, the initial run and/or the first test will reveal the wrong behavior.
Second, it just makes sense if people use a generic variable (say 'var') 
for different types of objects. But, well, people shouldn't do that in 
the first place.
Third, it would make iterating over a string more cumbersome.


Especially the last point makes me -1 on this proposal.


My 2 cents,
Sven


More information about the Python-ideas mailing list