관리-도구
편집 파일: _globals.cpython-37.pyc
B ��Fd; � @ sj d Z ddlmZmZmZ dddgZde� kr4ed��dZG d d� de �Z G d d� de�ZG dd� d�Z 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. � )�division�absolute_import�print_function�ModuleDeprecationWarning�VisibleDeprecationWarning�_NoValue� _is_loadedz'Reloading numpy._globals is not allowedTc @ s e Zd ZdZdS )r a6 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. N)�__name__� __module__�__qualname__�__doc__� r r �A/opt/alt/python37/lib64/python3.7/site-packages/numpy/_globals.pyr ! s c @ s e Zd ZdZdS )r z�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. N)r r r r r r r r r - s c @ s e Zd ZdZdS )r z�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. N)r r r r r r r r r 8 s N)r � __future__r r r �__ALL__�globals�RuntimeErrorr �DeprecationWarningr �UserWarningr r r r r r �<module> s