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.


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


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