This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: [PATCH 4/7] [python] API for macros: Add methods to get a gdb.Macro.
- From: <Paul_Koning at Dell dot com>
- To: <ratmice at gmail dot com>, <pmuldoon at redhat dot com>
- Cc: <tromey at redhat dot com>, <gdb-patches at sourceware dot org>
- Date: Thu, 1 Sep 2011 20:07:02 -0500
- Subject: RE: [PATCH 4/7] [python] API for macros: Add methods to get a gdb.Macro.
- References: <1314198654-9008-1-git-send-email-ratmice@gmail.com> <1314198654-9008-5-git-send-email-ratmice@gmail.com> <m3k49vt5jc.fsf@redhat.com> <m3pqjmbxvu.fsf@fleche.redhat.com> <m3d3fmr6e4.fsf@redhat.com> <m34o0yr63g.fsf@redhat.com> <CACTLOFpyH79uLw2tFjk=Z+G6+n8DxHWbtWYOEtxgnVvVDJ3WrA@mail.gmail.com>
>What would be preferred is an immutable list with a constant time append only exposed to the c api.
>but python doesn't really have one of these.
What about PyTuple_SetItem? It appends an item to a tuple; the description doesn't say if it's constant time, but given how it's meant to be used one would hope it is.
paul