diff options
author | Helmut Grohne <helmut@subdivi.de> | 2024-05-25 10:22:21 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2024-05-25 10:22:21 +0200 |
commit | c5c9fe325782a790d563a0a8b1cf62a855a50d81 (patch) | |
tree | 16fb8834cd3e260615497faf03f0f78e2929c305 /examples/chhostname.py | |
parent | 992e877614476dd40abd11a82ffedc6e261dabdf (diff) | |
download | python-linuxnamespaces-c5c9fe325782a790d563a0a8b1cf62a855a50d81.tar.gz |
add a FileDescriptor type
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.
Diffstat (limited to 'examples/chhostname.py')
0 files changed, 0 insertions, 0 deletions