Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-99726: Improves correctness of stat results for Windows, and uses faster API when available#102149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
zooba merged 13 commits intopython:mainfromzooba:gh-99726-2
Mar 16, 2023
Merged
Changes from1 commit
Commits
Show all changes
13 commits
Select commitHold shift + click to select a range
5187810
gh-99726: Improves correctness of stat results for Windows, and uses …
zoobaFeb 22, 2023
4f9695e
Few typos
zoobaFeb 22, 2023
00460d8
Whitespace
zoobaFeb 22, 2023
a01fb67
Add st_birthtime_ns and deprecate st_ctime instead of changing it
zoobaFeb 28, 2023
0314273
Merge remote-tracking branch 'cpython/main' into gh-99726-2
zoobaFeb 28, 2023
652dd19
Merge remote-tracking branch 'cpython/main' into gh-99726-2
zoobaMar 3, 2023
e2fa2a5
Update API
zoobaMar 3, 2023
23a4dcc
Remove unnecessary FileId check and fix extension check
zoobaMar 6, 2023
64cc626
Merge remote-tracking branch 'cpython/main' into gh-99726-2
zoobaMar 6, 2023
ce037f3
Merge remote-tracking branch 'cpython/main' into gh-99726-2
zoobaMar 9, 2023
a7c6394
Merge branch 'main' into gh-99726-2
zoobaMar 14, 2023
de11468
Store correct birthtime value
zoobaMar 14, 2023
d168950
Improve whatsnew
zoobaMar 14, 2023
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
PrevPrevious commit
Improve whatsnew
  • Loading branch information
@zooba
zooba committedMar 14, 2023
commitd168950a891b4cf0b46dae365c26e5c1e1030f20
15 changes: 11 additions & 4 deletionsDoc/whatsnew/3.12.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -304,10 +304,11 @@ os

* :func:`os.stat` and :func:`os.lstat` are now more accurate on Windows.
The ``st_birthtime`` field will now be filled with the creation time
of the file, and ``st_ctime`` now returns the last metadata change,
for consistency with other platforms. ``st_ino`` may now be up to 128
bits, depending on your file system, and ``st_rdev`` is always set to
zero rather than to incorrect values.
of the file, and ``st_ctime`` is deprecated but still contains the
creation time (but in the future will return the last metadata change,
for consistency with other platforms). ``st_dev`` may be up to 64 bits
and ``st_ino`` up to 128 bits depending on your file system, and
``st_rdev`` is always set to zero rather than incorrect values.
Both functions may be significantly faster on newer releases of
Windows. (Contributed by Steve Dower in :gh:`99726`.)

Expand DownExpand Up@@ -474,6 +475,12 @@ Deprecated
warning at compile time. This field will be removed in Python 3.14.
(Contributed by Ramvikrams and Kumar Aditya in :gh:`101193`. PEP by Ken Jin.)

* The ``st_ctime`` fields return by :func:`os.stat` and :func:`os.lstat` on
Windows are deprecated. In a future release, they will contain the last
metadata change time, consistent with other platforms. For now, they still
contain the creation time, which is also available in the new ``st_birthtime``
field. (Contributed by Steve Dower in :gh:`99726`.)

Pending Removal in Python 3.13
------------------------------

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp