summaryrefslogtreecommitdiff
path: root/numpy/doc/subclassing.py
Commit message (Collapse)AuthorAgeFilesLines
* MAINT, DOC: move informational files from numpy.doc.*.py to their *.rst ↵Matti Picus2020-09-021-752/+0
| | | | | | | | | counterparts (#17222) * DOC: redistribute docstring-only content from numpy/doc * DOC: post-transition clean-up * DOC, MAINT: reskip doctests, fix a few easy ones
* DOC: Correct error in description of ndarray.baseRyan Soklaski2020-08-281-2/+2
| | | Found in subsection of Subclassing ndarray in python: Extra gotchas - custom __del__ methods and ndarray.base
* DOC: Add missing bracket (gh-16051)Chunlin2020-04-251-1/+1
| | | Add missing closing brackets, script to generate the list in the PR gh-16051.
* MAINT: Implement keyword-only arguments as syntaxEric Wieser2020-01-061-2/+2
| | | | Now that 2.7 is gone, there is no need to pop manually from kwarg dictionaries.
* 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-1/+0
| | | | | As numpy is Python 3 only, these import statements are now unnecessary and don't alter runtime behavior.
* DOC: add comment to explain `object.__new__`.Ralf Gommers2019-08-281-0/+1
| | | | [ci skip]
* DOC: fix issue with __new__ usage in subclassing doc.Ralf Gommers2019-08-281-1/+1
| | | | Closes gh-14386.
* HTTP -> HTTPS, and other linkrot fixesMike Toews2018-06-161-1/+1
|
* DOC: Fix minor typosluz.paz2018-03-301-1/+1
| | | Found via `codespell -q 3 -I ../numpy-whitelist.txt`
* More misc. typosluz.paz2018-01-041-1/+1
| | | Found via `codespell`
* DOC: BLD: fix lots of Sphinx warnings/errors.Ralf Gommers2017-06-101-1/+1
|
* DOC: update documentation allowing tuple of one in reduce, etc.Marten van Kerkwijk2017-05-171-0/+2
|
* BUG: Support nout == 0 and at methodEric Wieser2017-04-271-1/+4
|
* DOC,TST: clarify example of ndarray subclass using __array_ufunc__Marten van Kerkwijk2017-04-271-7/+6
| | | | Also add a few more tests of the same example for good measure.
* DOC: implement many smaller and bigger changes suggested in review.Marten van Kerkwijk2017-04-271-15/+18
|
* DOC: clarify use of super and getattrMarten van Kerkwijk2017-04-271-11/+36
|
* DOC: Describe __array_func__ in subclassingMarten van Kerkwijk2017-04-271-33/+148
| | | | | This includes the use of super everywhere, and in the brief description of __array_ufunc__ in the reference section.
* DOC: describe current implementation of __array_ufunc__.Marten van Kerkwijk2017-04-271-0/+4
|
* DOC: Removed broken linkJesse Thoren2017-02-231-6/+0
| | | | | Removed a broken link from the subclassing ndarray in the user guide. Removed credit to Pierre Gerard-Marchant, as this is out of place in the user guide. #8673
* DOC: change Numpy to NumPy in dosctrings and commentsPierre de Buyl2016-09-061-2/+2
| | | | The strings in error messages were left untouched
* DOC: Update subclassing doc regarding downstream compatgfyoung2016-08-111-0/+47
| | | | [ci skip]
* DOC: Fix more typos in docs and comments.Dongjoon Hyun2016-02-251-1/+1
|
* DOC: Use print only as function when print_function is imported from __future__gfyoung2015-12-191-18/+18
| | | | Closes gh-6863.
* STY: Giant whitespace cleanup.Charles Harris2013-08-181-1/+0
| | | | Now is as good a time as any with open PR's at a low.
* 2to3: Apply `print` fixer.Charles Harris2013-04-061-1/+1
| | | | | | | Add `print_function` to all `from __future__ import ...` statements and use the python3 print function syntax everywhere. Closes #3078.
* 2to3: Use absolute imports.Charles Harris2013-03-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new import `absolute_import` is added the `from __future__ import` statement and The 2to3 `import` fixer is run to make the imports compatible. There are several things that need to be dealt with to make this work. 1) Files meant to be run as scripts run in a different environment than files imported as part of a package, and so changes to those files need to be skipped. The affected script files are: * all setup.py files * numpy/core/code_generators/generate_umath.py * numpy/core/code_generators/generate_numpy_api.py * numpy/core/code_generators/generate_ufunc_api.py 2) Some imported modules are not available as they are created during the build process and consequently 2to3 is unable to handle them correctly. Files that import those modules need a bit of extra work. The affected files are: * core/__init__.py, * core/numeric.py, * core/_internal.py, * core/arrayprint.py, * core/fromnumeric.py, * numpy/__init__.py, * lib/npyio.py, * lib/function_base.py, * fft/fftpack.py, * random/__init__.py Closes #3172
* 2to3: Put `from __future__ import division in every python file.Charles Harris2013-03-011-0/+2
| | | | | | | | This should be harmless, as we already are division clean. However, placement of this import takes some care. In the future a script can be used to append new features without worry, at least until such time as it exceeds a single line. Having that ability will make it easier to deal with absolute imports and printing updates.
* fix a minor mistake in the previous commitDarren Dale2009-08-251-1/+1
|
* add comment about __array_prepare__ to 1.4 release notesDarren Dale2009-08-251-2/+2
|
* add support for __array_prepare__Darren Dale2009-08-231-13/+25
|
* Fixing internal linksMatthew Brett2009-07-231-1/+2
|
* After thinking, a more general understanding of slicing etcMatthew Brett2009-07-231-45/+71
|
* and more tiny doc typosMatthew Brett2009-07-231-2/+1
|
* Experimenting with __array_wrap__Matthew Brett2009-07-231-39/+106
|
* Tiny doc rearrangementMatthew Brett2009-07-231-4/+4
|
* Further extension of doctests for inheritanceMatthew Brett2009-07-231-55/+97
|
* Small edits to subclassing doc to make classes more explicitMatthew Brett2009-07-231-14/+14
|
* Moving more to doctests, more explanation of views, slicesMatthew Brett2009-07-231-95/+96
|
* Moving some examples to doctest format; removed debugging cruft in exampleMatthew Brett2009-07-221-53/+46
|
* Some clearer explanation of __array_finalize__Matthew Brett2009-07-221-45/+171
|
* Import documentation from doc wiki (part 2, work-in-progress docstrings, but ↵Pauli Virtanen2008-10-281-11/+12
| | | | they are still an improvement)
* reindenting prior to releaseJarrod Millman2008-09-021-41/+41
|
* Point to exampleMatthew Brett2008-08-271-3/+3
|
* Document on subclassingMatthew Brett2008-08-271-0/+291