On Sat, Feb 22, 2020, 5:29 PM Steve Jorgensen <ste...@stevej.name> wrote:
> ... Currently, it is necessary to specifically test whether a node is an > instance of `str` and stop drilling down in that case. One could say that's > a minor issue, but it's a minor issue that affects a lot of development > efforts and has do be worked around separately by each developer who > encounters it. ... > Can you show us before and after code so we can gauge how or if this improves things? I'm a bit skeptical that it does anything other than replace an instance check with a different check. In Java, one of the annoyances (to me) is that strings aren't iterable or subscriptable. I would fix that if I could, which is the opposite of what you propose for Python. --- Bruce >
_______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/M75MNOQYJLB53NMYKCIUIWK2MVKWFRIJ/ Code of Conduct: http://python.org/psf/codeofconduct/