]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-137044: Make resource.RLIM_INFINITY always positive (GH-137511)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 18 Aug 2025 16:28:56 +0000 (19:28 +0300)
committerGitHub <noreply@github.com>
Mon, 18 Aug 2025 16:28:56 +0000 (19:28 +0300)
commit0324c726dea702282a0300225e989b19ae23b759
treed4d8f9f4509b75fd9434be2d8012714d66930bb6
parent138ed6db9f89171983dc32af4e7ad2e73d46a940
gh-137044: Make resource.RLIM_INFINITY always positive (GH-137511)

It is now a positive integer larger larger than any limited resource value.
This simplifies comparison of the resource values.
Previously, it could be negative, such as -1 or -3, depending on platform.

Deprecation warning is emitted if the old negative value is passed.
Doc/library/resource.rst
Doc/whatsnew/3.15.rst
Lib/test/test_resource.py
Misc/NEWS.d/next/Library/2025-08-07-12-32-23.gh-issue-137044.abNoIy.rst [new file with mode: 0644]
Modules/resource.c