[Numpy-svn] [numpy/numpy] b26c67: [FIX] Make np.random.shuffle less brain-dead

GitHub noreply@github....
Tue Jul 17 18:36:07 CDT 2012


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: b26c675e2a91e1042f8f8d634763942c87fbbb6e
      https://github.com/numpy/numpy/commit/b26c675e2a91e1042f8f8d634763942c87fbbb6e
  Author: Nathaniel J. Smith <njs@pobox.com>
  Date:   2012-07-17 (Tue, 17 Jul 2012)

  Changed paths:
    M numpy/random/mtrand/mtrand.c
    M numpy/random/mtrand/mtrand.pyx
    M numpy/random/tests/test_random.py
    M numpy/random/tests/test_regression.py
    M numpy/testing/tests/test_utils.py

  Log Message:
  -----------
  [FIX] Make np.random.shuffle less brain-dead

The logic in np.random.shuffle was... not very sensible. Fixes trac
ticket #2074.

This patch also exposes a completely unrelated issue in
numpy.testing. Filed as Github issue #347 and marked as knownfail for
now.


  Commit: bf2c101136d7a28eb04794f24ffaaa251f4ca603
      https://github.com/numpy/numpy/commit/bf2c101136d7a28eb04794f24ffaaa251f4ca603
  Author: njsmith <njs@pobox.com>
  Date:   2012-07-17 (Tue, 17 Jul 2012)

  Changed paths:
    M numpy/random/mtrand/mtrand.c
    M numpy/random/mtrand/mtrand.pyx
    M numpy/random/tests/test_random.py
    M numpy/random/tests/test_regression.py
    M numpy/testing/tests/test_utils.py

  Log Message:
  -----------
  Merge pull request #348 from njsmith/fix-shuffle

[FIX] Make np.random.shuffle less brain-dead


Compare: https://github.com/numpy/numpy/compare/6c772fab5793...bf2c101136d7


More information about the Numpy-svn mailing list