Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
9022177
gh-120713: normalize year with century for datetime.strftime
blhsing Jun 21, 2024
a1592e3
📜🤖 Added by blurb_it.
blurb-it[bot] Jun 21, 2024
48affbd
gh-120713: fixed pyconfig.h.in
blhsing Jun 21, 2024
2ff6c0b
Update 2024-06-21-06-37-46.gh-issue-120713.WBbQx4.rst
blhsing Jun 21, 2024
ab39dd9
Update datetimetester.py
blhsing Jun 21, 2024
b905a4e
Update datetimetester.py
blhsing Jun 21, 2024
b43858e
Update _pydatetime.py
blhsing Jun 21, 2024
6ca887e
gh-120713: format "%Y" with "%4d" using sprintf instead of replacing …
blhsing Jun 24, 2024
a9623c4
gh-120713: test that a 0-padded year with century is guaranteed
blhsing Jun 24, 2024
2fc1c6a
gh-120713: revised detection logics in Python
blhsing Jun 24, 2024
2c3252f
gh-120713: fixed test
blhsing Jun 24, 2024
9fd3d2d
gh-120713: use "%04ld" instead of "%04d" to avoid unnecessary int con…
blhsing Jun 24, 2024
e64780b
gh-120713: fixed scope for formatted year buffer
blhsing Jun 24, 2024
32026be
gh-120713: added #ifdef guard over formatted year buffer declaration
blhsing Jun 24, 2024
fed7657
gh-120713: fixed typo
blhsing Jun 24, 2024
7560a60
gh-120713: account for "%G"; increase buffer for formatted year to ma…
blhsing Jun 25, 2024
f5508ee
gh-120713: be pessimistic when cross-compiling
blhsing Jun 25, 2024
abc3d21
gh-120713: call time.strftime instead to obtain the proper ISO-8601 year
blhsing Jun 25, 2024
ff7de92
gh-120713: align comment
blhsing Jun 25, 2024
9c9e645
gh-120713: additional comment and formatting
blhsing Jun 25, 2024
0f8886d
gh-120713: fixed comment
blhsing Jun 25, 2024
2ff8cc5
gh-120713: streamlined C code with better error handling
blhsing Jun 26, 2024
637c341
gh-120713: release reference sooner
blhsing Jun 26, 2024
07327c5
gh-120713: release reference to year if created for %G
blhsing Jun 26, 2024
818d1f4
Update 2024-06-21-06-37-46.gh-issue-120713.WBbQx4.rst
blhsing Jun 26, 2024
7038c1d
gh-120713: made year as python string a variable separate from result…
blhsing Jun 27, 2024
2fb0262
gh-120713: skip 0-padding logics if year > 1000
blhsing Jun 27, 2024
96484f9
gh-120713: made python implementation skip 0-padding logics if year >…
blhsing Jun 27, 2024
6c2c169
gh-120713: made C check return exit code instead of calling exit
blhsing Jun 28, 2024
42244f4
removed inclusion of stdlib.h now that we don't call exit
blhsing Jun 28, 2024
af147f7
gh-120713: updated configure
blhsing Jun 28, 2024
40ae42b
gh-120713: updated configure
blhsing Jun 28, 2024
fc765d0
gh-120713: removed unnecessary comment
blhsing Jun 28, 2024
3cd21f0
made the method a link in the blurb
blhsing Jun 28, 2024
32cc992
Update configure.ac
blhsing Jun 28, 2024
c506568
gh-120713: renamed macro NORMALIZE_CENTURY; moved declarations of new…
blhsing Jun 28, 2024
5f8bf96
gh-120713: initialize strftime on declaration
blhsing Jun 28, 2024
07df016
gh-120713: added versionchanged info in the documentation
blhsing Jun 28, 2024
0588e38
gh-120713: switched to PyOS_snprintf; moved declarations closer to us…
blhsing Jun 28, 2024
e8bbd88
gh-120713: reverted addition of the versionchanged directive
blhsing Jun 28, 2024
2ca5af6
gh-120713: moved declarations closer to usage
blhsing Jun 28, 2024
451ebf1
gh-120713: initialize variables on declarations
blhsing Jun 28, 2024
25e4fa5
Update Lib/test/datetimetester.py
blhsing Jun 28, 2024
0656e21
Update Misc/NEWS.d/next/Library/2024-06-21-06-37-46.gh-issue-120713.W…
blhsing Jun 28, 2024
049a05b
Update Modules/_datetimemodule.c
blhsing Jun 28, 2024
a82bca4
gh-120713: moved initialization of strftime above the first goto to a…
blhsing Jun 28, 2024
492ecf9
Update Lib/test/datetimetester.py
blhsing Jun 28, 2024
7d8a9f1
gh-120713: comment on why year 1000 can go on the fast path for %G
blhsing Jun 28, 2024
455fa96
Update Modules/_datetimemodule.c
blhsing Jun 29, 2024
f299c20
Update Modules/_datetimemodule.c
blhsing Jun 29, 2024
fcc7c7f
Update Lib/_pydatetime.py
blhsing Jun 29, 2024
3069d62
Update Modules/_datetimemodule.c
blhsing Jun 29, 2024
e603132
gh-120713: use sizeof instead of a variable to determine the size of …
blhsing Jun 29, 2024
c54739b
gh-120713: use macro instead of sizeof
blhsing Jun 29, 2024
881dc1d
gh-120713: moved buffer declaration to the same scope as the ptoappen…
blhsing Jun 29, 2024
0cd5e27
gh-120713: fixed typo
blhsing Jun 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
📜🤖 Added by blurb_it.
  • Loading branch information
blurb-it[bot] authored Jun 21, 2024
commit a1592e3f98ba5f3ebc3a2f4922599f77eb3454f4
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
:func:`datetime.datetime.strftime` now 0-pads a year <= 999 for the format specifier ``%Y`` on Linux.