This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]