INNER CODE UNIT · Python
__init__
mongodb/mongo-c-driver · lldb_bson.py:229
def __init__(self, val: SBValue, idict: InternalDict | None = None) -> None:
self.__sbvalue = val
'The SBValue given for this object'
self.__children: list[ChildItem] = []
'The synthetic children associated with the value'
self.__value: T | None = None
'The decoded value, or ``None`` if it has not yet been decoded'
@property
def sbvalue(self) -> SBValue:
"""Obtain the SBValue associated with this display object"""
return self.__sbvalue
@property
def value(self) -> T:
"""Obtain the decoded BSON value"""
if self.__value is None:
self.__value = self.__parse__(self.sbvalue)