On this page
posix.stat_result
Prev: posix.geteuid | Up: posix | Next: posix.statvfs_result
Rel: posix.abort, posix.access, posix.chdir, posix.chflags
Ref: docs.python.org โ posix.stat_result
Tags: #public #python3 #stdlib #posix
Import
import posix
from posix import stat_result
Signature & Overview
posix.stat_result(iterable=(), /)
stat_result: Result from stat, fstat, or lstat.
Methods & Attributes
stat_result.count(self, value, /)โ Return number of occurrences of value.stat_result.index(self, value, start=0, stop=9223372036854775807, /)โ Return first index of value.
Usage
import os
assert isinstance(os.stat('.'), os.stat_result)
Gotchas
- Import via
os.stat_result.
REPL Inspect
from posix import stat_result
help(stat_result)
Linked from
Related notes
- tuts/python3/stdlib_module/posix/geteuid Linked here; links to this page; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/statvfs_result 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/chroot shared tags: #posix, #stdlib