Batuhan Taskaya <batuhanosmantask...@gmail.com> added the comment:

> I was also thinking about getting rid of "string" nodes and just use Constant 
> for those. Having the strings raw make the AST inconsistent because nodes 
> that are 'strings' do not have line numbers and other metadata, making tools 
> that need the source to report stuff more complex than it should.

I'm +1 on that (especially for finding import aliases, as we discussed 
earlier), if necessary precautions happen to ensure minimum breakage (from what 
I understand, it is something that will break everyone's code. Maybe we can 
implement custom Constant.__str__? and other different things to ensure it 
breaks small).

----------

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

Reply via email to