What does the 'm' in a Python ABI tag mean?

﹥>﹥吖頭↗ 提交于 2019-12-08 22:07:22

问题


PEP 425 explains the compatibility tag format for built python distributions, but does not explain the ABI tag in full detail.

The ABI tag can end with a combination of the letters 'd', 'm', and 'u'. As an example, it is explained within the PEP that the 'd' means an ABI with debugging, and this answer explains that the 'u' denotes an interpreter compiled with --enable-unicode=ucs4, but I could not find the meaning of the 'm' anywhere.


回答1:


Per PEP 3149, m indicates that the ABI in question is using the pymalloc allocator:

Python implementations MAY include additional flags in the file name tag as appropriate. For example, on POSIX systems these flags will also contribute to the file name:

  • --with-pydebug (flag: d)
  • --with-pymalloc (flag: m)
  • --with-wide-unicode (flag: u)


来源:https://stackoverflow.com/questions/54097033/what-does-the-m-in-a-python-abi-tag-mean

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!