zmc
2023-12-22 9fdbf60165db0400c2e8e6be2dc6e88138ac719a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
U
O±dªã@sŠdZddlZddddgZdeƒkr*edƒ‚d    ZGd
d„deƒZd e_Gd d„de    ƒZ
d e
_Gd d„dƒZ e ƒZ Gdd„dej ƒZd e_dS)aI
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.
 
éNÚModuleDeprecationWarningÚVisibleDeprecationWarningÚ_NoValueÚ    _CopyModeÚ
_is_loadedz'Reloading numpy._globals is not allowedTc@seZdZdZdS)ra6Module 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.
 
    N©Ú__name__Ú
__module__Ú __qualname__Ú__doc__©r r úEd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\numpy/_globals.pyr!sÚnumpyc@seZdZdZdS)rzá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.
 
    Nrr r r r r/scs,eZdZdZdZ‡fdd„Zdd„Z‡ZS)Ú _NoValueTypeaWSpecial keyword value.
 
    The instance of this class may be used as the default value assigned to a
    keyword if no other obvious default (e.g., `None`) is suitable,
 
    Common reasons for using this keyword are:
 
    - A new keyword is added to a function, and that function forwards its
      inputs to another function or method which can be defined outside of
      NumPy. For example, ``np.std(x)`` calls ``x.std``, so when a ``keepdims``
      keyword was added that could only be forwarded if the user explicitly
      specified ``keepdims``; downstream array libraries may not have added
      the same keyword, so adding ``x.std(..., keepdims=keepdims)``
      unconditionally could have broken previously working code.
    - A keyword is being deprecated, and a deprecation warning must only be
      emitted when the keyword is used.
 
    Ncs|jstƒ |¡|_|jS)N)Ú_NoValueType__instanceÚsuperÚ__new__)Úcls©Ú    __class__r r rPsz_NoValueType.__new__cCsdS)Nz
<no value>r ©Úselfr r r Ú__repr__Vsz_NoValueType.__repr__)rr    r
r rrrÚ __classcell__r r rr r<s rc@s$eZdZdZdZdZdZdd„ZdS)raŠ
    An enumeration for the copy modes supported
    by numpy.copy() and numpy.array(). The following three modes are supported,
 
    - ALWAYS: This means that a deep copy of the input
              array will always be taken.
    - IF_NEEDED: This means that a deep copy of the input
                 array will be taken only if necessary.
    - NEVER: This means that the deep copy will never be taken.
             If a copy cannot be avoided then a `ValueError` will be
             raised.
 
    Note that the buffer-protocol could in theory do copies.  NumPy currently
    assumes an object exporting the buffer protocol will never do this.
    TFécCs.|tjkrdS|tjkrdSt|›dƒ‚dS)NTFz is neither True nor False.)rÚALWAYSÚ    IF_NEEDEDÚ
ValueErrorrr r r Ú__bool__rs
 
 
z_CopyMode.__bool__N)rr    r
r rrZNEVERrr r r r r]s
)r ÚenumZ__ALL__ÚglobalsÚ RuntimeErrorrÚDeprecationWarningrr    Ú UserWarningrrrÚEnumrr r r r Ú<module>s"þ