(self, args)
return self._values.new_string().from_str(result)
ENVIRON$: get environment string.
ENVIRON$: get environment string.
ENVIRON$ : get environment string .
def environ_(self, args):
        """ENVIRON$: get environment string."""
        expr, = args
        if isinstance(expr, values.String):
            key = expr.to_str()
            if not key:
                raise error.BASICError(error.IFC)
            result = self._getenv(key)
        else:
            index = values.to_int(expr)
            error.range_check(1, 255, index)
            result = self._getenv_item(index-1)
        return self._values.new_string().from_str(result)
def environ_ ( self , args ) : expr , = args if isinstance ( expr , values . String ) : key = expr . to_str ( ) if not key : raise error . BASICError ( error . IFC ) result = self . _getenv ( key ) else : index = values . to_int ( expr ) error . range_check ( 1 , 255 , index ) result = self . _getenv_item ( index - 1 ) return self . _values . new_string ( ) . from_str ( result )