-
-
Notifications
You must be signed in to change notification settings - Fork 32.9k
Closed
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)
Description
This code looks strange:
Lines 177 to 178 in 37e4e20
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
serhiy-storchaka, wrongnull and chgnrdv
Metadata
Metadata
Assignees
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)