Pablo Galindo Salgado <pablog...@gmail.com> added the comment:

> Well, since the extra code will be autogenerated, guess it wouldn't be much 
> problematic. But I see about the PEG thing.


On the other hand, having explicit types for the sequences will allow us to get 
compile errors instead of runtime errors for the standard types, so this may be 
a good possibility. Maybe some mixture of both:

* asdl_seq objects can contain an enum describing what they are.
* We have specific specializations for adding to ASDL types.

----------

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

Reply via email to