Movatterモバイル変換
[0]ホーム
[Python-Dev] [numpy wishlist] Interpreter support for temporary elision in third-party classes
Paul Moorep.f.moore at gmail.com
Fri Jun 6 00:12:04 CEST 2014
On 5 June 2014 22:47, Nathaniel Smith <njs at pobox.com> wrote:> To make sure I understand correctly, you're suggesting something like> adding a new set of special method slots, __te_add__, __te_mul__,> etc.I wasn't thinking in that much detail, TBH. I'm not sure adding awhole set of new slots is sensible for such a specialised case. Ithink I was more assuming that the special method implementationscould use an alternative calling convention, METH_STACK in place ofMETH_VARARGS, for example. That would likely only be viable for typesimplemented in C.But either way, it may be more complicated than the advantages would justify...Paul
More information about the Python-Devmailing list
[8]ページ先頭