[Python-Dev] [numpy wishlist] Interpreter support for temporary elision in third-party classes

Greg Ewing greg.ewing at canterbury.ac.nz
Sun Jun 8 01:02:51 CEST 2014


Nathaniel Smith wrote:
> For the numpy case, we really need to see all the operands, *and* know
> what the operation in question is...

Okay, I see what you mean now.

Given all that, it might be simpler just to have the
method perform the operation itself if it can. It has
all the information necessary to do so, after all.

This would also make it possible for the inplace
operators to have different semantics from temp-elided
non-inplace ones if desired.

-- 
Greg


More information about the Python-Dev mailing list