|
|
|
@ -50,55 +50,45 @@ __all__ = ['add', 'sub', 'mul', 'truediv', 'floordiv', 'mod', 'eq', 'ne', 'lt',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def MakeTuple(*elts): # pragma: no cover
|
|
|
|
|
"""Tuple builder."""
|
|
|
|
|
"""Tuple builder.""" # 创建元组的构造函数
|
|
|
|
|
raise RuntimeError('This operation is not meant to be called directly.')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def make_dict(key, value): # pragma: no cover
|
|
|
|
|
"""Dict builder."""
|
|
|
|
|
"""Dict builder.""" # 创建字典的构造函数
|
|
|
|
|
raise RuntimeError('This operation is not meant to be called directly.')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def make_list(*elts): # pragma: no cover
|
|
|
|
|
"""List builder."""
|
|
|
|
|
"""List builder.""" # 创建列表的构造函数
|
|
|
|
|
raise RuntimeError('This operation is not meant to be called directly.')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def make_slice(*elts): # pragma: no cover
|
|
|
|
|
"""Slice builder."""
|
|
|
|
|
"""Slice builder.""" # 创建切片的构造函数
|
|
|
|
|
raise RuntimeError('This operation is not meant to be called directly.')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def make_range(*elts): # pragma: no cover
|
|
|
|
|
"""Range tuple builder."""
|
|
|
|
|
"""Range tuple builder.""" # 创建范围元组的构造函数
|
|
|
|
|
raise RuntimeError('This operation is not meant to be called directly.')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def switch(cond, tb, fb): # pragma: no cover
|
|
|
|
|
"""Switch statement, returns one of the two values."""
|
|
|
|
|
"""Switch statement, returns one of the two values.""" # 返回两个值中的一个的开关语句
|
|
|
|
|
raise RuntimeError('This operation is not meant to be called directly.')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def hasnext(it): # pragma: no cover
|
|
|
|
|
"""Hasnext function."""
|
|
|
|
|
"""Hasnext function.""" # 判断是否有下一个元素的函数
|
|
|
|
|
raise RuntimeError('This operation is not meant to be called directly.')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def to_array(x):
|
|
|
|
|
"""The to_array function."""
|
|
|
|
|
"""The to_array function.""" # 将输入转换为数组的函数
|
|
|
|
|
raise RuntimeError('This operation is not meant to be called directly.')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def not_contains(x): # pragma: no cover
|
|
|
|
|
"""Not in function."""
|
|
|
|
|
"""Not in function.""" # 判断元素是否不在集合中的函数
|
|
|
|
|
raise RuntimeError('This operation is not meant to be called directly.')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def while_cond(x): # pragma: no cover
|
|
|
|
|
"""Not in function."""
|
|
|
|
|
"""Not in function.""" # 判断条件是否成立的函数
|
|
|
|
|
raise RuntimeError('This operation is not meant to be called directly.')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def bool_(x): # pragma: no cover
|
|
|
|
|
"""judge true function."""
|
|
|
|
|
"""judge true function.""" # 判断一个值是否为真值的函数
|
|
|
|
|
raise RuntimeError('This operation is not meant to be called directly.')
|
|
|
|
|