GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Merge pull request #24234 from rgommers/avoid-min-max-starimport · numpy/numpy@c7da2ec

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • numpy
    • __init__.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎numpy/__init__.py‎

Copy file name to clipboardExpand all lines: numpy/__init__.py
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,12 @@
235235
__all__.extend(lib.__all__)
236236
__all__.extend(['linalg', 'fft', 'random', 'ctypeslib', 'ma'])
237237

238+
# Remove min and max from __all__ to avoid `from numpy import *` override
239+
# the builtins min/max. Temporary fix for 1.25.x/1.26.x, see gh-24229.
240+
__all__.remove('min')
241+
__all__.remove('max')
242+
__all__.remove('round')
243+
238244
# Remove one of the two occurrences of `issubdtype`, which is exposed as
239245
# both `numpy.core.issubdtype` and `numpy.lib.issubdtype`.
240246
__all__.remove('issubdtype')

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.