Improve usage of `_setSSLError` in `_ssl.c`
オープン
@picnixz がすでに取り組んでいます。
2025年9月8日 から。
extension-modules
sprint
topic-SSL
type-refactor
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 35.9k
- PR マージ指標
- PR 指標を取得中
説明
Proposal:
Based on https://github.com/python/cpython/pull/137198#discussion_r2282082902, we should refactor _setSSLError as the errcode argument is redundant. In addition, we should:
- Change
_ssl__SSLContext_set_ciphers_implto use_setSSLErroras in_ssl__SSLContext_set_ciphersuites_impl. - If possible, ease the use of
_setSSLError. - If possible, ease how we indicate that a functionality is not implemented and document which exception is being actually raised (this needs to be synchronized with https://github.com/python/cpython/issues/138633).
Has this already been discussed elsewhere?
I have already discussed this feature proposal.
Links to previous discussion of this feature:
- https://github.com/python/cpython/pull/138269#discussion_r2328597995
- https://github.com/python/cpython/pull/138269#discussion_r2328703198
- https://github.com/python/cpython/pull/137198#discussion_r22820829
[!NOTE]
I will take care of this myself.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
評価
この issue はまだ評価されていません。