/opt/alt/python37/lib64/python3.7/site-packages/numpy
NameSizeModeActions
compat/-0755rm
core/-0755rm
distutils/-0755rm
doc/-0755rm
fft/-0755rm
lib/-0755rm
linalg/-0755rm
ma/-0755rm
matrixlib/-0755rm
polynomial/-0755rm
random/-0755rm
testing/-0755rm
tests/-0755rm
__pycache__/-0755rm
add_newdocs.py2282050644editdlrm
ctypeslib.py146690644editdlrm
dual.py18640644editdlrm
matlib.py95840644editdlrm
setup.py8980644editdlrm
version.py2610644editdlrm
_distributor_init.py3310644editdlrm
_globals.py18510644editdlrm
_import_tools.py132560644editdlrm
__config__.py17820644editdlrm
__init__.py62740644editdlrm
Edit: /opt/alt/python37/lib64/python3.7/site-packages/numpy/_globals.py (1851B)
""" Module defining global singleton classes. This module raises a RuntimeError if an attempt to reload it is made. In that way the identities of the classes defined here are fixed and will remain so even if numpy itself is reloaded. In particular, a function like the following will still work correctly after numpy is reloaded:: def foo(arg=np._NoValue): if arg is np._NoValue: ... That was not the case when the singleton classes were defined in the numpy ``__init__.py`` file. See gh-7844 for a discussion of the reload problem that motivated this module. """ from __future__ import division, absolute_import, print_function __ALL__ = [ 'ModuleDeprecationWarning', 'VisibleDeprecationWarning', '_NoValue' ] # Disallow reloading this module so as to preserve the identities of the # classes defined here. if '_is_loaded' in globals(): raise RuntimeError('Reloading numpy._globals is not allowed') _is_loaded = True class ModuleDeprecationWarning(DeprecationWarning): """Module deprecation warning. The nose tester turns ordinary Deprecation warnings into test failures. That makes it hard to deprecate whole modules, because they get imported by default. So this is a special Deprecation warning that the nose tester will let pass without making tests fail. """ pass class VisibleDeprecationWarning(UserWarning): """Visible deprecation warning. By default, python will not show deprecation warnings, so this class can be used when a very visible warning is helpful, for example because the usage is most likely a user bug. """ pass class _NoValue: """Special keyword value. This class may be used as the default value assigned to a deprecated keyword in order to check if it has been given a user defined value. """ pass