diff --git a/src/sage/misc/functional.py b/src/sage/misc/functional.py index 15f665b5df1..5c5e3c36e9b 100644 --- a/src/sage/misc/functional.py +++ b/src/sage/misc/functional.py @@ -1148,9 +1148,16 @@ def log(*args, **kwds): -Infinity sage: log(int(0), 1/2) +Infinity + + Check if sub-issue detailed in :issue:`38971` is fixed:: + + sage: log(6, base=0) + 0 + sage: log(e, base=0) + 0 """ base = kwds.pop('base', None) - if base: + if base is not None: args = args + (base,) if not args: raise TypeError("log takes at least 1 arguments (0 given)")