Skip to content

gh-110941: Fix json.dump encoding dict subclasses as empty. - #111036

Open
aljungberg wants to merge 6 commits into
python:mainfrom
aljungberg:fix-issue-110941
Open

gh-110941: Fix json.dump encoding dict subclasses as empty.#111036
aljungberg wants to merge 6 commits into
python:mainfrom
aljungberg:fix-issue-110941

Conversation

@aljungberg

@aljungberg aljungberg commented Oct 18, 2023

Copy link
Copy Markdown

See #110941 for full details but the tldr is that the C optimised JSON encoder did not handle dict subclasses correctly and encoded them as empty if they did not put something into super()'s storage.

See python#110941 for full details but the tldr is that the C optimised JSON encoder did not handle `dict` subclasses correctly and encoded them as empty if they did not put something into `super()`'s storage.
@ghost

ghost commented Oct 18, 2023

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.
CLA signed

@bedevere-app

bedevere-app Bot commented Oct 18, 2023

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

Comment thread Modules/_json.c Outdated
Comment thread Modules/_json.c Outdated
Comment thread Modules/_json.c Outdated
aljungberg and others added 3 commits November 20, 2023 13:25
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Apr 14, 2026
@eendebakpt

Copy link
Copy Markdown
Contributor

@aljungberg Could you rebase the PR onto current main? I will then ping one of the devs to review

@github-actions github-actions Bot removed the stale Stale PR or inactive for long period of time. label May 12, 2026
Copilot AI lite review requested due to automatic review settings August 11, 2026 19:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review is ineligible. To be eligible to request a review, you need a paid Copilot license, or your organization must enable Copilot code review.

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.

4 participants