[Numpy-discussion] Proposal to support __format__

2017-02-14 Thread Gustav Larsson
Hi everyone! I want to discuss adding support for __format__ in ndarray and I am willing to contribute code-wise once consensus has been reached. It was briefly discussed on GitHub two years ago (https://github.com/numpy/numpy/issues/5543) and I will re-iterate some of the points made there and

Re: [Numpy-discussion] Proposal to support __format__

2017-02-14 Thread Gustav Larsson
ever non-empty type specifications are provided rather > than raising errors in every case. > I agree. Gustav On Tue, Feb 14, 2017 at 3:59 PM, Stephan Hoyer <sho...@gmail.com> wrote: > On Tue, Feb 14, 2017 at 3:34 PM, Gustav Larsson <lars...@cs.uchicago.edu> > wrote: > &

Re: [Numpy-discussion] Proposal to support __format__

2017-02-15 Thread Gustav Larsson
> > This is great! Thanks! Glad to be met by enthusiasm about this. 1. You basically have a NEP already! Making a PR from it allows to > give line-by-line comments, so would help! I will do this soon. 2. Don't worry about supporting python2 specifics; just try to ensure > it doesn't break; I

Re: [Numpy-discussion] Arrays and format()

2017-02-28 Thread Gustav Larsson
I am hoping to submit a PR for a __format__ numpy enhancement proposal this weekend. I will be a slightly revised version of my original draft posted here two weeks ago. Ryan, if you have any thoughts on the writeup so far, I'd