Commit 9c2e0fe
[3.14] pythongh-132775: Fix _PyFunctIon_VerifyStateless() (pythongh-134901)
pythongh-132775: Fix _PyFunctIon_VerifyStateless() ()
The problem we're fixing here is that we were using PyDict_Size() on "defaults",
which it is actually a tuple. We're also adding some explicit type checks.
This is a follow-up to pythongh-133221/pythongh-133528.
(cherry picked from commit dafd141, AKA pythongh-134900)
Co-authored-by: Eric Snow <[email protected]>1 parent 4670ddd commit 9c2e0fe
1 file changed
+20
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1264 | 1264 | | |
1265 | 1265 | | |
1266 | 1266 | | |
1267 | | - | |
1268 | | - | |
1269 | | - | |
1270 | | - | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
1271 | 1274 | | |
1272 | 1275 | | |
1273 | 1276 | | |
1274 | | - | |
1275 | | - | |
1276 | | - | |
1277 | | - | |
1278 | | - | |
1279 | | - | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
1280 | 1284 | | |
1281 | 1285 | | |
1282 | 1286 | | |
1283 | | - | |
1284 | | - | |
1285 | | - | |
1286 | | - | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
1287 | 1293 | | |
1288 | 1294 | | |
1289 | 1295 | | |
| |||
0 commit comments