diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-06-04 17:19:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-04 17:19:13 (GMT) |
commit | 2acbdc23ad4dd14b3b6ad22e06d6477dc57b0530 (patch) | |
tree | d328533c9795692917834ac3421481ba9c8d4574 /Misc | |
parent | 54023a63ccd273776f8b411cb904b1f88fc1e231 (diff) | |
download | cpython-2acbdc23ad4dd14b3b6ad22e06d6477dc57b0530.zip cpython-2acbdc23ad4dd14b3b6ad22e06d6477dc57b0530.tar.gz cpython-2acbdc23ad4dd14b3b6ad22e06d6477dc57b0530.tar.bz2 |
[3.13] gh-89928: Fix integer conversion of device numbers (GH-31794) (GH-120053)
Fix os.major(), os.minor() and os.makedev().
Support device numbers larger than 2**63-1.
Support non-existent device number (NODEV).
(cherry picked from commit 7111d9605f9db7aa0b095bb8ece7ccc0b8115c3f)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2022-03-10-16-47-57.bpo-45767.ywmyo1.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-03-10-16-47-57.bpo-45767.ywmyo1.rst b/Misc/NEWS.d/next/Library/2022-03-10-16-47-57.bpo-45767.ywmyo1.rst new file mode 100644 index 0000000..0cdf1e8 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2022-03-10-16-47-57.bpo-45767.ywmyo1.rst @@ -0,0 +1,3 @@ +Fix integer conversion in :func:`os.major`, :func:`os.minor`, and +:func:`os.makedev`. Support device numbers larger than ``2**63-1``. Support +non-existent device number (``NODEV``). |