ParserDict¶
- class baseband.base.header.ParserDict(function)[source] [edit on github]¶
Bases:
object
Create a lazily evaluated dictionary of parsers, setters, or defaults.
Implemented as a non-data descriptor. When first called on an instance, it will create a dict under the name of itself in the instance’s
__dict__
, which means that any further attribute access will return that dict instead of this descriptor.- Parameters:
- functioncallable
Function that can be used to create a parser or setter, or get the default, based on a header keyword description. Typically one of
make_parser
,make_setter
, orget_default
.