Skip to content

Commit b4954b1

Browse files
authored
GH-90230: Fix warnings and failures with --enable-pystats (GH-96622)
1 parent 11e3548 commit b4954b1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix compiler warnings and test failures when building with
2+
``--enable-pystats``.

Python/specialize.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ _Py_GetSpecializationStats(void) {
121121
err += add_stat_dict(stats, BINARY_OP, "binary_op");
122122
err += add_stat_dict(stats, COMPARE_OP, "compare_op");
123123
err += add_stat_dict(stats, UNPACK_SEQUENCE, "unpack_sequence");
124+
err += add_stat_dict(stats, FOR_ITER, "for_iter");
124125
if (err < 0) {
125126
Py_DECREF(stats);
126127
return NULL;
@@ -975,6 +976,7 @@ load_attr_fail_kind(DescriptorClassification kind)
975976
case MUTABLE:
976977
return SPEC_FAIL_ATTR_MUTABLE_CLASS;
977978
case GETSET_OVERRIDDEN:
979+
case GETATTRIBUTE_IS_PYTHON_FUNCTION:
978980
return SPEC_FAIL_OVERRIDDEN;
979981
case BUILTIN_CLASSMETHOD:
980982
return SPEC_FAIL_ATTR_BUILTIN_CLASS_METHOD;

0 commit comments

Comments
 (0)