Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-121645: Add PyBytes_Join() function#121646

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
vstinner merged 2 commits intopython:mainfromvstinner:bytes_join
Aug 30, 2024
Merged

Conversation

@vstinner
Copy link
Member

@vstinnervstinner commentedJul 12, 2024
edited by github-actionsbot
Loading

@vstinner
Copy link
MemberAuthor

@vstinner
Copy link
MemberAuthor

@serhiy-storchaka: Please review the updated PR. I tried to address most of your comments.

@vstinner
Copy link
MemberAuthor

@serhiy-storchaka: I addressed most of your comments, except of the one one the doc:

NULL which is treated as an empty string.

Copy link
Member

@serhiy-storchakaserhiy-storchaka left a comment

Choose a reason for hiding this comment

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

LGTM, but please discuss first the behavior for the NULL separator.

@vstinner
Copy link
MemberAuthor

@encukou: I updated the PR to address your review.

encukou reacted with heart emoji

@cdce8p
Copy link
Contributor

@vstinner This might need a merge / rebase after#122267.

@vstinner
Copy link
MemberAuthor

@vstinner This might need a merge / rebase after#122267.

Done.

cdce8p reacted with thumbs up emoji

@vstinner
Copy link
MemberAuthor

I createdcapi-workgroup/decisions#36

* Replace _PyBytes_Join() with PyBytes_Join().* Keep _PyBytes_Join() as an alias to PyBytes_Join().
@vstinner
Copy link
MemberAuthor

I createdcapi-workgroup/decisions#36

It was decided to reject NULL separator. I updated my PR to respect the C API Working Group decision.

I also rebased the PR to fix merge conflicts.

@erlend-aasland@encukou@serhiy-storchaka: Would you mind to review the updated PR?

@serhiy-storchaka
Copy link
Member

Please do not use rebase so later in the review. So I do not see difference with already reviewed code and need to re-read all from the start.

Last two days I have power only for 2 intervals of 2 hours per day, so new review may take a time.

erlend-aasland reacted with thumbs up emoji

@vstinner
Copy link
MemberAuthor

Please do not use rebase so later in the review.

Do you mean that rebasing on main is bad, or is squashing commits which is bad for review? Sorry, I will avoid squashing commits next time.

@serhiy-storchaka
Copy link
Member

Normally, I can find a link "changes since your last review". It is the best scenario.

If you rebased without squashing, I can still manually select recent commits. This is less convenient, and there is no guarantee that you did not modify previous commits.

If you squashed commits, all is lost. I do this only immediately after creating commit or pushing new changes, when there is a little chance that my previous change has been reviewed.

vstinner reacted with thumbs up emoji

Copy link
Member

@encukouencukou left a comment

Choose a reason for hiding this comment

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

LGTM!

I second Serhiy's request to not rebase CPython PRs.

erlend-aasland reacted with thumbs up emoji
@vstinnervstinnerenabled auto-merge (squash)August 30, 2024 12:32
@vstinnervstinner merged commit3d60dfb intopython:mainAug 30, 2024
@vstinnervstinner deleted the bytes_join branchAugust 30, 2024 12:57
@vstinner
Copy link
MemberAuthor

Merged, thanks for reviews.

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

Reviewers

@picnixzpicnixzpicnixz left review comments

@erlend-aaslanderlend-aaslanderlend-aasland left review comments

@encukouencukouencukou approved these changes

@serhiy-storchakaserhiy-storchakaserhiy-storchaka approved these changes

+1 more reviewer

@cdce8pcdce8pcdce8p left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

6 participants

@vstinner@cdce8p@serhiy-storchaka@encukou@picnixz@erlend-aasland

[8]ページ先頭

©2009-2025 Movatter.jp