On this page
posix.close
Prev: posix.chroot | Up: posix | Next: posix.closerange
Rel: posix.abort, posix.access, posix.chdir, posix.chflags
Ref: docs.python.org — posix.close
Tags: #public #python3 #stdlib #posix
Import
import posix
from posix import close
Signature & Overview
posix.close(fd)
Close a file descriptor.
Usage
import os
r, w = os.pipe()
os.close(r); os.close(w)
Gotchas
- Operates on raw integer fds: Import via
os.close.
REPL Inspect
from posix import close
help(close)
Linked from
Related notes
- tuts/python3/stdlib_module/posix/chroot Linked here; links to this page; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/closerange Linked here; links to this page; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/posix/abort Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/access Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chdir Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chflags Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chmod shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chown shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/confstr shared tags: #posix, #stdlib