[issue36917] ast.NodeVisitor no longer calls visit_Str

Matthias Bussonnier report at bugs.python.org
Wed May 15 11:44:15 EDT 2019


Matthias Bussonnier <bussonniermatthias at gmail.com> added the comment:

> so my vote is to revert, keep the complexity in the compiler and out of user code


Playing Devil advocate here, but the complexity depends on what transformations user want to do; with the current state of 3.8, a user that wants to visit all immutable types can do with a single visit_Constant; once 32892 reverted; they would need to implement all of visit_Str,NamedConstant,Num,Bytes, and have it called the same visit_Constant.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36917>
_______________________________________


More information about the Python-bugs-list mailing list