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

> Well, since the extra code will be autogenerated, guess it wouldn't be much 
> problematic. 

It will because it means that generic functions that receive asdl_seq an need 
to cast aliased pointers because they will still receive asdl_seq* items and 
you now need to cars them to the appropriate type:

int foo(asdl_seq* my_seq) {
    asdl_seq_expr* = (asdl_seq_expr*)my_seq
}

So you will end up with what I am proposing: a flag in asdl_seq that tells you 
of what type it is.

----------

_______________________________________
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