summaryrefslogtreecommitdiff
path: root/numpy/_globals.py
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: Move ModuleDeprecationWarning and ModuleDeprecationWarningSebastian Berg2022-11-301-27/+1
| | | | Both should now live in the "exceptions" module.
* MAINT: Move set_module to numpy.core to use without C importSebastian Berg2022-11-241-10/+6
|
* MAINT: remove code specific to Python 2Dimitri Papadopoulos2022-10-241-4/+0
|
* MAINT, DOC: fix new typos detected by codespellDimitri Papadopoulos2022-01-121-1/+1
|
* DOC: Slightly extend to docs to note that we assume no-copy buffer protocolSebastian Berg2021-11-121-0/+3
|
* Apply suggestions from code reviewGagandeep Singh2021-11-101-1/+1
| | | Co-authored-by: Matti Picus <matti.picus@gmail.com>
* Addressed reviews and increased code coverageGagandeep Singh2021-11-041-0/+12
|
* Addressed reviewsczgdp18072021-09-041-1/+1
|
* Fixed linting issuesczgdp18072021-08-181-1/+1
|
* Made _CopyMode privateczgdp18072021-08-181-1/+23
|
* corrected linting issuesczgdp18072021-08-071-1/+1
|
* Shifted to CopyMode to np.array_apiczgdp18072021-08-071-23/+2
|
* Apply suggestions from code reviewGagandeep Singh2021-06-091-2/+2
| | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
* Fixed blank line linting issueczgdp18072021-06-081-1/+2
|
* enum.IntEnum -> enum.Enumczgdp18072021-06-081-1/+1
|
* Addressed reviews and PyArray_CopyConverter definedczgdp18072021-06-071-2/+4
|
* Added np.CopyModeczgdp18072021-06-051-1/+20
|
* MAINT: use super() as described by PEP 3135Mike Taves2021-03-191-1/+1
|
* DOC: improve description of `NoValue`.Ralf Gommers2021-01-291-2/+14
| | | | [ci skip]
* MAINT: Remove implicit inheritance from object class (#15236)Jon Dufresne2020-01-051-1/+1
| | | | | | | Inheriting from object was necessary for Python 2 compatibility to use new-style classes. In Python 3, this is unnecessary as there are no old-style classes. Dropping the object is more idiomatic Python.
* MAINT: Remove unnecessary 'from __future__ import ...' statementsJon Dufresne2020-01-031-2/+0
| | | | | As numpy is Python 3 only, these import statements are now unnecessary and don't alter runtime behavior.
* ENH: set correct __module__ for objects in numpy's public APIStephan Hoyer2018-11-131-3/+8
| | | | | | | | | | | | | Fixes GH-12271 Tests verify that everything in ``dir(numpy)`` either has ``__module__`` set to ``'numpy'``, or appears in an explicit whitelist of undocumented functions and exported bulitins. These should eventually be documented or removed. I also identified a handful of functions for which I had accidentally not setup dispatch for with ``__array_function__`` before, because they were listed under "ndarray methods" in ``_add_newdocs.py``. I guess that should be a lesson in trusting code comments :).
* ENH: Add a repr to np._NoValueEric Wieser2018-02-031-5/+19
| | | | | | This change _NoValue from a class to an instance, which is more inline with the builtin None. Fixes gh-8991, closes gh-9592
* MAINT: Use new-style classes on 2.7Eric Wieser2017-07-241-1/+1
| | | | Deliberately avoids tests, to prevent introducing a failure on old-style classes later.
* BUG: Make sure numpy globals keep identity after reload.Charles Harris2016-08-161-0/+62
Reloading currently causes problems because global classes defined in numpy/__init__.py change their identity (a is b) after reload. The solution taken here is to move those classes to a new non-reloadable module numpy/_globals and import them into numpy from there. Classes moved are ModuleDeprecationWarning, VisibleDeprecationWarning, and _NoValue. Closes #7844.