[issue42776] The string find method shows the problem

ye andy report at bugs.python.org
Tue Dec 29 01:09:04 EST 2020


ye andy <andy.ye.jx at gmail.com> added the comment:

When I say True here, I'm not talking about querying, I'm talking about
syntax, as far as I know, document is supposed to support keyword
arguments, but it doesn't

Steven D'Aprano <report at bugs.python.org> 于2020年12月29日周二 上午11:36写道:

>
> Steven D'Aprano <steve+python at pearwood.info> added the comment:
>
> # True
> data.find('a', 0)
>
> That will return 0, not True.
>
>
> # False
> data.find('a', start=0)
>
>
> And that will raise TypeError, not return False.
>
>
> What exactly are you reporting here? I have read your bug report, and
> looked at the screen shot, and I have no idea what problem you think you
> have found or what you want to change about the documentation.
>
> ----------
> nosy: +steven.daprano
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <https://bugs.python.org/issue42776>
> _______________________________________
>

----------
nosy: +andy.ye.jx

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42776>
_______________________________________


More information about the Python-bugs-list mailing list