Age | Commit message (Collapse) | Author | |
---|---|---|---|
28 hours | expand use of FileDescriptor and add FileDescriptorLike type alias | Helmut Grohne | |
When accepting file descriptors, non-int objects with a fileno method are now generally accepted. When returning a file descriptor, a FileDescriptor instance is now returned. | |||
2025-05-06 | FileDescriptor: add convenience wrapper for pidfd_open | Helmut Grohne | |
2024-06-11 | fix formatting and spelling errors | Helmut Grohne | |
No functional changes. | |||
2024-05-25 | add a FileDescriptor type | Helmut Grohne | |
It serves two main purposes. For one thing, it allows telling bare integers and file descriptors apart on a typing level similar to a NewType. For another it adds common methods to a file descriptor and enables closing it via a context manager. |