Commit 866f384
Fix type construction issues
Summary:
A couple of issues around defining static types in 3.14:
1) We can't use `_PyObject_GenericSetAttrWithDict` to set attributes as there's an assertion it doesn't get called for types.
2) 1UL << 2 is now Py_TPFLAGS_INLINE_VALUES, we need to use a different free value.
Reviewed By: alexmalyshev
Differential Revision: D83679254
fbshipit-source-id: e8dcb45e614e3b5afbe56bef6a687f30047c2d1a1 parent d853e23 commit 866f384
2 files changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1556 | 1556 | | |
1557 | 1557 | | |
1558 | 1558 | | |
1559 | | - | |
1560 | | - | |
| 1559 | + | |
1561 | 1560 | | |
1562 | 1561 | | |
1563 | 1562 | | |
| |||
0 commit comments