python / python/cpython

Update `str*time` to C11 format codes

オープン
#140,715 コメント 2 件 リアクション 3 件 担当者 1 名 GitHub で見る

@StanFromIreland がすでに取り組んでいます。

2025年10月28日 から。

docs stdlib tests type-feature
主要言語
Python
スター
77.2k
フォーク
36k
PR マージ指標
PR 指標を取得中

説明

Feature or enhancement

There are several things to do, these are already supported by strftime but some (support for a few was added recently but not documented) are not supported by strptime (e.g. %t is not supported).

  • Update docs, currently the table is a bit messy with non-standard format codes listed, i.e. %f, and quite a few codes are missing.
  • Refactor strftime tests, they were written when the format codes were not expected.
  • Complete strptime, e.g. %n.
  • Document that strptime collapses whitespace, %t an %n
  • Consider: Add an entry to What's New

I will be working on this and most likely extending this list.

Linked PRs
  • gh-140716
  • gh-140647
  • gh-123980
  • gh-144819
  • gh-144896
  • gh-145388
  • gh-145389
  • gh-145955

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。