]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-137044: Support large limit values in getrlimit() and setrlimit() (GH-137338)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 7 Aug 2025 08:06:37 +0000 (11:06 +0300)
committerGitHub <noreply@github.com>
Thu, 7 Aug 2025 08:06:37 +0000 (11:06 +0300)
commitbaefaa6cba1d69efd2f930cdc56bca682c54b139
treee3fc609cec4dcfb9ab54a231fe82e5c059e55fd3
parent5be872350d562e6c9987b09ff4b7bda80a2f9cd0
gh-137044: Support large limit values in getrlimit() and setrlimit() (GH-137338)

* Return large limit values as positive integers instead of negative integers
  in resource.getrlimit().
* Accept large values and reject negative values (except RLIM_INFINITY)
  for limits in resource.setrlimit().
Lib/test/test_resource.py
Misc/NEWS.d/next/Library/2025-08-03-13-16-39.gh-issue-137044.0hPVL_.rst [new file with mode: 0644]
Modules/clinic/resource.c.h
Modules/resource.c