cpython icon indicating copy to clipboard operation
cpython copied to clipboard

gh-121645: Add PyBytes_Join() function

Open vstinner opened this issue 1 year ago • 2 comments

  • Issue: gh-121645

📚 Documentation preview 📚: https://cpython-previews--121646.org.readthedocs.build/

vstinner avatar Jul 12 '24 11:07 vstinner

cc @erlend-aasland @serhiy-storchaka

vstinner avatar Jul 12 '24 11:07 vstinner

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

vstinner avatar Jul 14 '24 08:07 vstinner

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

NULL which is treated as an empty string.

vstinner avatar Jul 17 '24 19:07 vstinner

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

vstinner avatar Jul 24 '24 12:07 vstinner

@vstinner This might need a merge / rebase after https://github.com/python/cpython/pull/122267.

cdce8p avatar Jul 25 '24 16:07 cdce8p

@vstinner This might need a merge / rebase after https://github.com/python/cpython/pull/122267.

Done.

vstinner avatar Jul 27 '24 19:07 vstinner

I created https://github.com/capi-workgroup/decisions/issues/36

vstinner avatar Jul 27 '24 19:07 vstinner

I created https://github.com/capi-workgroup/decisions/issues/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?

vstinner avatar Aug 27 '24 09:08 vstinner

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.

serhiy-storchaka avatar Aug 27 '24 10:08 serhiy-storchaka

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.

vstinner avatar Aug 27 '24 12:08 vstinner

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.

serhiy-storchaka avatar Aug 27 '24 12:08 serhiy-storchaka

Merged, thanks for reviews.

vstinner avatar Aug 30 '24 13:08 vstinner