Skip to content

gh-60729: Add missing versionadded/versionchanged tags to wave module - #159644

Merged
StanFromIreland merged 3 commits into
python:mainfrom
bdieterm:update-wave-docs
Oct 21, 2026
Merged

StanFromIreland merged 3 commits into
python:mainfrom
bdieterm:update-wave-docs

Conversation

@bdieterm

@bdieterm bdieterm commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

This change adds the missing versionadded info to the docs of method setformat in the wave module.

related:

versionadded tags added only for getformat
#153897

introduction of getformat and setformat in the wave module
#145931

@python-cla-bot

python-cla-bot Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@read-the-docs-community

read-the-docs-community Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

@picnixz picnixz changed the title Add versionadded tag to wave module setformat method gh-60729: Add versionadded tag to wave.setformat method Oct 19, 2026
@bedevere-app bedevere-app Bot added the type-feature A feature request or enhancement label Oct 19, 2026
@aisk

aisk commented Oct 20, 2026

Copy link
Copy Markdown
Member

WAVE_FORMAT_IEEE_FLOAT is added in the same PR https://github.com/python/cpython/pull/145931/changes, so please also add a versionadded directive for it.

And the setparams method adds support for 7 items tuple, so we should add a versionchanged directive for it.

@aisk aisk removed the type-feature A feature request or enhancement label Oct 20, 2026
@bedevere-app bedevere-app Bot added the type-feature A feature request or enhancement label Oct 20, 2026
@bdieterm bdieterm changed the title gh-60729: Add versionadded tag to wave.setformat method gh-60729: Add missing versionadded/versionchanged tags to wave module Oct 20, 2026
@bdieterm

Copy link
Copy Markdown
Contributor Author

@aisk
done

@aisk

aisk commented Oct 21, 2026

Copy link
Copy Markdown
Member

The other two constant except WAVE_FORMAT_IEEE_FLOAT is not added in 3.15, it's document is just added in 3.15, so please remove them.

And please don't using force push in the future in, as the DevGuide mentioned.

@bdieterm

Copy link
Copy Markdown
Contributor Author

The other two constant except WAVE_FORMAT_IEEE_FLOAT is not added in 3.15, it's document is just added in 3.15, so please remove them.

The constant WAVE_FORMAT_EXTENSIBLE was added in 3.12, so I keep the versionadded but with the updated version number. Or should this be a new PR/commit so that this can be backported to <= 3.14?

And please don't using force push in the future in, as the DevGuide mentioned.

Thanks, now I know about the DevGuide. As far as I understand, this is only to make it easier for reviewers to see what changed (see here).

@aisk

aisk commented Oct 21, 2026

Copy link
Copy Markdown
Member

The constant WAVE_FORMAT_EXTENSIBLE was added in 3.12, so I keep the versionadded but with the updated version number. Or should this be a new PR/commit so that this can be backported to <= 3.14?

versionadded:: 3.12 is fine, since #145931 wasn't backported to 3.14, this PR doesn't need to be either.

@aisk aisk added the needs backport to 3.15 bugs and security fixes label Oct 21, 2026
@bdieterm

Copy link
Copy Markdown
Contributor Author

versionadded:: 3.12 is fine, since #145931 wasn't backported to 3.14, this PR doesn't need to be either.

My question about the backport was for a different issue:
Currently, the docs for Python 3.12, 3.13, 3.14, 3.15, and main are missing versionadded:: 3.12 for the constant WAVE_FORMAT_EXTENSIBLE, which was introduced in Python 3.12.
This PR will only fix that for Python >= v3.15 (assuming a backport to 3.15).
After this PR is merged, the docs of 3.12, 3.13, and 3.14 will still miss versionadded:: 3.12 for the constant WAVE_FORMAT_EXTENSIBLE.

Comment thread Doc/library/wave.rst
@StanFromIreland
StanFromIreland enabled auto-merge (squash) October 21, 2026 17:41
@StanFromIreland
StanFromIreland merged commit 69d0f96 into python:main Oct 21, 2026
33 of 34 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Oct 21, 2026
@miss-islington-app

Copy link
Copy Markdown

Thanks @bdieterm for the PR, and @StanFromIreland for merging it 🌮🎉.. I'm working now to backport this PR to: 3.15.
🐍🍒⛏🤖

@bedevere-app

bedevere-app Bot commented Oct 21, 2026

Copy link
Copy Markdown

GH-160079 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Oct 21, 2026
@bdieterm
bdieterm deleted the update-wave-docs branch October 21, 2026 17:51
@aisk

aisk commented Oct 21, 2026

Copy link
Copy Markdown
Member

@bdieterm To clarify, WAVE_FORMAT_EXTENSIBLE was introduced in 3.12, but its documentation was only added in #145931 for 3.15. Backporting the relevant docs would take extra work since that PR also adds functionality. I'd prefer not to backport this, as most people read the latest docs, which show when it was added.

StanFromIreland added a commit that referenced this pull request Oct 21, 2026
…he `wave` docs (GH-159644) (#160079)

(cherry picked from commit 69d0f96)

Co-authored-by: bdieterm <119257544+bdieterm@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news type-feature A feature request or enhancement

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants