Skip to content

(str|bytes).(r)find don't take kwargs #150148

@smiRaphi

Description

@smiRaphi

Feature or enhancement

Proposal:

'test'.find('e',end=3) # this currently just gives a "TypeError: str.find() takes no keyword arguments" same for the others
b'test2\x00garbage'.rfind(b'\0',start=4)

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancement
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions