Skip to content

gh-89730: Fix the parameter name of SSLContext.set_outer_alpn_protocols() in the docs - #162203

Merged
ZeroIntensity merged 1 commit into
python:mainfrom
farisbasha:docs-ssl-outer-alpn-param
Nov 22, 2026
Merged

ZeroIntensity merged 1 commit into
python:mainfrom
farisbasha:docs-ssl-outer-alpn-param

Conversation

@farisbasha

@farisbasha farisbasha commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

SSLContext.set_outer_alpn_protocols() (new in 3.16, added in GH-160318) is defined in Lib/ssl.py as set_outer_alpn_protocols(self, alpn_protocols), the same parameter name as set_alpn_protocols(). The docs show it as set_outer_alpn_protocols(protocols) and refer to the protocols argument, so a call written from the docs, ctx.set_outer_alpn_protocols(protocols=[...]), raises TypeError.

This changes the signature line and the argument reference in Doc/library/ssl.rst to alpn_protocols, matching the code and the set_alpn_protocols() entry just above it. Docs only, so no NEWS entry.

The mismatch was found with an AI assistant that compares documented signatures with the Lib/ definitions; the change was then compared with Lib/ssl.py line 539.

…rotocols() in the docs

The method is defined as set_outer_alpn_protocols(self, alpn_protocols),
like set_alpn_protocols(), but the docs called the parameter protocols.
@bedevere-app bedevere-app Bot added the type-feature A feature request or enhancement label Nov 18, 2026
@bedevere-app bedevere-app Bot added docs Documentation in the Doc dir skip news awaiting review labels Nov 18, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Docs PRs Nov 18, 2026
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #35979907 | 📁 Comparing bdf7a38 against main (f5ec90d)

  🔍 Preview build  

1 file changed
± library/ssl.html

@StanFromIreland
StanFromIreland marked this pull request as draft November 18, 2026 20:09
@StanFromIreland

Copy link
Copy Markdown
Member

Drafting till CLA is signed on #162200.

@farisbasha

Copy link
Copy Markdown
Contributor Author

Thanks for the heads-up. The CLA bot on #162200 doesn't recognise the GitHub no-reply address used in the merge commit; I'm getting that address linked to my signed CLA so the backport can go through.

@ZeroIntensity
ZeroIntensity marked this pull request as ready for review November 22, 2026 21:22
@ZeroIntensity ZeroIntensity removed the type-feature A feature request or enhancement label Nov 22, 2026
@ZeroIntensity

Copy link
Copy Markdown
Member

This isn't being backported (since ECH is new in 3.16), so the GitHub noreply CLA doesn't need to block this.

@ZeroIntensity
ZeroIntensity merged commit 9c0a545 into python:main Nov 22, 2026
42 of 49 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Nov 22, 2026
@StanFromIreland

Copy link
Copy Markdown
Member

so the GitHub noreply CLA doesn't need to block this.

I worry the user not being able to sign the CLA sounds like it may just be an autonomous agent.

@ZeroIntensity

Copy link
Copy Markdown
Member

Yeah, valid. It doesn't matter too much here since this is a tiny docs change.

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

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants