Parser.get#

Parser.get(key, default=None)[source]#

Retrieve a value from the internal data using a given key. If the key does not exist, return a default value.

Parameters:
keystr
The key to use for retrieving the corresponding value from

the internal data.

defaultAny

The value to return if the key does not exist in the internal data, defaults to None.

Returns:
value

The value associated with the provided key in the internal data, or the default value if the key does not exist.