[Numpy-discussion] Chararray depreciated?
Michael Droettboom
mdroe at stsci.edu
Mon Dec 7 09:17:08 EST 2009
Also noticed that
http://docs.scipy.org/numpy/docs/numpy.core.defchararray.chararray/
lists a number of methods that are really applicable. For example
"sum". This is a side effect of course of chararray inheriting from
ndarray, and the documentation isn't "wrong" -- chararray has a "sum"
method, it's just that it doesn't make sense and you get:
TypeError: cannot perform reduce with flexible type
when trying to run it.
I suspect fixing this at the implementation level may be too
difficult/dangerous, but for documentation purposes, is there a way to
explicitly list the methods for the chararray class?
Mike
Michael Droettboom wrote:
> If this:
>
> http://docs.scipy.org/numpy/docs/numpy.core.defchararray.chararray/
>
> is the most recent revision, then it looks good to me. It does seem to
> incorporate my new text -- in case there was any confusion about that.
>
> Mike
>
> David Goldsmith wrote:
>
>> On Sun, Dec 6, 2009 at 6:36 AM, Ralf Gommers
>> <ralf.gommers at googlemail.com <mailto:ralf.gommers at googlemail.com>> wrote:
>>
>>
>>
>> On Sun, Dec 6, 2009 at 2:10 PM, Gael Varoquaux
>> <gael.varoquaux at normalesup.org
>> <mailto:gael.varoquaux at normalesup.org>> wrote:
>>
>>
>> Excellent. I tweeked a bit the text to make it clearer:
>> http://docs.scipy.org/numpy/docs/numpy.core.defchararray.chararray/
>>
>> I made it clear that the replacement are present only starting
>> numpy 1.4.
>> I'd love a review and an 'OK to apply'.
>>
>> Looks good, I copied the changes to the notes in defchararray and
>> arrays.classes.rst, and toggled OK to apply.
>>
>> Cheers,
>> Ralf
>>
>>
>>
>> _______________________________________________
>> NumPy-Discussion mailing list
>> NumPy-Discussion at scipy.org <mailto:NumPy-Discussion at scipy.org>
>> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>>
>>
>> Thanks, guys!
>>
>> DG
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> NumPy-Discussion mailing list
>> NumPy-Discussion at scipy.org
>> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>>
>>
>
>
--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
More information about the NumPy-Discussion
mailing list