← 输入框|github.com|刷新
Skip to content

Add new APIs in string object  #2356

Open

Description

@Agent-Hellboy

there are 47 public methods in the CPython str object

['capitalize', 'casefold', 'center', 'count', 'encode', 'endswith', 'expandtabs', 'find', 'format', 'format_map', 'index', 

'isalnum', 'isalpha', 'isascii', 'isdecimal', 'isdigit', 'isidentifier', 'islower', 'isnumeric', 'isprintable', 'isspace', 'istitle', 

'isupper', 'join', 'ljust', 'lower', 'lstrip', 'maketrans', 'partition', 'removeprefix', 'removesuffix', 'replace', 'rfind', 

'rindex', 'rjust', 'rpartition', 'rsplit', 'rstrip', 'split', 'splitlines', 'startswith', 'strip', 'swapcase', 'title', 'translate', 'upper', 'zfill']

we have implemented 17 of them if you folks agree, I will try to implement the remaining methods

I have added a PR for join method today

Activity

  1. Agent-Hellboy commented on Oct 2, 2023

    @Agent-Hellboy
    ContributorAuthor

    Added a PR for 3 of them , will add 1 PR per 3-4 APIs

  2. certik commented on Oct 2, 2023

    @certik
    Contributor

    @Agent-Hellboy definitely, thank you. I recommend you first finish the PRs you sent, let's get them in. Then send more.

  3. Agent-Hellboy commented on Oct 3, 2023

    @Agent-Hellboy
    ContributorAuthor

    @Agent-Hellboy definitely, thank you. I recommend you first finish the PRs you sent, let's get them in. Then send more.

    surething

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions