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 — Incorrect 3.15 what's new entry for `base64` module · Issue #155193 · python/cpython

Incorrect 3.15 what's new entry for base64 module #155193

New issue
Copy link
New issue
Copy link
Closed
Closed
Incorrect 3.15 what's new entry for base64 module#155193
Copy link
Labels
3.15bugs and security fixesbugs and security fixes3.16new features, bugs and security fixesnew features, bugs and security fixesdocsDocumentation in the Doc dirDocumentation in the Doc dir

Description

@Viicos
Viicos
opened on Aug 4, 2026
Issue body actions

Documentation

As per https://docs.python.org/3.15/whatsnew/3.15.html#base64:

Added the canonical parameter in b32decode(), b32hexdecode(), b64decode(), urlsafe_b64decode(), a85decode(), b85decode(), and z85decode(), to reject encodings with non-zero padding bits or other non-canonical forms. (Contributed by Gregory P. Smith in gh-146311.)

(Introduced in #146312).

However, urlsafe_b64decode() is the only one without the parameter:

cpython/Lib/base64.py

Line 167 in 30ac23e

def urlsafe_b64decode(s, *, padded=False):

Opening this issue as either:

  • The what's new entry needs to be fixed.
  • urlsafe_b64decode() needs to get this new parameter too.

Can open a PR once decided.

Linked PRs

  • gh-155193: Add missing canonical parameter to urlsafe_b64decode() #155197
  • gh-155193: Fix the *canonical* decoder lists in the 3.15 What's New and NEWS #156302
  • [3.15] gh-155193: Fix the *canonical* decoder lists in the 3.15 What's New and NEWS (GH-156302) #156370

Activity

  1. Viicos
    added
    docsDocumentation in the Doc dirDocumentation in the Doc dir
    on Aug 4, 2026
  2. github-project-automation
    added this to docs issueson Aug 4, 2026
  3. github-project-automation
    moved this to Todo in docs issueson Aug 4, 2026
  4. advitrocks9 commented on Aug 21, 2026

    @advitrocks9
    advitrocks9
    on Aug 21, 2026
    Contributor
    More actions

    One half of this is already settled by the release schedule: 3.15 is at rc1, so canonical can't be added to urlsafe_b64decode() there whatever main decides. The What's New entry lists it anyway, and it never had the parameter, urlsafe_b64decode() calls binascii.a2b_base64() with a fixed argument list rather than going through b64decode(), so GH-146312 never reached it.

    I can open the one-line docs fix for 3.15 plus the backport, and leave the question of adding the parameter in 3.16 to this issue.

  5. picnixz commented on Aug 22, 2026

    @picnixz
    picnixz
    on Aug 22, 2026
    Member
    More actions

    @gpshead What's your take about that here? Do you want a canonical one for urlsafe (do you believe it's important for 3.15?)

    One half of this is already settled by the release schedule: 3.15 is at rc1, so canonical can't be added to urlsafe_b64decode

    Strictly speaking, it can. If this is considered a bug, it simply can be added. You don't need to rebuild Python for that so such changes can be accepted if the RM gives their approval (cc @hugovk). OTOH, we can just remove it from the What's New entry (less possibility of breakage) and add it in 3.16 only (I don't know how hard it's actually to add it).

  6. gpshead commented on Aug 22, 2026

    @gpshead
    gpshead
    on Aug 22, 2026
    Member
    More actions

    it was an oversight, one function missed the addition of the parameter. removing it from the whats new entry is our process.

    we'd have needed to catch this the final beta to do otherwise as it's an API addition.

    Reacted by Bénédikt Tran
  7. picnixz
    added
    3.15bugs and security fixesbugs and security fixes
    3.16new features, bugs and security fixesnew features, bugs and security fixes
    on Aug 22, 2026
  8. advitrocks9
    added a commit that references this issue on Aug 23, 2026

    pythongh-155193: Drop base16 from the pythongh-146311 NEWS entry

    c5bf8b9
  9. hugovk
    added a commit that references this issue on Aug 25, 2026

    gh-155193: Fix the *canonical* decoder lists in the 3.15 What's New a…

    5f31aee
  10. hugovk
    closed this as completedon Aug 25, 2026
  11. hugovk
    added a commit that references this issue on Aug 25, 2026

    [3.15] gh-155193: Fix the *canonical* decoder lists in the 3.15 What'…

    747e518
  12. clin1234
    added a commit that references this issue on Aug 27, 2026

    pythongh-155193: Fix the *canonical* decoder lists in the 3.15 What's…

    4fcf430
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 fixes3.16new features, bugs and security fixesnew features, bugs and security fixesdocsDocumentation in the Doc dirDocumentation in the Doc dir

    Projects

    • docs issues
      Status
      Todo
      Show more project fields

    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.