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 Guillaume Sanchez
Recipients Guillaume Sanchez, Socob, benjamin.peterson, ezio.melotti, lemburg, loewis, mrabarnett, r.david.murray, serhiy.storchaka, steven.daprano, terry.reedy, vstinner
Date 2017-08-03.12:34:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1501763644.97.0.65696881264.issue30717@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks for your consideration. I'm currently fixing what's been asked in the reviews.

> But it would be useful to provide also word and sentence iterators.

I'll gladly do that as well!

> I think emitting a pair (pos, substring) would be more useful.

That means emitting a pair like ((start, end), substr) ? Is it pythonic to return a structure like this?

For what it's worth, I don't like it, but I definitely understand the value of it. I'd prefer having two versions. One returning indexes, the other returning substrings.

But...

> Alternatively an iterator could emit slice objects.

I really like that. Do we have a clear common agreement or preference on any option?
History
Date User Action Args
2017-08-03 12:34:05Guillaume Sanchezsetrecipients: + Guillaume Sanchez, lemburg, loewis, terry.reedy, vstinner, benjamin.peterson, ezio.melotti, mrabarnett, steven.daprano, r.david.murray, serhiy.storchaka, Socob
2017-08-03 12:34:04Guillaume Sanchezsetmessageid: <1501763644.97.0.65696881264.issue30717@psf.upfronthosting.co.za>
2017-08-03 12:34:04Guillaume Sanchezlinkissue30717 messages
2017-08-03 12:34:04Guillaume Sanchezcreate