RE: [PATCH 4/7] [python] API for macros: Add methods to get a gdb.Macro.

Paul_Koning
2011-09-02T01:15:37Z

Never mind, I misread the Python doc.

paul

-----Original Message-----
From: gdb-patches-owner@sourceware.org [mailto:gdb-patches-owner@sourceware.org] On Behalf Of Koning, Paul
Sent: Thursday, September 01, 2011 9:07 PM
To: ratmice@gmail.com; pmuldoon@redhat.com
Cc: tromey@redhat.com; gdb-patches@sourceware.org
Subject: RE: [PATCH 4/7] [python] API for macros: Add methods to get a gdb.Macro.

>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