Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

aljungberg
Copy link

@aljungberg aljungberg commented Oct 18, 2023

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
Copy link

ghost commented Oct 18, 2023

All commit authors signed the Contributor License Agreement.
CLA signed

@bedevere-app
Copy link

bedevere-app bot commented Oct 18, 2023

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.

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>
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