def max(*L): """ Returns the maximum of the inputs, where the maximum of the empty list is ``-infinity``. EXAMPLES:: sage: from sage.rings.padics.misc import max sage: max() -Infinity sage: max(2,3) 3 """ if len(L) == 1 and isinstance(L[0], (list, tuple)): L = L[0] try: return python_max(L) except ValueError: return -infinity
def max(*L): r""" Return the maximum of the inputs, where the maximum of the empty list is `-\infty`. EXAMPLES:: sage: from sage.rings.padics.misc import max sage: max() -Infinity sage: max(2,3) 3 """ if len(L) == 1 and isinstance(L[0], (list, tuple)): L = L[0] try: return python_max(L) except ValueError: return -infinity