This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author novalis_dt
Recipients jhylton, novalis_dt
Date 2008-11-24.18:19:02
SpamBayes Score 5.409271e-05
Marked as misclassified No
Message-id <1227550743.1.0.334214151989.issue4327@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2008-11-24 18:19:03novalis_dtsetrecipients: + novalis_dt, jhylton
2008-11-24 18:19:03novalis_dtsetmessageid: <1227550743.1.0.334214151989.issue4327@psf.upfronthosting.co.za>
2008-11-24 18:19:02novalis_dtlinkissue4327 messages
2008-11-24 18:19:02novalis_dtcreate