copyreg.remove_extension
Prev: copyreg.pickle | Up: copyreg
Rel: copyreg.add_extension, copyreg.clear_extension_cache, copyreg.constructor, copyreg.pickle
Ref: docs.python.org — copyreg.remove_extension
Tags: #public #python3 #stdlib #copyreg
Import
import copyreg
from copyreg import remove_extension
Signature & Overview
copyreg.remove_extension(module, name, code)
Unregister an extension code. For testing only.
Usage
import copyreg
# Pairs with copyreg.add_extension(module, name, code)
assert callable(copyreg.remove_extension)
Gotchas
- Raises
ValueErrorif the(module, name, code)triple is not registered.
REPL Inspect
from copyreg import remove_extension
help(remove_extension)
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/constructor 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 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