On this page
copyreg.constructor
Prev: copyreg.clear_extension_cache | Up: copyreg | Next: copyreg.pickle
Rel: copyreg.add_extension, copyreg.clear_extension_cache, copyreg.pickle, copyreg.remove_extension
Ref: docs.python.org — copyreg.constructor
Tags: #public #python3 #stdlib #copyreg
Import
import copyreg
from copyreg import constructor
Signature & Overview
copyreg.constructor(object)
copyreg.constructor() function.
Usage
import copyreg
# Legacy protocol-0 pickle hook marking a callable safe as a constructor
assert callable(copyreg.constructor)
Gotchas
- Obsolete in modern pickle protocols (2+): Kept only for legacy protocol-0 compatibility.
REPL Inspect
from copyreg import constructor
help(constructor)
Linked from
Related notes
- tuts/python3/stdlib_module/copyreg/add_extension Linked here; links to this page; shared tags: #copyreg, #stdlib
- tuts/python3/stdlib_module/copyreg/clear_extension_cache Linked here; links to this page; shared tags: #copyreg, #stdlib
- tuts/python3/stdlib_module/copyreg/pickle Linked here; links to this page; shared tags: #copyreg, #stdlib
- tuts/python3/stdlib_module/copyreg/remove_extension Linked here; links to this page; shared tags: #copyreg, #stdlib
- tuts/python3/stdlib_module/copyreg Linked here; 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