python / python/cpython

Add customization to country code second-level domains in DefaultPolicy of lib http.cookiejar

未關閉
#135,567 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

stdlib type-feature
主要語言
Python
星號
77.2k
分支
36k
PR 合併指標
PR 指標待擷取

描述

Feature or enhancement

Proposal:

This is a feature request of

  • adding a "additional_country_code_slds" attribute to DefaultPolicy in lib http.cookiejar
  • updating the default list of country code slds, which is previously discussed in #135528

The idea is basically from @Zheaoli. yes I think hard code is never a good idea because it's not even possible to add all country code slds to the list, since every country has its unique naming strategy (or it could be incrediblely long). Just updating "well-known slds" is kind of meaningless, I think.

So I think we can make the sld list customizable, let users to set them in their specific scene.

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

#135529
#135528

Linked PRs
  • gh-135569

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

從 lib http.cookiejar 中的 DefaultPolicy 開始,然後閱讀討論 #135528 和 #135529,以及連結的 PR gh-135569。完成的標準是 DefaultPolicy 支援 additional_country_code_slds 自訂,且相關變更與測試涵蓋國家/地區代碼 SLD 的行為。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
python
領域
networking
Issue 類型
功能
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。