Message384280
> Perhaps the use case is already served by re.finditer()
def split_whitespace_ascii(s: str):
return (pt.group(0) for pt in re.finditer(r"[A-Za-z']+", s))
solution above does not cover all possible data and is incorrect for bytes-like objects.
writing regular expressions for different separators/data would be a quite overheadish, so the idea of one-case solution doesn't seem to go very far and requires a bigger change in code for different separators.
let's try to revive this one :) |
|
Date |
User |
Action |
Args |
2021-01-03 14:23:21 | uwinx | set | recipients:
+ uwinx, brett.cannon, georg.brandl, rhettinger, terry.reedy, gregory.p.smith, giampaolo.rodola, alex, santoso.wijaya, tshepang, serhiy.storchaka |
2021-01-03 14:23:20 | uwinx | set | messageid: <1609683800.95.0.352498603587.issue17343@roundup.psfhosted.org> |
2021-01-03 14:23:20 | uwinx | link | issue17343 messages |
2021-01-03 14:23:20 | uwinx | create | |
|