Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在从 Hy 0.12.1 更新到最新版本 0.18.0,并且在我的 python 代码中大量使用了 import_buffer_to_ast 函数。
此功能已从 hy.importer 中删除,我希望有人能引导我找到一个好的选择。
hy.importer主要包括内部 Hy 功能,这些功能可能会更改,恕不另行通知。您可以尝试使用新的内部函数,例如ast_compileor hy_compile,但希望您可以从公共函数(例如hy.eval,hy.read_str和hy.read.
hy.importer
ast_compile
hy_compile
hy.eval
hy.read_str
hy.read