Message299703
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? |
|
Date |
User |
Action |
Args |
2017-08-03 12:34:05 | Guillaume Sanchez | set | recipients:
+ 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:04 | Guillaume Sanchez | set | messageid: <1501763644.97.0.65696881264.issue30717@psf.upfronthosting.co.za> |
2017-08-03 12:34:04 | Guillaume Sanchez | link | issue30717 messages |
2017-08-03 12:34:04 | Guillaume Sanchez | create | |
|