[Numpy-svn] [numpy/numpy] 243ab1: ENH: Fix bento script to always include ucsnarray....

GitHub noreply@github....
Sat Apr 21 11:37:15 CDT 2012


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 243ab1e394b2d2a7a3714d56e309785654373c5c
      https://github.com/numpy/numpy/commit/243ab1e394b2d2a7a3714d56e309785654373c5c
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2012-04-21 (Sat, 21 Apr 2012)

  Changed paths:
    M numpy/core/bscript

  Log Message:
  -----------
  ENH: Fix bento script to always include ucsnarray.h and ucsnarrow.c.

This fix is kept separate to facilitate cherry picking for a backport.


  Commit: 8330e6f9496294fdc875be77b89ebb12ab8bb8ae
      https://github.com/numpy/numpy/commit/8330e6f9496294fdc875be77b89ebb12ab8bb8ae
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2012-04-21 (Sat, 21 Apr 2012)

  Changed paths:
    M numpy/core/SConscript
    M numpy/core/setup.py
    M numpy/core/src/multiarray/common.h
    M numpy/core/src/multiarray/multiarraymodule_onefile.c
    M numpy/core/src/multiarray/ucsnarrow.h

  Log Message:
  -----------
  ENH: Always include ucsnarray.h and ucsnarray.c

This removes the include dependency on PY_UNICODE_WIDE in preparation
for defining more general unicode functions in the ucsnarray.c file.


  Commit: 321a01462b4ce54aba30241dc0dd8a03f96b4347
      https://github.com/numpy/numpy/commit/321a01462b4ce54aba30241dc0dd8a03f96b4347
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2012-04-21 (Sat, 21 Apr 2012)

  Changed paths:
    M numpy/core/src/multiarray/ucsnarrow.c
    M numpy/core/src/multiarray/ucsnarrow.h

  Log Message:
  -----------
  ENH: Add PyUnicode_FromUCS4 to ucsnarrow.


  Commit: d78746bd838761279c666465859a4b650525b422
      https://github.com/numpy/numpy/commit/d78746bd838761279c666465859a4b650525b422
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2012-04-21 (Sat, 21 Apr 2012)

  Changed paths:
    M numpy/core/src/multiarray/arraytypes.c.src

  Log Message:
  -----------
  BUG: ticket #1578, fix UNICODE_getitem.

Use PyUnicode_FromUCS4 in UNICODE_getitime so that the same memory
management is used for all parts of the returned PyUnicodeObject.


  Commit: 32775060950bd0eac622642a3dafb4d758f7e627
      https://github.com/numpy/numpy/commit/32775060950bd0eac622642a3dafb4d758f7e627
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2012-04-21 (Sat, 21 Apr 2012)

  Changed paths:
    M numpy/core/src/multiarray/scalarapi.c

  Log Message:
  -----------
  BUG: ticket #1578, fix PyArray_Scalar.

PyArray_Scalar needed to use PyObject_* memory management since the numpy
unicode object inherits tp_alloc from PyUnicode_Type.

Observation: realloc returns null on error and that isn't always checked in
Numpy.


  Commit: 1dba433756be0139d0b9ec591678c456fd54bdc2
      https://github.com/numpy/numpy/commit/1dba433756be0139d0b9ec591678c456fd54bdc2
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2012-04-21 (Sat, 21 Apr 2012)

  Changed paths:
    M numpy/core/src/multiarray/ucsnarrow.c
    M numpy/core/src/multiarray/ucsnarrow.h

  Log Message:
  -----------
  STY: Remove unused functions.

MyPyUnicode_Resize and MyPyUnicode_New are no longer used, so remove them.


Compare: https://github.com/numpy/numpy/compare/416e1ab...1dba433


More information about the Numpy-svn mailing list