David Turner <[EMAIL PROTECTED]> added the comment: Everything in optimize.c is about modifying the AST (this is on tlee's ast optimization branch, in case I didn't mention earlier). Also, changing asdl_seq_SET would be a bad idea, since it is used for sequences of things other than stmt_tys.
What if asdl_seq were instead a doubly-linked list? Then each node contains enough information to add and remove elements. asdl_seq_LEN would be slower, but it is rarely used. To be really slick, we could store the len of the seq in the first element's prev pointer as (len << 1) | 1. _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4327> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com