Thanks to visit codestin.com Credit goes to github.com
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 c83bc3c commit b30111fCopy full SHA for b30111f
1 file changed
Objects/typeslots.py
@@ -7,6 +7,8 @@
7
res = {}
8
for line in sys.stdin:
9
m = re.match("#define Py_([a-z_]+) ([0-9]+)", line)
10
+ if not m:
11
+ continue
12
member = m.group(1)
13
if member.startswith("tp_"):
14
member = "ht_type."+member
@@ -22,4 +24,7 @@
22
24
23
25
M = max(res.keys())+1
26
for i in range(1,M):
- print("offsetof(PyHeapTypeObject, %s)," % res[i])
27
+ if i in res:
28
+ print("offsetof(PyHeapTypeObject, %s)," % res[i])
29
+ else:
30
+ print("0,")
0 commit comments