We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ff064a commit 02083d9Copy full SHA for 02083d9
src/objects/PyTypeObject.cpp
@@ -119,6 +119,8 @@ namespace PyExt::Remote {
119
120
auto PyTypeObject::getStaticBuiltinIndex() const -> SSize
121
{
122
+ if (isPython2())
123
+ return -1;
124
auto type = remoteType();
125
auto flagsRaw = type.Field("tp_flags");
126
auto flags = utils::readIntegral<unsigned long>(flagsRaw);
@@ -134,6 +136,8 @@ namespace PyExt::Remote {
134
136
135
137
auto PyTypeObject::hasInlineValues() const -> bool
138
139
140
+ return false;
141
auto flagsRaw = remoteType().Field("tp_flags");
142
143
return flags & (1 << 2); // Py_TPFLAGS_INLINE_VALUES
0 commit comments