python / python/cpython

Consolidate `pathlib.PurePath.match()` and `full_match()`

未關閉
#139,282 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

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

描述

Whichever fool (me!) added pathlib.PurePath.full_match() should have given more consideration to adding an argument to match() instead of a new method. The behaviour isn't that different. The fact we have two very similar methods is a bit of a wart. It's hopefully not too late to rectify.

Linked PRs
  • gh-139311

貢獻指南

開啟貢獻指南

從這裡開始

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

研究方向

檢視 issue 中描述的 pathlib.PurePath.match() 和 full_match() API,然後檢查連結的 PR gh-139311,了解工作已移至何處。完成的標準是針對這兩個相似方法達成共識的整合,同時不讓目前的 API 不一致問題懸而未決。

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

評估

技術堆疊
python
領域
api
Issue 類型
重構
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
基本清楚
新手友好度
15/100

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

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