]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-83714: Set os.statx().stx_mode to None if missing from stx_mask (#140484)
authorVictor Stinner <vstinner@python.org>
Thu, 23 Oct 2025 20:35:17 +0000 (22:35 +0200)
committerGitHub <noreply@github.com>
Thu, 23 Oct 2025 20:35:17 +0000 (22:35 +0200)
commit5d2edf72d25c2616f0e13d10646460a8e69344fa
tree75a8ea1425974014a86a00c860a9094fa6d4660c
parentf0291c3f2df8139870359c7d1d9a4858f19ee7bf
gh-83714: Set os.statx().stx_mode to None if missing from stx_mask (#140484)

* Set stx_mode to None if STATX_TYPE|STATX_MODE is missing from
  stx_mask.
* Enhance os.statx() tests.
* statx_result structure: remove atime_sec, btime_sec, ctime_sec and
  mtime_sec members. Compute them on demand when stx_atime,
  stx_btime, stx_ctime and stx_mtime are read.
* Doc: fix statx members sorting.
Doc/library/os.rst
Lib/test/test_os/test_os.py
Modules/posixmodule.c