Title: Improve usage of `_setSSLError` in `_ssl.c` · Issue #138634 · python/cpython · GitHub
Open Graph Title: Improve usage of `_setSSLError` in `_ssl.c` · Issue #138634 · python/cpython
X Title: Improve usage of `_setSSLError` in `_ssl.c` · Issue #138634 · python/cpython
Description: Proposal: Based on #137198 (comment), we should refactor _setSSLError as the errcode argument is redundant. In addition, we should: Change _ssl__SSLContext_set_ciphers_impl to use _setSSLError as in _ssl__SSLContext_set_ciphersuites_impl...
Open Graph Description: Proposal: Based on #137198 (comment), we should refactor _setSSLError as the errcode argument is redundant. In addition, we should: Change _ssl__SSLContext_set_ciphers_impl to use _setSSLError as i...
X Description: Proposal: Based on #137198 (comment), we should refactor _setSSLError as the errcode argument is redundant. In addition, we should: Change _ssl__SSLContext_set_ciphers_impl to use _setSSLError as i...
Opengraph URL: https://github.com/python/cpython/issues/138634
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Improve usage of `_setSSLError` in `_ssl.c`","articleBody":"### Proposal:\n\nBased on https://github.com/python/cpython/pull/137198#discussion_r2282082902, we should refactor `_setSSLError` as the errcode argument is redundant. In addition, we should:\n\n- [ ] Change `_ssl__SSLContext_set_ciphers_impl` to use `_setSSLError` as in `_ssl__SSLContext_set_ciphersuites_impl`.\n- [ ] If possible, ease the use of `_setSSLError`.\n- [ ] 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).\n\n### Has this already been discussed elsewhere?\n\nI have already discussed this feature proposal.\n\n### Links to previous discussion of this feature:\n\n- https://github.com/python/cpython/pull/138269#discussion_r2328597995 \n- https://github.com/python/cpython/pull/138269#discussion_r2328703198\n- https://github.com/python/cpython/pull/137198#discussion_r22820829\n\n\u003e [!NOTE]\n\u003e I will take care of this myself.","author":{"url":"https://github.com/picnixz","@type":"Person","name":"picnixz"},"datePublished":"2025-09-08T07:53:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/138634/cpython/issues/138634"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ac010648-7aac-c49a-16e3-fe06e002bff6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E86C:333370:9F310F:DBB32F:696A2885 |
| html-safe-nonce | a4b94c836b68b63b899a478fe5be603d93b2b175b805e5dd42ec5d2d30c28d8d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODZDOjMzMzM3MDo5RjMxMEY6REJCMzJGOjY5NkEyODg1IiwidmlzaXRvcl9pZCI6IjEwNjM4MzY1MDE2MDc1OTAwMjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9e8f06e9e8e6227c121d976d7f53a1d1f6157868e192e2b24e713caab1eb682e |
| hovercard-subject-tag | issue:3393050458 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/138634/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7248d193c48fd0e14edaef59164b2d601bd4b93afa3108ad2cdcba8707291f07/python/cpython/issues/138634 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7248d193c48fd0e14edaef59164b2d601bd4b93afa3108ad2cdcba8707291f07/python/cpython/issues/138634 |
| og:image:alt | Proposal: Based on #137198 (comment), we should refactor _setSSLError as the errcode argument is redundant. In addition, we should: Change _ssl__SSLContext_set_ciphers_impl to use _setSSLError as i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | picnixz |
| hostname | github.com |
| expected-hostname | github.com |
| None | a1022f03e4f0d91ea173e4e5dac892c982e0588c62f1ce56121d755a320a3569 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f472b8e6c7b3fdd5d0354972a3f4c516289bf0be |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width