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 eric.smith
Recipients andy.ye.jx, andyye, docs@python, eric.smith, steven.daprano
Date 2020-12-29.11:45:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1609242333.33.0.9307167106.issue42776@roundup.psfhosted.org>
In-reply-to
Content
'abcddd'.find('a', start=0) would appear to be allowed from the help text, but it isn't legal. This is because .find() does not allow keyword arguments.

It looks like find could be documented as
find(self, sub, start=None, end=None, /)

Although it doesn't look like any of the str methods use self in the documentation.

I'm reasonably sure None is correct as the default for start and end, but I suspect it's not universally true of str methods that None works as the default. So it wouldn't surprise me if not all of the str methods  can be expressed in python code.
History
Date User Action Args
2020-12-29 11:45:33eric.smithsetrecipients: + eric.smith, steven.daprano, docs@python, andy.ye.jx, andyye
2020-12-29 11:45:33eric.smithsetmessageid: <1609242333.33.0.9307167106.issue42776@roundup.psfhosted.org>
2020-12-29 11:45:33eric.smithlinkissue42776 messages
2020-12-29 11:45:33eric.smithcreate