python / python/cpython

Update `str*time` to C11 format codes

Đang mở
#140,715 2 bình luận 3 reaction 1 người được giao Xem trên GitHub

@StanFromIreland đang làm issue này rồi.

Từ ngày 28/10/2025.

docs stdlib tests type-feature
Ngôn ngữ chính
Python
Star
77.2k
Fork
36k
Chỉ số merge pull request
Chỉ số pull request đang chờ

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.