为什么 Python 3 中不再提供编译器包?

问题描述

我只是惊喜地发现 Python 的编译器包 的文档,但注意到它在 Python 3.0 中消失了,没有任何明确的替换或解释.

I was just pleasantly surprised to came across the documentation of Python's compiler package, but noticed that it's gone in Python 3.0, without any clear replacement or explanation.

我似乎在 python-dev 上找不到任何关于这个决定是如何做出的讨论 - 有没有人对此决定有任何见解?

I can't seem to find any discussion on python-dev about how this decision was made - does anyone have any insight inot this decision?


解决方案

我相信这个功能现在已经内置了:

I believe the functionality is now built in:

  • 编译
  • ast

相关文章