Skip to content

Commit 90fb993

Browse files
committed
comment on commutativity
1 parent 78f0576 commit 90fb993

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Python/specialize.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2560,6 +2560,11 @@ static int
25602560
binary_op_extended_specialization(PyObject *lhs, PyObject *rhs, int oparg,
25612561
_PyBinaryOpSpecializationDescr **descr)
25622562
{
2563+
/* We are currently using this only for NB_SUBSCR, which is not
2564+
* commutative. Will need to revisit this function when we use
2565+
* this for operators which are.
2566+
*/
2567+
25632568
typedef _PyBinaryOpSpecializationDescr descr_type;
25642569
size_t size = Py_ARRAY_LENGTH(binaryop_extend_builtins);
25652570
for (size_t i = 0; i < size; i++) {

0 commit comments

Comments
 (0)