Message284547
I don't think it should. You can use operator.add() if you need to fall back to a __radd__ of the right operand.
operator.concat() is Python API to the sq_concat slot. It falls back to __add__() just because instances of user classes defining an __add__() method only have an nb_add slot, not an sq_concat slot.
Third-party classes (maybe NumPy arrays, I don't know) can have different implementations of sq_concat and nb_add. |
|
Date |
User |
Action |
Args |
2017-01-03 10:17:17 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vstinner, zach.ware, xiang.zhang |
2017-01-03 10:17:17 | serhiy.storchaka | set | messageid: <1483438637.38.0.346005577753.issue29139@psf.upfronthosting.co.za> |
2017-01-03 10:17:17 | serhiy.storchaka | link | issue29139 messages |
2017-01-03 10:17:17 | serhiy.storchaka | create | |
|