Re: [Numpy-discussion] Asking for opinions: Priops

2010-09-27 Thread Dag Sverre Seljebotn
Friedrich Romstedt wrote: > 2010/9/23 Dag Sverre Seljebotn : > >> Essentially, perhaps what you have sketched up + an ability to extend >> the graph with object conversion routes would be perfect for my own >> uses. So you can define a function with overloads (A, B) and (A, C), but >> also that

Re: [Numpy-discussion] Asking for opinions: Priops

2010-09-27 Thread Friedrich Romstedt
2010/9/23 Dag Sverre Seljebotn : > Essentially, perhaps what you have sketched up + an ability to extend > the graph with object conversion routes would be perfect for my own > uses. So you can define a function with overloads (A, B) and (A, C), but > also that objects of type D can be converted to

Re: [Numpy-discussion] Asking for opinions: Priops

2010-09-23 Thread Dag Sverre Seljebotn
Dag Sverre Seljebotn wrote: > Friedrich Romstedt wrote: > >> I just ran across the problem of priorities with ndarrays again and it >> keeps biting me. I did once ago a workaround to get my ``undarray`` >> class's methods be called when being the second operand of e.g. >> + . But since I wrot

Re: [Numpy-discussion] Asking for opinions: Priops

2010-09-23 Thread Dag Sverre Seljebotn
Friedrich Romstedt wrote: > I just ran across the problem of priorities with ndarrays again and it > keeps biting me. I did once ago a workaround to get my ``undarray`` > class's methods be called when being the second operand of e.g. > + . But since I wrote it, always Python crashes > on exit w

Re: [Numpy-discussion] Asking for opinions: Priops

2010-09-23 Thread Friedrich Romstedt
Hi Sebastian, Thanks for your reply! 2010/9/22 Sebastian Walter : > [...] I think the issue is not so much numpy but rather the > way Python implements operator overloading using methods like __add__ > and __radd__.  Hence, your suggestion seems to be a Python Enhancement > Proposal and should be

Re: [Numpy-discussion] Asking for opinions: Priops

2010-09-22 Thread Charles R Harris
On Wed, Sep 22, 2010 at 1:31 PM, Sebastian Walter < sebastian.wal...@gmail.com> wrote: > Hello Friedrich, > > I have read your proposal. You describe issues that I have also > encountered several times. > I believe that your priops approach would be an improvement over the > current overloading of

Re: [Numpy-discussion] Asking for opinions: Priops

2010-09-22 Thread Sebastian Walter
Hello Friedrich, I have read your proposal. You describe issues that I have also encountered several times. I believe that your priops approach would be an improvement over the current overloading of binary operators. That being said, I think the issue is not so much numpy but rather the way Pytho

[Numpy-discussion] Asking for opinions: Priops

2010-09-16 Thread Friedrich Romstedt
I just ran across the problem of priorities with ndarrays again and it keeps biting me. I did once ago a workaround to get my ``undarray`` class's methods be called when being the second operand of e.g. + . But since I wrote it, always Python crashes on exit with the message: Python-32(68665) m