SLOW_SUM
flag in sum
builtin
#119192
Labels
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-bug
An unexpected behavior, bug, or error
Bug report
Here's a very strange condition that we have in our
sum
definition:cpython/Python/bltinmodule.c
Lines 2573 to 2577 in 0abf997
But, here are the strange parts:
SLOW_SUM
is never documentedconfigure
options to set itI propose to remove it and always have a single way how
sum
behaves.I will send a PR.
Linked PRs
#ifndef SLOW_SUM
check fromsum()
, use#if 1
#119193The text was updated successfully, but these errors were encountered: