This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author uwinx
Recipients alex, brett.cannon, georg.brandl, giampaolo.rodola, gregory.p.smith, rhettinger, santoso.wijaya, serhiy.storchaka, terry.reedy, tshepang, uwinx
Date 2021-01-03.14:23:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1609683800.95.0.352498603587.issue17343@roundup.psfhosted.org>
In-reply-to
Content
> 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 :)
History
Date User Action Args
2021-01-03 14:23:21uwinxsetrecipients: + uwinx, brett.cannon, georg.brandl, rhettinger, terry.reedy, gregory.p.smith, giampaolo.rodola, alex, santoso.wijaya, tshepang, serhiy.storchaka
2021-01-03 14:23:20uwinxsetmessageid: <1609683800.95.0.352498603587.issue17343@roundup.psfhosted.org>
2021-01-03 14:23:20uwinxlinkissue17343 messages
2021-01-03 14:23:20uwinxcreate