Comment

Comment by tln

Sometimes I wish that python strings weren't directly iterable...

this article sums it up better than I ever could https://www.xanthir.com/b4wJ1

...then str.strip and variants could be cleanly and logically extended to allow this functionality, because passing a string and a sequence of strings would be distinguishable.

Alas, clean and logical function design can be hard to do late in a languages life.

PEP 593 and PEP 585 are clean and logical... glad to see that :)

parent tln 6 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton