diff options
author | Brandt Bucher <brandtbucher@microsoft.com> | 2022-09-09 21:42:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-09 21:42:29 (GMT) |
commit | b4954b1a9ecdac5714b899652eeb277c32f65bf4 (patch) | |
tree | f6136d4e0a877581af2b47406cac1dbd916772ae /Python/specialize.c | |
parent | 11e3548fd1d3445ccde971d613633b58d73c3016 (diff) | |
download | cpython-b4954b1a9ecdac5714b899652eeb277c32f65bf4.zip cpython-b4954b1a9ecdac5714b899652eeb277c32f65bf4.tar.gz cpython-b4954b1a9ecdac5714b899652eeb277c32f65bf4.tar.bz2 |
GH-90230: Fix warnings and failures with --enable-pystats (GH-96622)
Diffstat (limited to 'Python/specialize.c')
-rw-r--r-- | Python/specialize.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/specialize.c b/Python/specialize.c index 299adf3..93f1d28 100644 --- a/Python/specialize.c +++ b/Python/specialize.c @@ -121,6 +121,7 @@ _Py_GetSpecializationStats(void) { err += add_stat_dict(stats, BINARY_OP, "binary_op"); err += add_stat_dict(stats, COMPARE_OP, "compare_op"); err += add_stat_dict(stats, UNPACK_SEQUENCE, "unpack_sequence"); + err += add_stat_dict(stats, FOR_ITER, "for_iter"); if (err < 0) { Py_DECREF(stats); return NULL; @@ -975,6 +976,7 @@ load_attr_fail_kind(DescriptorClassification kind) case MUTABLE: return SPEC_FAIL_ATTR_MUTABLE_CLASS; case GETSET_OVERRIDDEN: + case GETATTRIBUTE_IS_PYTHON_FUNCTION: return SPEC_FAIL_OVERRIDDEN; case BUILTIN_CLASSMETHOD: return SPEC_FAIL_ATTR_BUILTIN_CLASS_METHOD; |