Matthias Bussonnier <bussonniermatth...@gmail.com> added the comment:

Would it be useful to add a default implementation of `visit_Constant(self, 
node)` on NodeVisitor that go through all the isinstance() check and call the 
appropriate backward compatible method ? 

We would still have the simplification without having any breakage in backward 
compatibility. 

That feels like best of both worlds ?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36917>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to