Get Attribute
Description
Allows to access attributes from the object. get("foo")
will try to return self._foo
if it exists.
Usage
Config.get(what)
Arguments
-
what
str
- Name of the attribute (without leading underscore).
Return
Whatever is stored on the attribute.
Raises
-
TypeError
: If argumentwhat
is not str. -
ValueError
: If the argument_{what}
does not exist.