python / python/cpython

Update `str*time` to C11 format codes

Abierto
#140,715 2 comentarios 3 reacciones 1 asignado Ver en GitHub

@StanFromIreland ya está trabajando en esto.

Desde el 28/10/2025.

docs stdlib tests type-feature
Lenguaje dominante
Python
Estrellas
77.2k
Forks
36k
Métricas de merge de PR
Métricas de PR pendientes

Descripción

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

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.