enum.pickle_by_global_name
Prev: enum.pickle_by_enum_name | Up: enum | Next: enum.property
Rel: enum.auto, enum.Enum, enum.EnumCheck, enum.EnumDict
Ref: docs.python.org — enum.pickle_by_global_name
Tags: #public #python3 #stdlib #enum
Import
import enum
from enum import pickle_by_global_name
Signature & Overview
enum.pickle_by_global_name(self, proto)
enum.pickle_by_global_name() function.
Usage
from enum import IntEnum, global_enum, pickle_by_global_name
@global_enum
class Code(IntEnum):
OK = 0
assert callable(pickle_by_global_name)
Gotchas
- Specialized pickling helper (Python 3.11+): Pickles
@global_enummembers by their module-level global name.
REPL Inspect
from enum import pickle_by_global_name
help(pickle_by_global_name)
Linked from
Related notes
- tuts/python3/stdlib_module/enum/pickle_by_enum_name Linked here; links to this page; shared tags: #enum, #stdlib
- tuts/python3/stdlib_module/enum/property Linked here; links to this page; shared tags: #enum, #stdlib
- tuts/python3/stdlib_module/enum/auto Linked here; shared tags: #enum, #stdlib
- tuts/python3/stdlib_module/enum/Enum Linked here; shared tags: #enum, #stdlib
- tuts/python3/stdlib_module/enum/EnumCheck Linked here; shared tags: #enum, #stdlib
- tuts/python3/stdlib_module/enum/EnumDict Linked here; shared tags: #enum, #stdlib
- tuts/python3/stdlib_module/enum links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/enum/EnumMeta shared tags: #enum, #stdlib
- tuts/python3/stdlib_module/enum/EnumType shared tags: #enum, #stdlib
- tuts/python3/stdlib_module/enum/Flag shared tags: #enum, #stdlib