U ã€C^K ã@s~dZddlmZmZmZdddgZdeƒkr4edƒ‚dZGd d„de ƒZ d e _ Gd d„de ƒZ d e _ Gd d „d eƒZeƒZdS)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@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__©rrú1/tmp/pip-install-6_kvzl1k/numpy/numpy/_globals.pyr sZnumpyc@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. Nr rrrrr.scs4eZdZdZdZ‡fdd„Zdd„Zdd„Z‡ZS) Ú _NoValueTypezÂSpecial keyword value. The instance of 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. Ncs|jstt|ƒ |¡|_|jS)N)Ú_NoValueType__instanceÚsuperrÚ__new__)Úcls©Ú __class__rrrCsz_NoValueType.__new__cCs |jdfS)Nrr©ÚselfrrrÚ __reduce__Jsz_NoValueType.__reduce__cCsdS)Nz rrrrrÚ__repr__Msz_NoValueType.__repr__) r r r r rrrrÚ __classcell__rrrrr;s  rN)r Ú __future__rrrZ__ALL__ÚglobalsÚ RuntimeErrorrÚDeprecationWarningrr Ú UserWarningrÚobjectrrrrrrÚsÿ