René's URL Explorer Experiment


Title: gh-94991 Make `wave._wave_params` public -> `wave.wave_params` by f4hy · Pull Request #94992 · python/cpython · GitHub

Open Graph Title: gh-94991 Make `wave._wave_params` public -> `wave.wave_params` by f4hy · Pull Request #94992 · python/cpython

X Title: gh-94991 Make `wave._wave_params` public -> `wave.wave_params` by f4hy · Pull Request #94992 · python/cpython

Description: This namedtuple is the public interface for Wave_write.setparams, making this private does not allow users to create an input that is typechecked to Wave_write.setparams. If this were public users could call with more readable code such as: import wave with wave.open("test.wav", "wb") as wav_file: params = wave.wave_params( nchannels=1, sampwidth=2, framerate=16_000, nframes=0, comptype="NONE", compname="NONE", ) wav_file.setparams(params) rather than the less readable import wave with wave.open("test.wav", "wb") as wav_file: params = (1, 2, 16_000, 0, "NONE", "NONE") wav_file.setparams(params) This is even worse in a typed environment where the private type of wave._wave_params is the only way to call setparams which use of private values from the stdlib should be avoided. Issue: gh-94991

Open Graph Description: This namedtuple is the public interface for Wave_write.setparams, making this private does not allow users to create an input that is typechecked to Wave_write.setparams. If this were public users ...

X Description: This namedtuple is the public interface for Wave_write.setparams, making this private does not allow users to create an input that is typechecked to Wave_write.setparams. If this were public users ...

Opengraph URL: https://github.com/python/cpython/pull/94992

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:9509cc8a-beb0-f109-e08e-7512f3e467ae
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB6A6:320D53:38FC7D:4E5322:6AECCA12
html-safe-nonce8c18d8f0c566a5eeed16d44b3caa9422adaac04aee526d53f52bb4a9923d868b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNkE2OjMyMEQ1MzozOEZDN0Q6NEU1MzIyOjZBRUNDQTEyIiwidmlzaXRvcl9pZCI6IjcxNTk4MDI4MDg4NDI4OTc5MzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac2cba6a8a81e42b4461550304d21ee5e196f15d9134fd4d30687fdec920e0a73a
hovercard-subject-tagpull_request:1000220759
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/94992/files
twitter:imagehttps://avatars.githubusercontent.com/u/36440?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/36440?s=400&v=4
og:image:altThis namedtuple is the public interface for Wave_write.setparams, making this private does not allow users to create an input that is typechecked to Wave_write.setparams. If this were public users ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonedc0b519c5798dc1150b88dc4c06a8b9634d0069218dc04e469970e76aad74016
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasedb139f0bf57b59bf9a8c4abb0849924d6c6ca559
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/94992/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F94992%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F94992%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/94992/files
Reloadhttps://github.com/python/cpython/pull/94992/files
Reloadhttps://github.com/python/cpython/pull/94992/files
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.3k (2.3k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
f4hyhttps://github.com/f4hy
python:mainhttps://github.com/python/cpython/tree/main
f4hy:wave/make_wave_params_publichttps://github.com/f4hy/cpython/tree/wave/make_wave_params_public
Conversation 7 https://github.com/python/cpython/pull/94992
Commits 4 https://github.com/python/cpython/pull/94992/commits
Checks 0 https://github.com/python/cpython/pull/94992/checks
Files changed https://github.com/python/cpython/pull/94992/files
Please reload this pagehttps://github.com/python/cpython/pull/94992/files
gh-94991 Make wave._wave_params public -> wave.wave_params https://github.com/python/cpython/pull/94992/files#top
Show all changes 4 commits https://github.com/python/cpython/pull/94992/files
35cc786 Make `_wave_params` public -> `wave_params` f4hy Jul 18, 2022 https://github.com/python/cpython/pull/94992/commits/35cc78627299507497ce68a998246bc71691addb
1e1beaa 📜🤖 Added by blurb_it. blurb-it[bot] Jul 19, 2022 https://github.com/python/cpython/pull/94992/commits/1e1beaa255d95e15fd1b38f6b18b6027fce4ff26
c01cc8c add the now public wave_params to __all__ f4hy Jul 19, 2022 https://github.com/python/cpython/pull/94992/commits/c01cc8ca3767c5db68db0a49b7967cf31f00251d
3938ef3 add an alias to keep compatibility if anyone used the private type f4hy Jul 19, 2022 https://github.com/python/cpython/pull/94992/commits/3938ef3383198ade0c72f2872bdd158bd0337001
Clear filters https://github.com/python/cpython/pull/94992/files
Please reload this pagehttps://github.com/python/cpython/pull/94992/files
Please reload this pagehttps://github.com/python/cpython/pull/94992/files
wave.py https://github.com/python/cpython/pull/94992/files#diff-8e67a696f050c6abebc661b71a215e2c2bb8d0bb2f27ee2ba25adecc8b1b094c
2022-07-19-02-20-29.gh-issue-94991.kRGnFh.rst https://github.com/python/cpython/pull/94992/files#diff-5f513b367c8d5e86dccee0e1c1b76a4ba36c620cf98de68eacaa2c2db0ade769
Lib/wave.pyhttps://github.com/python/cpython/pull/94992/files#diff-8e67a696f050c6abebc661b71a215e2c2bb8d0bb2f27ee2ba25adecc8b1b094c
View file https://github.com/python/cpython/blob/3938ef3383198ade0c72f2872bdd158bd0337001/Lib/wave.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/94992/{{ revealButtonHref }}
https://github.com/python/cpython/pull/94992/files#diff-8e67a696f050c6abebc661b71a215e2c2bb8d0bb2f27ee2ba25adecc8b1b094c
https://github.com/python/cpython/pull/94992/files#diff-8e67a696f050c6abebc661b71a215e2c2bb8d0bb2f27ee2ba25adecc8b1b094c
Please reload this pagehttps://github.com/python/cpython/pull/94992/files
https://github.com/python/cpython/pull/94992/files#diff-8e67a696f050c6abebc661b71a215e2c2bb8d0bb2f27ee2ba25adecc8b1b094c
https://github.com/python/cpython/pull/94992/files#diff-8e67a696f050c6abebc661b71a215e2c2bb8d0bb2f27ee2ba25adecc8b1b094c
https://github.com/python/cpython/pull/94992/files#diff-8e67a696f050c6abebc661b71a215e2c2bb8d0bb2f27ee2ba25adecc8b1b094c
https://github.com/python/cpython/pull/94992/files#diff-8e67a696f050c6abebc661b71a215e2c2bb8d0bb2f27ee2ba25adecc8b1b094c
https://github.com/python/cpython/pull/94992/files#diff-8e67a696f050c6abebc661b71a215e2c2bb8d0bb2f27ee2ba25adecc8b1b094c
Misc/NEWS.d/next/Library/2022-07-19-02-20-29.gh-issue-94991.kRGnFh.rsthttps://github.com/python/cpython/pull/94992/files#diff-5f513b367c8d5e86dccee0e1c1b76a4ba36c620cf98de68eacaa2c2db0ade769
View file https://github.com/python/cpython/blob/3938ef3383198ade0c72f2872bdd158bd0337001/Misc/NEWS.d/next/Library/2022-07-19-02-20-29.gh-issue-94991.kRGnFh.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/94992/{{ revealButtonHref }}
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.