示例#1
0
def compss_delete_object(*obj):
    # type: (*typing.Any) -> typing.Union[bool, typing.List[bool]]
    """ Delete object.

    Removes a used object from the internal structures and calls the
    external python library (that calls the bindings-common)
    in order to request a its corresponding file removal.

    :param obj: Object/s to delete.
    :return: True if success. False otherwise.
    """
    if context.in_pycompss():
        if len(obj) == 1:
            return __delete_object__(obj[0])
        else:
            return [__delete_object__(i_obj) for i_obj in obj]
    else:
        return __dummy_compss_delete_object__(*obj)
示例#2
0
 def compss_delete_object(obj):
     # type: (...) -> bool
     return __dummy_compss_delete_object__(obj)
示例#3
0
文件: api.py 项目: mF2C/compss
 def compss_delete_object(obj):
     return __dummy_compss_delete_object__(obj)
示例#4
0
 def compss_delete_object(*obj):
     # type: (*...) -> bool or [bool]
     return __dummy_compss_delete_object__(*obj)