Message299708
On 03.08.2017 15:05, Guillaume Sanchez wrote:
>
> Guillaume Sanchez added the comment:
>
> I have a few criticism to do against that proto-PEP
>
> http://mail.python.org/pipermail/python-dev/2001-July/015938.html
>
> In particular, the fact that all those functions return an index prevents any state keeping.
If you want state keeping for iterating over multiple <indextype>
parts of the string, you can use an iterator.
The APIs were inspired by the standard string.find() APIs, that's
why they work on indexes and don't return Unicode strings. As
such, they serve a different use case than an iterator.
With the APIs, scanning would always start at the given index
in the string and move forward/backward to the start of the next
<indextype>. |
|
Date |
User |
Action |
Args |
2017-08-03 14:11:17 | lemburg | set | recipients:
+ lemburg, loewis, terry.reedy, vstinner, benjamin.peterson, ezio.melotti, mrabarnett, steven.daprano, r.david.murray, serhiy.storchaka, Socob, Guillaume Sanchez |
2017-08-03 14:11:17 | lemburg | link | issue30717 messages |
2017-08-03 14:11:17 | lemburg | create | |
|