Re: [Numpy-discussion] tracing numpy data allocation with python callbacks

2012-05-21 Thread Thouis (Ray) Jones
I submitted a PR for this functionality after cleaning it up a bit: https://github.com/numpy/numpy/pull/284 I've attached an example that produces HTML for a a sortable table tracking allocations while running through numpy.test(). Ray Jones sorttable.js Description: JavaScript source

[Numpy-discussion] subclassing ndarray subtleties??

2012-05-21 Thread Tom Aldcroft
Over on the scipy-user mailing list there was a question about subclassing ndarray and I was interested to see two responses that seemed to imply that subclassing should be avoided. From Dag and Nathaniel, respectively: Subclassing ndarray is a very tricky business -- I did it once and regretted

[Numpy-discussion] Fwd: Named dtype array: Difference between a[0]['name'] and a['name'][0]?

2012-05-21 Thread bmu
dear all, can anybody tell me, why nobody is answering this question? is this the wrong place to ask? or does nobody know an answer? björn---BeginMessage--- I came acroos a question on stackoverflow (http://stackoverflow.com/q/9470604) and I am wondering if this is a bug import numpy as np dt

Re: [Numpy-discussion] tracing numpy data allocation with python callbacks

2012-05-21 Thread Thouis (Ray) Jones
On Mon, May 21, 2012 at 7:32 PM, Thouis (Ray) Jones tho...@gmail.com wrote: I submitted a PR for this functionality after cleaning it up a bit: https://github.com/numpy/numpy/pull/284 I meant to ask here (and Travis reminded me in the PR): Currently, the trace_data_allocations() function (the

Re: [Numpy-discussion] Fwd: Named dtype array: Difference between a[0]['name'] and a['name'][0]?

2012-05-21 Thread Travis Oliphant
This is the right place to ask, it's just that it can take time to get an answer because people who might know the answer may not have the time to respond immediately. The short answer is that this is not really a normal bug, but it could be considered a design bug (although the issues may

Re: [Numpy-discussion] Fwd: Named dtype array: Difference between a[0]['name'] and a['name'][0]?

2012-05-21 Thread Skipper Seabold
On Mon, May 21, 2012 at 4:37 PM, Travis Oliphant tra...@continuum.io wrote: This is the right place to ask, it's just that it can take time to get an answer because people who might know the answer may not have the time to respond immediately. The short answer is that this is not really a

Re: [Numpy-discussion] Internationalization of numpy/scipy docstrings...

2012-05-21 Thread Ralf Gommers
On Sun, May 20, 2012 at 11:59 PM, Tim Cera t...@cerazone.net wrote: Are you thinking only about documentation in .rst files (like the tutorials), or also the docstrings themselves? The former may be feasible, the latter I think will be difficult. Everything. Within the documentation editor

Re: [Numpy-discussion] Internationalization of numpy/scipy docstrings...

2012-05-21 Thread Nathaniel Smith
On Mon, May 21, 2012 at 10:44 PM, Ralf Gommers ralf.gomm...@googlemail.com wrote: Thinking about what languages to translate into would also make sense, since having a bunch of partial translations lying around doesn't help anyone. First thought: Spanish, Chinese. It's not like one can tell

[Numpy-discussion] Trivial pull request: tox support

2012-05-21 Thread Nathaniel Smith
I got tired of juggling virtualenvs, and probably everyone else would soon get tired of pointing out Python 2.4 incompatibilities I'd forgotten to test, so: https://github.com/numpy/numpy/pull/285 - N ___ NumPy-Discussion mailing list

Re: [Numpy-discussion] Separating out the maskna code

2012-05-21 Thread Travis Oliphant
Just to be clear. Are we waiting for the conclusion of the PyArray_Diagonal PR before proceeding with this one? -Travis On May 20, 2012, at 1:06 PM, Nathaniel Smith wrote: On Sun, May 20, 2012 at 6:59 PM, Nathaniel Smith n...@pobox.com wrote: I have not reviewed it in detail, but in