Commit b1bbdc4
committed
Make sure that tp_as_xxx methods are never NULL in PyType_Ready()
PyType_Ready() now sets type tp_as_xxx members to a structure filled
of NULL if a member is NULL. It avoids checking if tp_as_xxx is NULL
in Objects/abstract.c functions.1 parent e66bec0 commit b1bbdc4
22 files changed
Lines changed: 205 additions & 367 deletions
File tree
- Include/internal
- Modules
- _testinternalcapi
- Objects
- Programs
- Python
- Tools/build
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments