Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String ufuncs replace #3

Open
wants to merge 14 commits into
base: string-ufuncs-find-rfind
Choose a base branch
from

Conversation

lysnikolaou
Copy link
Owner

No description provided.

This is a first commit that adds the infra needed for `replace` to
work:
* It adds `count` and `str_len`, two ufuncs needed to compute the
  length of the output buffer
* It adds a dummy `__replace_impl` ufunc that does nothing, but only
  works if the `out` kwarg is provided.
* It adds the `replace` function in `umath.py`, which uses `count`
  and `str_len` to create an output buffer and then calls
  `__replace_impl` with that.
@lysnikolaou lysnikolaou changed the base branch from main to string-ufuncs-find-rfind October 18, 2023 09:17
@lysnikolaou lysnikolaou force-pushed the string-ufuncs-find-rfind branch 4 times, most recently from d4d97eb to 671fa53 Compare November 2, 2023 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant