copy.Error
Prev: copy.deepcopy | Up: copy | Next: copy.replace
Rel: copy.copy, copy.deepcopy, copy.replace
Ref: docs.python.org โ copy.Error
Tags: #public #python3 #stdlib #copy
Import
import copy
from copy import Error
Signature & Overview
copy.Error(...)
copy.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 copy
assert issubclass(copy.Error, Exception)
Gotchas
- Raised when a custom
__copy__/__deepcopy__fails or an uncopyable object is encountered.
REPL Inspect
from copy import Error
help(Error)
Linked from
Related notes
- tuts/python3/stdlib_module/copy/copy Linked here; links to this page; shared tags: #copy, #stdlib
- tuts/python3/stdlib_module/copy/deepcopy Linked here; links to this page; shared tags: #copy, #stdlib
- tuts/python3/stdlib_module/copy/replace Linked here; links to this page; shared tags: #copy, #stdlib
- tuts/python3/stdlib_module/copy 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