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

[stdlib] [NFC] Rename List.bytecount() to byte_length() #3897

Closed
wants to merge 4 commits into from

Conversation

martinvuyk
Copy link
Contributor

Rename List.bytecount() to byte_length() to keep consistency with all Stringlike types

@martinvuyk martinvuyk requested a review from a team as a code owner December 19, 2024 00:17
@soraros
Copy link
Contributor

soraros commented Dec 19, 2024

I think we might want to make the docstring a bit more elaborate to clarify, for example, that it is not the number of bytes allocated.

Copy link
Collaborator

@JoeLoser JoeLoser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before I sync this, do you mind adding a small changelog entry please since this is a public API? Thanks!

@JoeLoser
Copy link
Collaborator

!sync

@modularbot modularbot added the imported-internally Signals that a given pull request has been imported internally. label Jan 27, 2025
@skongum02 skongum02 deleted the branch modular:main January 29, 2025 18:59
@skongum02 skongum02 closed this Jan 29, 2025
@skongum02 skongum02 reopened this Jan 29, 2025
@skongum02 skongum02 changed the base branch from nightly to main January 29, 2025 20:36
@modularbot
Copy link
Collaborator

✅🟣 This contribution has been merged 🟣✅

Your pull request has been merged to the internal upstream Mojo sources. It will be reflected here in the Mojo repository on the main branch during the next Mojo nightly release, typically within the next 24-48 hours.

We use Copybara to merge external contributions, click here to learn more.

@modularbot modularbot added the merged-internally Indicates that this pull request has been merged internally label Feb 22, 2025
@modularbot modularbot added the merged-externally Merged externally in public mojo repo label Feb 22, 2025
@modularbot
Copy link
Collaborator

Landed in 871045c! Thank you for your contribution 🎉

@martinvuyk martinvuyk deleted the rename-list-bytecount branch February 22, 2025 12:15
modularbot pushed a commit that referenced this pull request Mar 25, 2025
…` (#54664)

[External] [stdlib] [NFC] Rename `List.bytecount()` to `byte_length()`

Rename `List.bytecount()` to `byte_length()` to keep consistency with
all Stringlike types.

Co-authored-by: martinvuyk <[email protected]>
Co-authored-by: Joe Loser <[email protected]>
Closes #3897
MODULAR_ORIG_COMMIT_REV_ID: bcb5da166f0490eaea10f88a45cf9023e8bb8f63
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
imported-internally Signals that a given pull request has been imported internally. merged-externally Merged externally in public mojo repo merged-internally Indicates that this pull request has been merged internally
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants