python / python/cpython

Update `str*time` to C11 format codes

Aperta
#140,715 2 commenti 3 reazioni 1 assegnatario Vedi su GitHub

@StanFromIreland ci sta già lavorando.

Dal 28/10/2025.

docs stdlib tests type-feature
Lingua principale
Python
Stelle
77.2k
Fork
35.9k
Metriche di merge delle PR
Metriche PR in attesa

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.