INADA Naoki <songofaca...@gmail.com> added the comment: We implemented AST-level constant folding (#29469) based on the AST change (#29463).
I feel it's possible to revert AST change without reverting AST constant folding: * Docstring is exposed from AST before calling AST optimizer. * AST optimizer removes unused constant. But I don't remember how difficult it is because since this change is made one year ago (GH-46)... ---------- nosy: +benjamin.peterson, georg.brandl, rhettinger, serhiy.storchaka, vstinner _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32911> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com