None of them look particularly ugly to me, and I’m not clear how they’d look better with the proposed changes. Also, it’s worth pointing out that all of the proposed changes are available alreday using the re
module. So to make a case for these changes, you need to show that splitting on (or finding) a list of values, is a very common need, and that it’s possible to implement it more efficiently than the regex equivalent. (And if you can do that, you might be better off implementing the equivalent optimisation in the re
module, as that would benefit more people).
2 Likes