$48 GRAYBYTE WORDPRESS FILE MANAGER $19

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/python37/lib64/python3.7/site-packages/numpy/

HOME
Current File : /opt/alt/python37/lib64/python3.7/site-packages/numpy//_globals.py
"""
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

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
13 Aug 2025 1.05 AM
root / 996
0755
__pycache__
--
31 Aug 2024 3.40 AM
root / root
0755
compat
--
31 Aug 2024 3.40 AM
root / root
0755
core
--
31 Aug 2024 3.40 AM
root / root
0755
distutils
--
31 Aug 2024 3.40 AM
root / root
0755
doc
--
31 Aug 2024 3.40 AM
root / root
0755
fft
--
31 Aug 2024 3.40 AM
root / root
0755
lib
--
31 Aug 2024 3.40 AM
root / root
0755
linalg
--
31 Aug 2024 3.40 AM
root / root
0755
ma
--
31 Aug 2024 3.40 AM
root / root
0755
matrixlib
--
31 Aug 2024 3.40 AM
root / root
0755
polynomial
--
31 Aug 2024 3.40 AM
root / root
0755
random
--
31 Aug 2024 3.40 AM
root / root
0755
testing
--
31 Aug 2024 3.40 AM
root / root
0755
tests
--
31 Aug 2024 3.40 AM
root / root
0755
__config__.py
1.14 KB
25 Apr 2023 2.38 AM
root / root
0644
__init__.py
6.127 KB
25 Apr 2023 2.30 AM
root / root
0644
_distributor_init.py
0.323 KB
25 Apr 2023 2.30 AM
root / root
0644
_globals.py
1.808 KB
25 Apr 2023 2.30 AM
root / root
0644
_import_tools.py
12.945 KB
25 Apr 2023 2.30 AM
root / root
0644
add_newdocs.py
222.856 KB
25 Apr 2023 2.30 AM
root / root
0644
ctypeslib.py
14.325 KB
25 Apr 2023 2.30 AM
root / root
0644
dual.py
1.82 KB
25 Apr 2023 2.30 AM
root / root
0644
matlib.py
9.359 KB
25 Apr 2023 2.30 AM
root / root
0644
setup.py
0.877 KB
25 Apr 2023 2.30 AM
root / root
0644
version.py
0.255 KB
25 Apr 2023 2.38 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF