MCPcopy Index your code
hub / github.com/python/cpython / calc_unsupported_opcodes_table

Function calc_unsupported_opcodes_table

Tools/scripts/summarize_stats.py:1260–1269  ·  view source on GitHub ↗
(stats: Stats)

Source from the content-addressed store, hash-verified

1258 return calc
1259
1260 def calc_unsupported_opcodes_table(stats: Stats) -> Rows:
1261 unsupported_opcodes = stats.get_opcode_stats("unsupported_opcode")
1262 return sorted(
1263 [
1264 (opcode, Count(count))
1265 for opcode, count in unsupported_opcodes.get_opcode_counts().items()
1266 ],
1267 key=itemgetter(1),
1268 reverse=True,
1269 )
1270
1271 def calc_error_in_opcodes_table(stats: Stats) -> Rows:
1272 error_in_opcodes = stats.get_opcode_stats("error_in_opcode")

Callers

nothing calls this directly

Calls 5

itemgetterClass · 0.90
CountClass · 0.85
get_opcode_statsMethod · 0.80
get_opcode_countsMethod · 0.80
itemsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…