8000 WIP: preparing for numpy 1.9.4 release by matthew-brett · Pull Request #6349 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content
< 8000 main id="js-repo-pjax-container" >

WIP: preparing for numpy 1.9.4 release #6349

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 150 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
150 commits
Select commit Hold shift + click to select a range
96b4349
REL: Release 1.9.0b1
juliantaylor Jun 8, 2014
301c470
Merge pull request #4849 from juliantaylor/master
juliantaylor Jul 7, 2014
b6903d7
Merge pull request #4871 from juliantaylor/linspace-version-doc
juliantaylor Jul 16, 2014
b03f241
BUG: add missing elementsize alignment check for simd reductions
juliantaylor Jul 8, 2014
52a9ff6
BUG: Use `np.where` in np.triu/np.tril, fixes #4859
jaimefrio Jul 10, 2014
2a87c3e
DOC: fix a typo and use TeX for plot labels
endolith Jul 15, 2014
029662b
Merge pull request #4872 from juliantaylor/backports-1.9
charris Jul 16, 2014
b583637
Merge pull request #4874 from juliantaylor/masked-sort-memory
charris Jul 16, 2014
e85290a
Merge pull request #4878 from nouiz:doc
juliantaylor Jul 17, 2014
99329f9
Merge pull request #4891 from juliantaylor/reduce-float-axis
juliantaylor Jul 18, 2014
6805122
Merge pull request #4882 from pv/fix-unpickle-latin1-crash
juliantaylor Jul 18, 2014
3c66315
Merge pull request #4883 from pv/fix-scalar-unpickle-py3
juliantaylor Jul 18, 2014
bd0a4f3
Merge pull request #4892 from rgommers/msvc10-fix
juliantaylor Jul 20, 2014
857c5e2
Merge pull request #4888 from pv/fix-bytes-encoding-unpickle
juliantaylor Jul 22, 2014
12f5f18
Merge pull request #4889 from juliantaylor/object-array-init
juliantaylor Jul 23, 2014
f94151d
Merge pull request #4866 from mhvk/ma/mvoid-initialisation
juliantaylor Jul 23, 2014
8198235
Merge pull request #4887 from ewmoore/conj_obj
juliantaylor Jul 23, 2014
33d6a33
Merge pull request #4908 from juliantaylor/win-alignment
charris Jul 27, 2014
8fa45b4
Merge pull request #4906 from juliantaylor/doc-update
charris Jul 27, 2014
da10796
Merge pull request #4910 from seberg/scalar-none-cmp
juliantaylor Jul 28, 2014
d3efa83
Merge pull request #4919 from juliantaylor/zeros_like_string
juliantaylor Jul 29, 2014
97bf5a7
BUG: Avoid type promotion in tril and triu.
yotam Jul 29, 2014
2acbfa7
MAINT: disable ufunc override for 1.9 release
juliantaylor Jul 29, 2014
9cd9c6c
Merge pull request #4920 from juliantaylor/ufunc-disable
charris Jul 30, 2014
3b89488
MAINT: also disable has_ufunc_attr
juliantaylor Jul 30, 2014
b5a56d6
Merge pull request #4925 from juliantaylor/ufunc-disable2
juliantaylor Jul 30, 2014
faa6fa0
REL: Release 1.9.0b2
juliantaylor Jul 30, 2014
118a1bb
Merge pull request #4930 from juliantaylor/charris-pep8-numpy-lib
charris Jul 31, 2014
16eef1e
DOC: Fix typo in _iotools.py docstring.
charris Aug 1, 2014
b1d6361
Merge pull request #4924 from charris/pep8-numpy-polynomial
juliantaylor Aug 4, 2014
6cafbfd
Merge pull request #4926 from juliantaylor/concatenate-error
juliantaylor Aug 4, 2014
f6a0b31
Merge pull request #4976 from juliantaylor/datetime-memleak
charris Aug 18, 2014
ccfd3bb
Merge pull request #4948 from charris/1.9-fix-typo-in-_iotools-docstring
juliantaylor Aug 23, 2014
d8af083
ENH: np.dot: better "matrices not aligned" message
larsmans Aug 23, 2014
d07c4c7
ENH: include shapes in "matrices not aligned" msg
larsmans Aug 23, 2014
181e72c
Merge branch 'gfortran-debug' into maintenance/1.9.x
juliantaylor Aug 24, 2014
3f5ae6d
Merge pull request #4989 from juliantaylor/percentile-fix
juliantaylor Aug 24, 2014
3f165d4
Merge pull request #4985 from larsmans/dot-errmsg
juliantaylor Aug 24, 2014
4475f1e
Merge pull request #4937 from charris/pep8-numpy-random
juliantaylor Aug 24, 2014
23825b6
Merge pull request #4996 from fdiary/gfortran-rpath
juliantaylor Aug 25, 2014
99391a6
Merge pull request #4997 from juliantaylor/unicode-init
juliantaylor Aug 26, 2014
eb8ea0d
Merge pull request #5005 from juliantaylor/use-tempdir-for-large-file
juliantaylor Aug 27, 2014
4344ffc
Merge pull request #5006 from dhomeier/ioconv_usecols
juliantaylor Aug 27, 2014
07626d8
TST: silence deprecation warnings for bad index calls
juliantaylor Aug 24, 2014
216bfb6
Merge pull request #5007 from juliantaylor/dep-silence
juliantaylor Aug 27, 2014
36d947f
REL: Release 1.9.0rc1
juliantaylor Aug 27, 2014
ef101b8
Merge pull request #5022 from seberg/structured-insert
juliantaylor Sep 2, 2014
d03f77e
Merge pull request #5020 from charris/disable-some-test-warnings
juliantaylor Sep 2, 2014
5c60b9b
Merge pull request #5035 from juliantaylor/fft-test
juliantaylor Sep 3, 2014
b95c7df
TST: skip clongdouble alignment checks on 32 bit arches
juliantaylor Sep 3, 2014
90cac3c
Merge pull request #5040 from juliantaylor/align-backport
charris Sep 3, 2014
859d2f1
Merge pull request #5048 from juliantaylor/subclass-test-fix
juliantaylor Sep 4, 2014
c796148
Merge pull request #5051 from juliantaylor/thread-test-fix
juliantaylor Sep 6, 2014
b5f5441
DOC: sync release notes with 1.8 branch
juliantaylor Sep 7, 2014
d9137a4
DOC: fix missing space in percentile doc
juliantaylor Sep 7, 2014
07601a6
REL: Release 1.9.0
juliantaylor Sep 7, 2014
812f328
Merge pull request #5067 from juliantaylor/restore-dup
juliantaylor Sep 11, 2014
f9dd65e
Merge pull request #5066 from seberg/index-sequence
juliantaylor Sep 13, 2014
5818fb6
Merge pull request #5087 from juliantaylor/unicode-argmin
juliantaylor Sep 19, 2014
2c83836
Merge pull request #5076 from kanhua/kh_fix
juliantaylor Sep 19, 2014
5df6ac7
BUG: fix wrong error checks of PyBytes_AsStringAndSize
juliantaylor Sep 19, 2014
7c3ec61
Merge pull request #5102 from dpinte/fix/epd_canopy
juliantaylor Sep 23, 2014
38ed773
Merge pull request #5104 from juliantaylor/inner-fix
juliantaylor Sep 23, 2014
f8a1f66
Merge pull request #5105 from juliantaylor/where-no-subtype
juliantaylor Sep 23, 2014
26052d7
Merge pull request #5106 from juliantaylor/sequence-fix
juliantaylor Sep 23, 2014
a2bfd3f
Merge pull request #5107 from juliantaylor/na-doc
juliantaylor Sep 23, 2014
a6b01cc
Merge pull request #5088 from juliantaylor/not-fix
juliantaylor Sep 24, 2014
e1e9117
Merge pull request #5140 from pyhits/5136
juliantaylor Sep 30, 2014
ed228e6
Merge pull request #5149 from charris/fix-ma-docs-for-OO-option
juliantaylor Oct 4, 2014
5a5dc6e
Merge pull request #5152 from tovrstra/collapsingbug
juliantaylor Oct 4, 2014
1b7712b
Merge pull request #5167 from juliantaylor/rh5-miscompile
juliantaylor Oct 10, 2014
6cf7ece
REL: set version number to unreleased 1.9.1
juliantaylor Oct 10, 2014
e2851d2
Merge pull request #5168 from charris/f2py-space-fix
juliantaylor Oct 10, 2014
90ae342
Merge pull request #5178 from charris/fix-npz-header-incompatibility
juliantaylor Oct 13, 2014
fb6ff96
Merge pull request #5183 from charris/fix-npy-header-write
juliantaylor Oct 15, 2014
d310ff9
Merge pull request #5182 from juliantaylor/nanmedian-inf
juliantaylor Oct 16, 2014
ddb5e79
Merge pull request #5212 from charris/fix-long-long-fmt
juliantaylor Oct 21, 2014
555d803
Merge pull request #5204 from RobberPhex/master
juliantaylor Oct 21, 2014
e2eaf96
BUG: Ugly fix for Apple's cblas_sgemv segfault
sturlamolden Oct 18, 2014
ce0c6e0
Merge pull request #5225 from juliantaylor/datetime-arange-crash
juliantaylor Oct 24, 2014
42d890f
Merge pull request #5216 from charris/cleanup-gh-5132
juliantaylor Oct 24, 2014
8b58d98
BUG: io: genfromtxt did not handle filling_values=0 correctly. Closes…
WarrenWeckesser Aug 15, 2014
079fcfc
BUG: Fixes #5184 gradient calculation behavior at boundaries
Oct 14, 2014
9b4b7b3
Merge pull request #5233 from juliantaylor/off_t-fix
juliantaylor Oct 26, 2014
c6900b2
Merge pull request #5234 from juliantaylor/backports-1.9.1
juliantaylor Oct 26, 2014
6970732
Merge pull request #5203 from njsmith/master
juliantaylor Oct 26, 2014
473a386
DOC: add release notes for 1.9.1
juliantaylor Oct 26, 2014
b7cb545
Merge pull request #5235 from juliantaylor/release-notes-1.9.1
juliantaylor Oct 26, 2014
15a2097
DOC: add 1.9.1 release notes to index and fix formatting
juliantaylor Oct 26, 2014
a373392
Merge pull request #5223 from sturlamolden/accelerate-sgemv-fix
juliantaylor Oct 26, 2014
a4eddad
DOC: add Accelerate sgemv crash workaround to release notes
juliantaylor Oct 26, 2014
c88fd91
REL: Release 1.9.1rc1
juliantaylor Oct 26, 2014
994e98c
Merge pull request #5242 from juliantaylor/fix-ufunc-subok-out
juliantaylor Oct 28, 2014
27c8797
Fix issue with fromarrays not correctly determining a format string f…
embray Oct 31, 2014
7d2ebea
DOC: update 1.9.1 release notes
juliantaylor Nov 2, 2014
a587b47
Merge pull request #5255 from juliantaylor/backports
juliantaylor Nov 2, 2014
d44b9c6
REL: Release 1.9.1
juliantaylor Nov 2, 2014
e4c861f
REL: set version number to unreleased 1.9.2
juliantaylor Dec 10, 2014
f546b8b
Merge pull request #5359 from tacaswell/linspace_doc
juliantaylor Dec 10, 2014
c62f666
Merge pull request #5388 from sturlamolden/mtrand-bugfix-threadsafe
juliantaylor Dec 23, 2014
50d8af8
Merge pull request #5390 from sturlamolden/mtrand-bugfix-threadsafe
juliantaylor Dec 23, 2014
bd7fcee
8000 Merge pull request #5374 from lebigot/patch-1
juliantaylor Dec 24, 2014
f0b2dd7
BUG: Xerbla doesn't get linked in 1.9 on Fedora 21.
charris Dec 24, 2014
5ba6e41
Merge pull request #5393 from charris/detect_atlas_3_10
Dec 29, 2014
825b830
Merge pull request #5392 from charris/xerbla-1.9
charris Jan 2, 2015
9568de1
BUG: Closes #5313 PyArray_AsCArray caused segfault
hensing Nov 26, 2014
678d481
Merge pull request #5416 from charris/backport-gh5314
charris Jan 2, 2015
c9075fa
Merge pull request #5417 from charris/tests-for-PyArray_AsCArray
charris Jan 2, 2015
b1ac4a5
Merge pull request #5447 from juliantaylor/ma-median-ndarray
juliantaylor Jan 14, 2015
e0ef28b
BUG: fix string arrays not being aligned
juliantaylor Nov 26, 2014
43e5e9e
BUG: reduce maximum alignment to 8 bytes on 32 bit
juliantaylor Nov 26, 2014
1bce8d7
BUG: Fix astype for structured array fields of different byte order.
Nov 10, 2014
78709e0
Merge pull request #5481 from charris/backport-1.9-gh-5480
charris Jan 22, 2015
6fde11b
Merge pull request #5492 from grahamc/gotofail-malloc-ret-null-fft
juliantaylor Jan 25, 2015
79ac576
BUG: Fix loadtxt with comments=None and a string None data.
LeartS Oct 5, 2014
4ea05b0
TST: Add test for loadtxt with None as string type.
charris Jan 23, 2015
33bd205
DOC: fix a few bugs in the random.pareto docstring. Closes gh-4181.
Jan 6, 2015
f7cdfe6
BUG: Fix #4476 by adding datetime64 and timedelta64 types
Jan 15, 2015
53b19c5
TST: Add testcase for the fix to bug #4476.
Jan 15, 2015
1cac77b
Merge pull request #5478 from charris/fix-1.9-alignment
juliantaylor Jan 25, 2015
fb19fac
MAINT: Get rid of some harmless gcc warnings about macro redefines.
charris Aug 17, 2014
eb73d4b
DOC: add 1.9.2 release notes
juliantaylor Jan 25, 2015
311d937
Merge pull request #5500 from juliantaylor/backports-1.9.2
juliantaylor Feb 1, 2015
c04513c
REL: Release 1.9.2rc1
juliantaylor Feb 1, 2015
1f72899
Merge pull request #5599 from pitrou/refleak_ufunc2
juliantaylor Feb 23, 2015
43c8313
BUG: Fixes #5524 and adds test
hannaro Feb 19, 2015
102ba69
BUG: solves complex array clip in issue #5354 and added symmetric reg…
maniteja123 Dec 21, 2014
bf6f80d
Merge pull request #5618 from johntyree/arrfill_ulonglong
juliantaylor Mar 1, 2015
7cfdd98
DOC: update release notes
juliantaylor Feb 28, 2015
d685309
Merge pull request #5619 from jaimefrio/unique_docstring
juliantaylor Mar 1, 2015
1f68813
Merge pull request #5616 from juliantaylor/backport-1.9.2
juliantaylor Mar 1, 2015
762c6f1
REL: Release 1.9.2
juliantaylor Mar 1, 2015
9a0d851
BUG: Fix #3926: pickling empty string fails
jayvius Jan 21, 2015
54e3834
Merge pull request #5720 from cowlicks/backport-3926
charris Mar 25, 2015
35b4920
LIBPATH with spaces is now supported Python 2.7+ and Win32
mindw Apr 13, 2015
3a2f055
Merge pull request #5765 from mindw/fix_libpath_win32
Apr 14, 2015
40a6085
MAINT: remove legacy monkeypatching of GzipFile
njsmith Jun 25, 2015
6958842
BLD: find Python.h when build_ext --include-dirs is set
tdsmith May 10, 2015
a6d32de
BLD: disable broken msvc14 trigonometric functions
cgohlke Sep 20, 2015
fa9a404
DEV: Replace deprecated options for ifort.
Feb 10, 2015
fad36c1
remove /GL for vs2015 in check_long_double_representation
Jul 20, 2015
147b828
BLD: enable C99 isnan and isinf for msvc14
cgohlke Aug 2, 2015
f404885
DOC: update release notes for 1.9.3
matthew-brett Sep 19, 2015
7f96e9d
MAINT: set versions for 1.9.3 release
matthew-brett Sep 19, 2015
edb902c
Merge pull request #6332 from matthew-brett/prepare-1.9.3
matthew-brett Sep 21, 2015
5047404
ENH: make f2py an executable module
juliantaylor Feb 13, 2015
7c20ee5
BUG: fix f2py shebang line for bdist wheel, egg
matthew-brett Apr 29, 2015
fc4904c
ENH: add bdist_mpkg, bdist_wininst to binary dists
matthew-brett Apr 29, 2015
96ed3d2
BUG: revert use of !python for bdist_mpkg scripts
matthew-brett May 5, 2015
b064e4b
TEST: add module to test installed scripts
matthew-brett Apr 29, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
* text=auto
tools/win32build/nsis_scripts/*.nsi.in eol=crlf

# Numerical data files
numpy/lib/tests/data/*.npy binary
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
*.tmp
*.vim
tags
cscope.out
# gnu global
GPATH
GRTAGS
GSYMS
GTAGS

# Compiled source #
###################
Expand Down Expand Up @@ -123,7 +129,7 @@ numpy/core/src/private/npy_partition.h
numpy/core/src/private/scalarmathmodule.h
numpy/core/src/scalarmathmodule.c
numpy/core/src/umath/funcs.inc
numpy/core/src/umath/loops.c
numpy/core/src/umath/loops.[ch]
numpy/core/src/umath/operand_flag_tests.c
numpy/core/src/umath/simd.inc
numpy/core/src/umath/struct_ufunc_test.c
Expand Down
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ matrix:
- python: 3.2
env: USE_DEBUG=1
- python: 2.7
env: NPY_SEPARATE_COMPILATION=0
env: NPY_SEPARATE_COMPILATION=0 PYTHON_OO=1
- python: 3.3
env: NPY_SEPARATE_COMPILATION=0
- python: 2.7
Expand All @@ -31,6 +31,10 @@ before_install:
- ulimit -a
- mkdir builds
- pushd builds
# Build into own virtualenv
# We therefore control our own environment, avoid travis' numpy
- virtualenv --python=python venv
- source venv/bin/activate
- pip install nose
# pip install coverage
- python -V
Expand Down
12 changes: 6 additions & 6 deletions doc/HOWTO_DOCUMENT.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ A Guide to NumPy/SciPy Documentation

Overview
--------
In general, we follow the standard Python style conventions as described here:
* `Style Guide for C Code <http://www.python.org/peps/pep-0007.html>`_
* `Style Guide for Python Code <http://www.python.org/peps/pep-0008.html>`_
* `Docstring Conventions <http://www.python.org/peps/pep-0257.html>`_
We mostly follow the standard Python style conventions as described here:
* `Style Guide for C Code <http://python.org/dev/peps/pep-0007/>`_
* `Style Guide for Python Code <http://python.org/dev/peps/pep-0008/>`_
* `Docstring Conventions <http://python.org/dev/peps/pep-0257/>`_

Additional PEPs of interest regarding documentation of code:
* `Docstring Processing Framework <http://www.python.org/peps/pep-0256.html>`_
* `Docutils Design Specification <http://www.python.org/peps/pep-0258.html>`_
* `Docstring Processing Framework <http://python.org/dev/peps/pep-0256/>`_
* `Docutils Design Specification <http://python.org/dev/peps/pep-0258/>`_

Use a code checker:
* `pylint <http://www.logilab.org/857>`_
Expand Down
19 changes: 19 additions & 0 deletions doc/release/1.8.2-notes.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
NumPy 1.8.2 Release Notes
*************************

This is a bugfix only release in the 1.8.x series.

Issues fixed
============

* gh-4836: partition produces wrong results for multiple selections in equal ranges
* gh-4656: Make fftpack._raw_fft threadsafe
* gh-4628: incorrect argument order to _copyto in in np.nanmax, np.nanmin
* gh-4642: Hold GIL for converting dtypes types with fields
* gh-4733: fix np.linalg.svd(b, compute_uv=False)
* gh-4853: avoid unaligned simd load on reductions on i386
* gh-4722: Fix seg fault converting empty string to object
* gh-4613: Fix lack of NULL check in array_richcompare
* gh-4774: avoid unaligned access for strided byteswap
* gh-650: Prevent division by zero when creating arrays from some buffers
* gh-4602: ifort has issues with optimization flag O2, use O1
21 changes: 12 additions & 9 deletions doc/release/1.9.0-notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ This release supports Python 2.6 - 2.7 and 3.2 - 3.4.

Highlights
==========
* Addition of `__numpy_ufunc__` to allow overriding ufuncs in ndarray
subclasses.
* Numerous performance improvements in various areas, most notably indexing and
operations on small arrays are significantly faster.
Indexing operations now also release the GIL.
Expand Down Expand Up @@ -35,6 +33,8 @@ Future Changes
* String version checks will break because, e.g., '1.9' > '1.10' is True. A
NumpyVersion class has been added that can be used for such comparisons.
* The diagonal and diag functions will return writeable views in 1.10.0
* The `S` and/or `a` dtypes may be changed to represent Python strings
instead of bytes, in Python 3 these two types are very different.


Compatibility notes
Expand Down Expand Up @@ -176,6 +176,11 @@ introduced in advanced indexing operations:

* Indexing with more then one ellipsis (``...``) is deprecated.

Non-integer reduction axis indexes are deprecated
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Non-integer axis indexes to reduction ufuncs like `add.reduce` or `sum` are
deprecated.

``promote_types`` and string dtype
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
``promote_types`` function now returns a valid string length when given an
Expand Down Expand Up @@ -240,6 +245,11 @@ a problem cannot occur.

This change was already applied to the 1.8.1 release.

``zeros_like`` for string dtypes now returns empty strings
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To match the `zeros` function `zeros_like` now returns an array initialized
with empty strings instead of an array filled with `'0'`.


New Features
============
Expand All @@ -257,13 +267,6 @@ ufunc reductions do since 1.7. One can now say axis=(index, index) to pick a
list of axes for the reduction. The ``keepdims`` keyword argument was also
added to allow convenient broadcasting to arrays of the original shape.

Ufunc and Dot Overrides
~~~~~~~~~~~~~~~~~~~~~~~
For better compatibility with external objects you can now override
universal functions (ufuncs), ``numpy.core._dotblas.dot``, and
``numpy.core.multiarray.dot`` (the numpy.dot functions). By defining a
``__numpy_ufunc__`` method.

Dtype parameter added to ``np.linspace`` and ``np.logspace``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The returned data type from the ``linspace`` and ``logspace`` functions can
Expand Down
33 changes: 33 additions & 0 deletions doc/release/1.9.1-notes.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
NumPy 1.9.1 Release Notes
*************************

This is a bugfix only release in the 1.9.x series.

Issues fixed
============

* gh-5184: restore linear edge behaviour of gradient to as it was in < 1.9.
The second order behaviour is available via the `edge_order` keyword
* gh-4007: workaround Accelerate sgemv crash on OSX 10.9
* gh-5100: restore object dtype inference from iterable objects without `len()`
* gh-5163: avoid gcc-4.1.2 (red hat 5) miscompilation causing a crash
* gh-5138: fix nanmedian on arrays containing inf
* gh-5240: fix not returning out array from ufuncs with subok=False set
* gh-5203: copy inherited masks in MaskedArray.__array_finalize__
* gh-2317: genfromtxt did not handle filling_values=0 correctly
* gh-5067: restore api of npy_PyFile_DupClose in python2
* gh-5063: cannot convert invalid sequence index to tuple
* gh-5082: Segmentation fault with argmin() on unicode arrays
* gh-5095: don't propagate subtypes from np.where
* gh-5104: np.inner segfaults with SciPy's sparse matrices
* gh-5251: Issue with fromarrays not using correct format for unicode arrays
* gh-5136: Import dummy_threading if importing threading fails
* gh-5148: Make numpy import when run with Python flag '-OO'
* gh-5147: Einsum double contraction in particular order causes ValueError
* gh-479: Make f2py work with intent(in out)
* gh-5170: Make python2 .npy files readable in python3
* gh-5027: Use 'll' as the default length specifier for long long
* gh-4896: fix build error with MSVC 2013 caused by C99 complex support
* gh-4465: Make PyArray_PutTo respect writeable flag
* gh-5225: fix crash when using arange on datetime without dtype set
* gh-5231: fix build in c99 mode
25 changes: 25 additions & 0 deletions doc/release/1.9.2-notes.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
NumPy 1.9.2 Release Notes
*************************

This is a bugfix only release in the 1.9.x series.

Issues fixed
============

* `#5316 <https://github.com/numpy/numpy/issues/5316>`__: fix too large dtype alignment of strings and complex types
* `#5424 <https://github.com/numpy/numpy/issues/5424>`__: fix ma.median when used on ndarrays
* `#5481 <https://github.com/numpy/numpy/issues/5481>`__: Fix astype for structured array fields of different byte order
* `#5354 <https://github.com/numpy/numpy/issues/5354>`__: fix segfault when clipping complex arrays
* `#5524 <https://github.com/numpy/numpy/issues/5524>`__: allow np.argpartition on non ndarrays
* `#5612 <https://github.com/numpy/numpy/issues/5612>`__: Fixes ndarray.fill to accept full range of uint64
* `#5155 <https://github.com/numpy/numpy/issues/5155>`__: Fix loadtxt with comments=None and a string None data
* `#4476 <https://github.com/numpy/numpy/issues/4476>`__: Masked array view fails if structured dtype has datetime component
* `#5388 <https://github.com/numpy/numpy/issues/5388>`__: Make RandomState.set_state and RandomState.get_state threadsafe
* `#5390 <https://github.com/numpy/numpy/issues/5390>`__: make seed, randint and shuffle threadsafe
* `#5374 <https://github.com/numpy/numpy/issues/5374>`__: Fixed incorrect assert_array_almost_equal_nulp documentation
* `#5393 <https://github.com/numpy/numpy/issues/5393>`__: Add support for ATLAS > 3.9.33.
* `#5313 <https://github.com/numpy/numpy/issues/5313>`__: PyArray_AsCArray caused segfault for 3d arrays
* `#5492 <https://github.com/numpy/numpy/issues/5492>`__: handle out of memory in rfftf
* `#4181 <https://github.com/numpy/numpy/issues/4181>`__: fix a few bugs in the random.pareto docstring
* `#5359 <https://github.com/numpy/numpy/issues/5359>`__: minor changes to linspace docstring
* `#4723 <https://github.com/numpy/numpy/issues/4723>`__: fix a compile issues on AIX
23 changes: 23 additions & 0 deletions doc/release/1.9.3-notes.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
NumPy 1.9.3 Release Notes
*************************

This is a bugfix only release in the 1.9.x series.

The only changes from 1.9.2 are a fix for reading gzipped text files on Python
3.5 and some build fixes.

Issues fixed
============

* `#5866 <https://github.com/numpy/numpy/pull/5866>`__: fix error finding
Python headers when ``build_ext`` ``--include-dirs`` is set;
* `#6016 <https://github.com/numpy/numpy/pull/6016>`__: fix ``np.loadtxt``
error on Python 3.5 when reading from gzip files;
* `#5555 <https://github.com/numpy/numpy/pull/5555>`__: Replace deprecated
options for ifort;
* `#6096 <https://github.com/numpy/numpy/pull/6096>`__: remove /GL for VS2015
in check_long_double_representation;
* `#6141 <https://github.com/numpy/numpy/pull/6141>`__: enable Visual Studio
2015 C99 features;
* `#6171 <https://github.com/numpy/numpy/pull/6171>`__: revert C99 complex for
MSVC14.
70 changes: 0 additions & 70 deletions doc/source/reference/arrays.classes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,76 +39,6 @@ Special attributes and methods

Numpy provides several hooks that classes can customize:

.. function:: class.__numpy_ufunc__(self, ufunc, method, i, inputs, **kwargs)

.. versionadded:: 1.9

Any class (ndarray subclass or not) can define this method to
override behavior of Numpy's ufuncs. This works quite similarly to
Python's ``__mul__`` and other binary operation routines.

- *ufunc* is the ufunc object that was called.
- *method* is a string indicating which Ufunc method was called
(one of ``"__call__"``, ``"reduce"``, ``"reduceat"``,
``"accumulate"``, ``"outer"``, ``"inner"``).
- *i* is the index of *self* in *inputs*.
- *inputs* is a tuple of the input arguments to the ``ufunc``
- *kwargs* is a dictionary containing the optional input arguments
of the ufunc. The ``out`` argument is always contained in
*kwargs*, if given. See the discussion in :ref:`ufuncs` for
details.

The method should return either the result of the operation, or
:obj:`NotImplemented` if the operation requested is not
implemented.

If one of the arguments has a :func:`__numpy_ufunc__` method, it is
executed *instead* of the ufunc. If more than one of the input
arguments implements :func:`__numpy_ufunc__`, they are tried in the
order: subclasses before superclasses, otherwise left to right. The
first routine returning something else than :obj:`NotImplemented`
determines the result. If all of the :func:`__numpy_ufunc__`
operations return :obj:`NotImplemented`, a :exc:`TypeError` is
raised.

If an :class:`ndarray` subclass defines the :func:`__numpy_ufunc__`
method, this disables the :func:`__array_wrap__`,
:func:`__array_prepare__`, :data:`__array_priority__` mechanism
described below.

.. note:: In addition to ufuncs, :func:`__numpy_ufunc__` also
overrides the behavior of :func:`numpy.dot` even though it is
not an Ufunc.

.. note:: If you also define right-hand binary operator override
methods (such as ``__rmul__``) or comparison operations (such as
``__gt__``) in your class, they take precedence over the
:func:`__numpy_ufunc__` mechanism when resolving results of
binary operations (such as ``ndarray_obj * your_obj``).

The technical special case is: ``ndarray.__mul__`` returns
``NotImplemented`` if the other object is *not* a subclass of
:class:`ndarray`, and defines both ``__numpy_ufunc__`` and
``__rmul__``. Similar exception applies for the other operations
than multiplication.

In such a case, when computing a binary operation such as
``ndarray_obj * your_obj``, your ``__numpy_ufunc__`` method
*will not* be called. Instead, the execution passes on to your
right-hand ``__rmul__`` operation, as per standard Python
operator override rules.

Similar special case applies to *in-place operations*: If you
define ``__rmul__``, then ``ndarray_obj *= your_obj`` *will not*
call your ``__numpy_ufunc__`` implementation. Instead, the
default Python behavior ``ndarray_obj = ndarray_obj * your_obj``
occurs.

Note that the above discussion applies only to Python's builtin
binary operation mechanism. ``np.multiply(ndarray_obj,
your_obj)`` always calls only your ``__numpy_ufunc__``, as
expected.

.. function:: class.__array_finalize__(self)

This method is called whenever the system internally allocates a
Expand Down
2 changes: 1 addition & 1 deletion doc/source/reference/c-api.types-and-structures.rst
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ PyArrayDescr_Type
Indicates that items of this data-type must be reference
counted (using :cfunc:`Py_INCREF` and :cfunc:`Py_DECREF` ).

.. cvar:: NPY_ITEM_LISTPICKLE
.. cvar:: NPY_LIST_PICKLE

Indicates arrays of this data-type must be converted to a list
before pickling.
Expand Down
2 changes: 2 additions & 0 deletions doc/source/reference/routines.array-manipulation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ Changing kind of array
asmatrix
asfarray
asfortranarray
ascontiguousarray
asarray_chkfinite
asscalar
require

Expand Down
3 changes: 3 additions & 0 deletions doc/source/reference/routines.ma.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ Inspecting the array
ma.nonzero
ma.shape
ma.size
ma.is_masked
ma.is_mask

ma.MaskedArray.data
ma.MaskedArray.mask
Expand Down Expand Up @@ -141,6 +143,7 @@ Joining arrays

ma.column_stack
ma.concatenate
ma.append
ma.dstack
ma.hstack
ma.vstack
Expand Down
11 changes: 0 additions & 11 deletions doc/source/reference/routines.maskna.rst

This file was deleted.

6 changes: 3 additions & 3 deletions doc/source/reference/routines.polynomials.classes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ constant are 0, but both can be specified.::
In the first case the lower bound of the integration is set to -1 and the
integration constant is 0. In the second the constant of integration is set
to 1 as well. Differentiation is simpler since the only option is the
number times the polynomial is differentiated::
number of times the polynomial is differentiated::

>>> p = P([1, 2, 3])
>>> p.deriv(1)
Expand Down Expand Up @@ -270,7 +270,7 @@ polynomials up to degree 5 are plotted below.
>>> import matplotlib.pyplot as plt
>>> from numpy.polynomial import Chebyshev as T
>>> x = np.linspace(-1, 1, 100)
>>> for i in range(6): ax = plt.plot(x, T.basis(i)(x), lw=2, label="T_%d"%i)
>>> for i in range(6): ax = plt.plot(x, T.basis(i)(x), lw=2, label="$T_%d$"%i)
...
>>> plt.legend(loc="upper left")
<matplotlib.legend.Legend object at 0x3b3ee10>
Expand All @@ -284,7 +284,7 @@ The same plots over the range -2 <= `x` <= 2 look very different:
>>> import matplotlib.pyplot as plt
>>> from numpy.polynomial import Chebyshev as T
>>> x = np.linspace(-2, 2, 100)
>>> for i in range(6): ax = plt.plot(x, T.basis(i)(x), lw=2, label="T_%d"%i)
>>> for i in range(6): ax = plt.plot(x, T.basis(i)(x), lw=2, label="$T_%d$"%i)
...
>>> plt.legend(loc="lower right")
<matplotlib.legend.Legend object at 0x3b3ee10>
Expand Down
4 changes: 4 additions & 0 deletions doc/source/release.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
Release Notes
*************

.. include:: ../release/1.9.2-notes.rst
.. include:: ../release/1.9.1-notes.rst
.. include:: ../release/1.9.0-notes.rst
.. include:: ../release/1.8.2-notes.rst
.. include:: ../release/1.8.1-notes.rst
.. include:: ../release/1.8.0-notes.rst
.. include:: ../release/1.7.2-notes.rst
.. include:: ../release/1.7.1-notes.rst
Expand Down
Loading
0