On Oct 25, 2019, at 20:44, Ben Rudiak-Gould wrote:
>
> Nothing good can come of decomposing strings into Unicode code points.
Which is why Unicode defines extended graphemes clusters, which are the
intended approximation of human-language characters, and which can be made up
of multiple code p
Since this is Python 4000, where everything's made up and the points
don't matter...
I think there shouldn't be a char type, and also strings shouldn't be
iterable, or indexable by integers, or anything else that makes them
appear to be tuples of code points.
Nothing good can come of decomposing
On Oct 25, 2019, at 06:26, Serhiy Storchaka wrote:
>
> 25.10.19 15:53, Andrew Barnert via Python-ideas пише:
>> If you were designing a new Python-like language today, or if you had a time
>> machine back to the 90s, it would be a different story.
>
> Interesting, how far in past you will need
25.10.19 15:53, Andrew Barnert via Python-ideas пише:
If you were designing a new Python-like language today, or if you had a time
machine back to the 90s, it would be a different story.
Interesting, how far in past you will need to travel? Initially builtin
types did not have methods or prop
On Oct 25, 2019, at 01:34, Paul Moore wrote:
>
> On Thu, 24 Oct 2019 at 23:47, Andrew Barnert via Python-ideas
> wrote:
>> But again, I don’t think either of these is the reason Python strings being
>> iterable is a problem; I think it really is primarily about them being
>> iterables of strin
On Thu, 24 Oct 2019 at 23:47, Andrew Barnert via Python-ideas
wrote:
> But again, I don’t think either of these is the reason Python strings being
> iterable is a problem; I think it really is primarily about them being
> iterables of strings.
The *real* problem is that there's a whole load of
Andrew Barnert wrote:
A function to recursively flatten a nested list should only work on lists; it
should stop on a string, but it should also stop on a namedtuple or a 2x2
ndarray or a dict.
True, but then it still makes no difference whether iterating over
a string gives more strings or some