Pablo Galindo Salgado <[email protected]> added the comment:
> I know it's moot now, but still -- what benefit do we get from using a
> "standard" like ASDL? All our tooling for it is custom for Python only.
I think there are other tools or implementations of Python that use standard
parsers for our ASDL file.
In any case, AFAIU we don't need to modify the current ASDL definition as it
already has type information that we need. For instance:
| Block(int blocknum, stmt* stmts)
that says that stmts is a sequence of stmt objects, but unfortunately, this is
translated as an "asdl_seq" type, losing the information that it can only
contain stmt types. This is what I am planning to address here.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue41746>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com