(self, propname: str, fallback: T.Optional[object], machine: MachineChoice)
Shared implementation for get_cross_property and get_external_property.
Shared implementation for get_cross_property and get_external_property.
Shared implementation for get_cross_property and get_external_property .
def __get_external_property_impl(self, propname: str, fallback: T.Optional[object], machine: MachineChoice) -> object:
        """Shared implementation for get_cross_property and get_external_property."""
        try:
            return self.interpreter.environment.properties[machine][propname]
        except KeyError:
            if fallback is not None:
                return fallback
            raise InterpreterException(f'Unknown property for {machine.get_lower_case_name()} machine: {propname}')
def __get_external_property_impl ( self , propname : str , fallback : T . Optional [ object ] , machine : MachineChoice ) -> object : try : return self . interpreter . environment . properties [ machine ] [ propname ] except KeyError : if fallback is not None : return fallback raise InterpreterException ( f'Unknown property for {machine.get_lower_case_name()} machine: {propname}' )