doc: Use super() in subclassed JSONEncoder examples#115565
doc: Use super() in subclassed JSONEncoder examples#115565encukou merged 1 commit intopython:mainfrom
Conversation
Replace calls to `json.JSONEncoder.default(self, obj)` simply by `super().default(obj)` within the examples of the documentation.
|
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 |
Replace calls to `json.JSONEncoder.default(self, obj)` by `super().default(obj)` within the examples of the documentation. (cherry picked from commit 647053f) Co-authored-by: Jan Max Meyer <jmm@phorward.de>
|
GH-116046 is a backport of this pull request to the 3.11 branch. |
Replace calls to `json.JSONEncoder.default(self, obj)` by `super().default(obj)` within the examples of the documentation. (cherry picked from commit 647053f) Co-authored-by: Jan Max Meyer <jmm@phorward.de>
|
GH-116047 is a backport of this pull request to the 3.12 branch. |
|
Thank you! |
|
|
|
The buildbot failures are intermittent, and unrelated. |
Replace calls to `json.JSONEncoder.default(self, obj)` by `super().default(obj)` within the examples of the documentation.
Replace calls to `json.JSONEncoder.default(self, obj)` by `super().default(obj)` within the examples of the documentation.
Replace calls to `json.JSONEncoder.default(self, obj)` by `super().default(obj)` within the examples of the documentation.
Replace calls to
json.JSONEncoder.default(self, obj)simply bysuper().default(obj)within the examples of the documentation.📚 Documentation preview 📚: https://cpython-previews--115565.org.readthedocs.build/