lsst.afw
22.0.1-31-gd62ef0f05+23bd69c089
|
Public Member Functions | |
def | fromkeys (cls, iterable, value=None) |
def | pop (self, key, default=None) |
def | __repr__ (self) |
def | __eq__ (self, other) |
def | __call__ (cls, *args, **kwargs) |
Static Public Attributes | |
setdefault = MutableMapping.setdefault | |
update = MutableMapping.update | |
keys = Mapping.keys | |
values = Mapping.values | |
items = Mapping.items | |
A `dict`-like `~collections.abc.MutableMapping` for use when sharing a map between C++ and Python. For compatibility with C++, ``SimpleGenericMap`` has the following restrictions: - all keys must be of the same type - values must be built-in types or subclasses of `lsst.afw.typehandling.Storable`. Almost any user-defined class in C++ or Python can have `~lsst.afw.typehandling.Storable` as a mixin. As a safety precaution, `~lsst.afw.typehandling.Storable` objects that are added from C++ may be copied when you retrieve them from Python, making it impossible to modify them in-place. This issue does not affect objects that are added from Python, or objects that are always passed by :cpp:class:`shared_ptr` in C++. Parameters ---------- mapping : `collections.abc.Mapping`, optional iterable : iterable, optional dtype : `type`, optional The type of key the map accepts. Not required if ``mapping`` or ``iterable`` is provided. **kwargs Aside from the ``dtype`` keyword, a ``SimpleGenericMap`` takes the same input arguments as `dict`.
Definition at line 29 of file _SimpleGenericMap.py.
|
inherited |
Definition at line 135 of file _GenericMap.py.
|
inherited |
Definition at line 55 of file _GenericMap.py.
|
inherited |
Definition at line 49 of file _GenericMap.py.
def lsst.afw.typehandling._SimpleGenericMap.SimpleGenericMap.fromkeys | ( | cls, | |
iterable, | |||
value = None |
|||
) |
Definition at line 59 of file _SimpleGenericMap.py.
|
inherited |
Definition at line 106 of file _GenericMap.py.
|
staticinherited |
Definition at line 70 of file _GenericMap.py.
|
staticinherited |
Definition at line 68 of file _GenericMap.py.
|
staticinherited |
Definition at line 102 of file _GenericMap.py.
|
staticinherited |
Definition at line 103 of file _GenericMap.py.
|
staticinherited |
Definition at line 69 of file _GenericMap.py.