June 2, 2023
8:56 p.m.
On Sat, 3 Jun 2023 at 06:54, David Mertz, Ph.D. <david.mertz@gmail.com> wrote:
If we're talking PyPI, it would be nice to have:
unicode_categories = {"Zs": [...], "Ll": [...], ...}
For all the various categories. It would just take one pass through all the characters to generate it, but then every category would be fast to access later. On the other hand, it's a few lines of code with a lazy import. Probably not enough code to put on PyPI.
Question: What is the advantage of having this? What are the use-cases? ChrisA