Skip to content

os.getresuid() and os.getresgid() are not present in MacOS/Python 3.14.5, but are documented #151427

@athornton

Description

@athornton

Documentation

The Python os module documentation documents os.getresuid() and os.getresgid().

However, these don't exist on Python 3.14.5 on MacOS, at least:

adam@m3-wired:~/git/collab-group$ python
Python 3.14.5 (main, May 10 2026, 10:21:34) [Clang 17.0.0 (clang-1700.6.4.2)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.getresgid()
Traceback (most recent call last):
  File "<python-input-1>", line 1, in <module>
    os.getresgid()
    ^^^^^^^^^^^^
AttributeError: module 'os' has no attribute 'getresgid'. Did you mean: 'getegid'?
>>> os.getresuid()
Traceback (most recent call last):
  File "<python-input-2>", line 1, in <module>
    os.getresuid()
    ^^^^^^^^^^^^
AttributeError: module 'os' has no attribute 'getresuid'. Did you mean: 'geteuid'?
>>>

They are present on Linux/Python 3.13.5.

It looks like the corresponding system calls do not exist on MacOS (at least, there's no man page for them, and there is for geteuid()). So I think "Availability" for those two should read "Unix, not WASI, not macOS" or something similar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir
    No fields configured for issues without a type.

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions