RFC: idioms/names for delta vs changes

Martin Pool mbp at canonical.com
Mon Nov 17 08:42:00 GMT 2008

On Mon, Nov 17, 2008 at 1:49 PM, Robert Collins
<robertc at robertcollins.net> wrote:
> On Thu, 2008-11-13 at 09:36 +0200, Marius Kruger wrote:
>> Or maybe a nice class that encapsulates the tuple:
>> you pass the tuple to its constructor and it exposes the content as
>> properties.
>> So we can have a bunch of small wrapper classes one for each type of
>> tuple.

On this topic- we looked in to python2.6's new 'namedtuple' type,
which looked like it would be just the ticket for when you want
something a bit more readable than a tuple but faster than an object.
We were surprised to find they're substantially slower than tuples,
slower even than dicts, in fact not much slower than an object....
because they are in fact just objects.  The interface would seem to
allow it to be implemented in a much faster way but that's not been
done yet.  Maybe it will be in 2.7.

Perhaps we could at some time do our own C implementation of a
namedtuple type and see how it goes.

Martin <http://launchpad.net/~mbp/>

More information about the bazaar mailing list