From 10743b0bcfa0905b15ccadfe164cfdb57ad6cf6a Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Tue, 28 Feb 2023 20:22:55 +0000 Subject: MAINT: switch min/max with amin/amax, and add them to html docs Closes gh-13877 --- numpy/core/numeric.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'numpy/core/numeric.py') diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index fbb284696..1687e2dbf 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -4,6 +4,7 @@ import operator import sys import warnings import numbers +import builtins import numpy as np from . import multiarray @@ -2023,7 +2024,7 @@ def binary_repr(num, width=None): binary = bin(num)[2:] binwidth = len(binary) outwidth = (binwidth if width is None - else max(binwidth, width)) + else builtins.max(binwidth, width)) warn_if_insufficient(width, binwidth) return binary.zfill(outwidth) @@ -2043,7 +2044,7 @@ def binary_repr(num, width=None): binary = bin(twocomp)[2:] binwidth = len(binary) - outwidth = max(binwidth, width) + outwidth = builtins.max(binwidth, width) warn_if_insufficient(width, binwidth) return '1' * (outwidth - binwidth) + binary -- cgit v1.2.1