[Python-ideas] discontinue iterable strings

Chris Angelico rosuav at gmail.com
Sun Aug 21 06:13:03 EDT 2016


On Sun, Aug 21, 2016 at 6:08 PM,  <tritium-list at sdamon.com> wrote:
>
> from __future__ import unicode_literals outright changes the type of object string literals make (in python 2).  If you were to create a non-iterable, non-sequence text type (a horrible idea, IMO) the same thing can be done done  for that.
>

It could; but that just changes what *literals* make. But what about
other sources of strings - str()? bytes.decode()? format()? repr()?
Which ones get changed, and which don't? There's no easy way to do
this.

ChrisA


More information about the Python-ideas mailing list