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

Paul_Koning
2011-09-02T01:07:18Z

>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