This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients serhiy.storchaka, vstinner, xiang.zhang, zach.ware
Date 2017-01-03.10:17:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1483438637.38.0.346005577753.issue29139@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-01-03 10:17:17serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner, zach.ware, xiang.zhang
2017-01-03 10:17:17serhiy.storchakasetmessageid: <1483438637.38.0.346005577753.issue29139@psf.upfronthosting.co.za>
2017-01-03 10:17:17serhiy.storchakalinkissue29139 messages
2017-01-03 10:17:17serhiy.storchakacreate