os.error
Prev: os.dup2 | Up: os | Next: os.fdopen
Rel: os.abort, os.access, os.chdir, os.chmod
Ref: docs.python.org โ os.error
Tags: #public #python3 #stdlib #os
Import
import os
from os import error
Signature & Overview
os.error(...)
Base class for I/O related errors.
Methods & Attributes
error.add_note(self, note, /)โ Add a note to the exceptionerror.with_traceback(self, tb, /)โ Set self.traceback to tb and return self.
Usage
import os
assert os.error is OSError
Gotchas
- Alias for built-in
OSError: CatchOSError(or specific subclasses likeFileNotFoundError,PermissionError) in modern Python 3.
REPL Inspect
from os import error
help(error)
Linked from
Related notes
- tuts/python3/stdlib_module/os/dup2 Linked here; links to this page; shared tags: #os, #stdlib
- tuts/python3/stdlib_module/os/fdopen Linked here; links to this page; shared tags: #os, #stdlib
- tuts/python3/stdlib_module/os Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/os/abort Linked here; shared tags: #os, #stdlib
- tuts/python3/stdlib_module/os/access Linked here; shared tags: #os, #stdlib
- tuts/python3/stdlib_module/os/chdir Linked here; shared tags: #os, #stdlib
- tuts/python3/stdlib_module/os/chmod Linked here; shared tags: #os, #stdlib
- tuts/python3/stdlib_module/os/chown shared tags: #os, #stdlib
- tuts/python3/stdlib_module/os/close shared tags: #os, #stdlib
- tuts/python3/stdlib_module/os/cpu_count shared tags: #os, #stdlib