GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — base64.z85encode should have "pad" parameter · Issue #143103 · python/cpython

base64.z85encode should have "pad" parameter #143103

New issue
Copy link
New issue
Copy link
Closed
Closed
base64.z85encode should have "pad" parameter#143103
Copy link
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement

Description

@haukex
haukex
opened on Dec 23, 2025
Issue body actions

Feature or enhancement

Proposal:

The documentation of z85encode links to the Z85 specification, which states:

The binary frame SHALL have a length that is divisible by 4 with no remainder.

Both a85encode and b85encode have a pad parameter that causes the input to be padded with b'\0' so its length is a multiple of 4 bytes before encoding.

z85encode does not have this parameter, but I think it should, to allow users to more easily meet the Z85 specification.

Adding the parameter is trivial and backcompat issues can be avoided by defaulting it to False (like the other two functions). Pull request coming in a few minutes.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

  • gh-143103: Added pad parameter to base64.z85encode #143106

Activity

  1. haukex
    added
    type-featureA feature request or enhancementA feature request or enhancement
    on Dec 23, 2025
  2. StanFromIreland
    added
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    on Dec 23, 2025
  3. haukex
    changed the title [-]base64.z85encode should have "pad" argument[/-] [+]base64.z85encode should have "pad" parameter[/+] on Dec 23, 2025
  4. serhiy-storchaka
    added a commit that references this issue on Dec 25, 2025

    gh-143103: Added pad parameter to base64.z85encode() (GH-143106)

    8d46f96
  5. serhiy-storchaka
    closed this as completedon Dec 25, 2025
  6. thunder-coding
    added a commit that references this issue on Feb 15, 2026

    pythongh-143103: Added pad parameter to base64.z85encode() (pythonGH-…

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.