Skip to content

[3.14] gh-134837: Correct and improve base85 documentation for base64 module (GH-145843)#149743

Merged
serhiy-storchaka merged 4 commits into
python:3.14from
serhiy-storchaka:backport-e667d62-3.14
May 15, 2026
Merged

[3.14] gh-134837: Correct and improve base85 documentation for base64 module (GH-145843)#149743
serhiy-storchaka merged 4 commits into
python:3.14from
serhiy-storchaka:backport-e667d62-3.14

Conversation

@serhiy-storchaka
Copy link
Copy Markdown
Member

@serhiy-storchaka serhiy-storchaka commented May 12, 2026

…base64 and binascii modules (pythonGH-145843)

(cherry picked from commit e667d62)

Co-authored-by: David Huggins-Daines <[email protected]>
@serhiy-storchaka
Copy link
Copy Markdown
Member Author

@dhdaines, please look if anything more is needed for this backport.

There are no changes in the binascii module, because it only supports Base85 since 3.15. There are less other parameters, most important -- there is no pad parameter for Z85 encoder.

@dhdaines
Copy link
Copy Markdown
Contributor

Great! I will take a look a bit later. Given that there's no pad parameter and the default is False, the behaviour of the Z85 encoder is non-conforming (ZeroMQ specifies that Z85 data should always be padded to a multiple of 4 bytes input / 5 bytes output), so that may be worth noting in the documentation.

@dhdaines
Copy link
Copy Markdown
Contributor

A few minor changes to suggest, but nothing really crucial: serhiy-storchaka#25

@serhiy-storchaka serhiy-storchaka merged commit 9ad8a1b into python:3.14 May 15, 2026
48 checks passed
@miss-islington-app
Copy link
Copy Markdown

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

@serhiy-storchaka serhiy-storchaka deleted the backport-e667d62-3.14 branch May 15, 2026 17:12
@bedevere-app
Copy link
Copy Markdown

bedevere-app Bot commented May 15, 2026

GH-149893 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label May 15, 2026
serhiy-storchaka added a commit that referenced this pull request May 15, 2026
… module (GH-145843) (GH-149743) (GH-149893)

(cherry picked from commit e667d62)
(cherry picked from commit 9ad8a1b)

Co-authored-by: Serhiy Storchaka <[email protected]>
Co-authored-by: David Huggins-Daines <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants