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 — Add wrapcol and ignorechars parameters for other Base XX codecs · Issue #146431 · python/cpython

Add wrapcol and ignorechars parameters for other Base XX codecs #146431

New issue
Copy link
New issue
Copy link
Closed
Closed
Add wrapcol and ignorechars parameters for other Base XX codecs#146431
Copy link
Labels
3.15bugs and security fixesbugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement

Description

@serhiy-storchaka
serhiy-storchaka
opened on Mar 25, 2026
Issue body actions

Feature or enhancement

Ascii85 codec supported parameters wrapcol (in encoder) and ignorechars (in decoder) from the beginning. Base64 codec got them in #143214, because Base64 is often used in multiline form. But the paragraphs in (RFC 4648)[https://datatracker.ietf.org/doc/html/rfc4648] which allow producing multiline encoded data and allow ignoring newlines and other non-alphabet characters are not Base64 specific. They are applicable to other standard codecs. So, it would be worth to add corresponding options for Base32 and Base16 codecs. Since all of them are now implemented in C, they can share implementation.

The only codecs left are Base85 (non-Ascii85) and Z85, which are specified without mentioning multiline form or ignoring non-aplhabet characters. But it is easy to add this feature for them too.

Linked PRs

  • gh-146431: Add the wrapcol and ignorechars parameters for more Base XX codec #146434

Activity

  1. serhiy-storchaka
    added
    type-featureA feature request or enhancementA feature request or enhancement
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    3.15bugs and security fixesbugs and security fixes
    on Mar 25, 2026
  2. serhiy-storchaka
    added 3 commits that reference this issue on Mar 25, 2026

    pythongh-146431: Add the wrapcol and ignorechars parameters for more …

    ea2c65d

    pythongh-146431: Add the wrapcol and ignorechars parameters for more …

    c88fb7a

    gh-146431: Add the wrapcol and ignorechars parameters for more Base X…

    42825e6
  3. serhiy-storchaka
    closed this as completedon Apr 1, 2026
  4. clin1234
    added a commit that references this issue on Apr 16, 2026

    pythongh-146431: Add the wrapcol and ignorechars parameters for more …

    34046fb
  5. ljfp
    added a commit that references this issue on Apr 25, 2026

    pythongh-146431: Add the wrapcol and ignorechars parameters for more …

    c969fc0
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

    3.15bugs and security fixesbugs and security fixesstdlibStandard 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.