【发布时间】:2026-01-03 10:25:01
【问题描述】:
我很想为 Python 3.2 编译 Yenc。我注意到 gcc 抱怨了一个未声明的函数 PyString_Type,所以我根据 the documentation 将其替换为 PyBytes_Type。
然而,gcc 也抱怨了一个名为PyFile_Type 的未声明函数。我google了一下,发现:
Python 3.x replaces the PyFile_Type extension type
with an abstract interface and specific implementation types.
Unfortunately it doesn't make any of this directly available
with a C level api.
我绝不是 C 程序员,这让我无法解决这个问题。我该怎么做才能解决这个问题?
编辑:output of compilation、_yenc.c
谢谢!
【问题讨论】:
标签: c cpython python-3.2