ID EN
OS

supports_fd

Python 3.11

A set object indicating which functions in the os module permit specifying their path parameter as an open file descriptor on the local platform. Different platforms provide different features, and the underlying functionality Python uses to accept open file descriptors as path arguments is not available on all platforms Python supports.

Syntax

PYTHON
os.supports_fd

Examples

Example 1
PYTHON
os.chdir in os.supports_fd

See Also

set os os.chdir()