On this page
getopt.error
Up: getopt | Next: getopt.getopt
Rel: getopt.getopt, getopt.GetoptError, getopt.gnu_getopt
Ref: docs.python.org โ getopt.error
Tags: #public #python3 #stdlib #getopt
Import
import getopt
from getopt import error
Signature & Overview
getopt.error(msg, opt='')
getopt.error class.
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 getopt
assert getopt.error is getopt.GetoptError
Gotchas
- Alias for
getopt.GetoptError.
REPL Inspect
from getopt import error
help(error)
Linked from
Related notes
- tuts/python3/stdlib_module/getopt/getopt Linked here; links to this page; shared tags: #getopt, #stdlib
- tuts/python3/stdlib_module/getopt/GetoptError Linked here; links to this page; shared tags: #getopt, #stdlib
- tuts/python3/stdlib_module/getopt/gnu_getopt Linked here; links to this page; shared tags: #getopt, #stdlib
- tuts/python3/stdlib_module/getopt links to this page; shared tags: #stdlib
- tuts/c/stdlib shared tags: #stdlib
- tuts/c/stdlib/assert shared tags: #stdlib
- tuts/c/stdlib/assert/assert shared tags: #stdlib
- tuts/c/stdlib/assert/static_assert shared tags: #stdlib
- tuts/c/stdlib/ctype shared tags: #stdlib
- tuts/c/stdlib/ctype/isalpha shared tags: #stdlib