This code looks strange:
|
else if (PyLong_Check(v) && (PyTuple_Check(w) || PyFrozenSet_Check(w))) { |
|
Py_ssize_t size = PyTuple_Check(w) ? PyTuple_GET_SIZE(w) : |
Function above intended as
safe mutiply, but set (and frozenset) doesn't have
tp_as_number->nb_multiply field, so it cannot be used with
* operator.
Linked PRs
This code looks strange:
cpython/Python/ast_opt.c
Lines 177 to 178 in 37e4e20
Function above intended as safe mutiply, but set (and frozenset) doesn't have
tp_as_number->nb_multiplyfield, so it cannot be used with*operator.Linked PRs
PyFrozenSet_Checkcalls #111137