Re: [Zope-dev] New IOBTrees have no 'map' method

2001-05-11 Thread Chris Withers
R. David Murray wrote: My guess, after searching for the keyword 'map' and finding an interface that calls for the implementation of __getitem__ and says this allows 'for' loops and 'map' iterations, is that you can just drop the call to the .map method and use the IOBtree directly as the

Re: [Zope-dev] New IOBTrees have no 'map' method

2001-05-11 Thread Chris McDonough
Chris Withers wrote: R. David Murray wrote: My guess, after searching for the keyword 'map' and finding an interface that calls for the implementation of __getitem__ and says this allows 'for' loops and 'map' iterations, is that you can just drop the call to the .map method and use

Re: [Zope-dev] New IOBTrees have no 'map' method

2001-05-11 Thread Chris Withers
Chris McDonough wrote: Untested... return map(lambda x, data=self.data, self=self: data[x].__of__(self), ids) ah, I see :-) Would that be faster than my little function? cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] New IOBTrees have no 'map' method

2001-05-11 Thread Chris McDonough
Chris Withers wrote: Chris McDonough wrote: Untested... return map(lambda x, data=self.data, self=self: data[x].__of__(self), ids) ah, I see :-) Would that be faster than my little function? Probably not appreciably... unless it is, of course. ;-) It depends how many things

Re: [Zope-dev] New IOBTrees have no 'map' method

2001-05-11 Thread Chris Withers
Chris McDonough wrote: Probably not appreciably... unless it is, of course. ;-) It depends how many things you're iterating over. self.data can often contain several thousand objects. Might even be slower... it'd require testing and its probably not worth it. Hehe, I'll leave it then,

Re: [Zope-dev] New IOBTrees have no 'map' method

2001-05-11 Thread R. David Murray
On Fri, 11 May 2001, Chris Withers wrote: Probably not appreciably... unless it is, of course. ;-) It depends how many things you're iterating over. Hehe, I'll leave it then, unless someone complains abotu Squishdot being dog slow... If you haven't already read it, you might be

Re: [Zope-dev] New IOBTrees have no 'map' method

2001-05-07 Thread Chris McDonough
Have you read the Interfaces.py file in the BTrees directory? - Original Message - From: Chris Withers [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 07, 2001 10:45 AM Subject: [Zope-dev] New IOBTrees have no 'map' method Hi, I was going to have the next version of

Re: [Zope-dev] New IOBTrees have no 'map' method

2001-05-07 Thread Chris Withers
Chris McDonough wrote: Have you read the Interfaces.py file in the BTrees directory? I have now, and to be honest, it didn't mean a lot to me :-( Sorry, it's late here, what am I missing? cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] New IOBTrees have no 'map' method

2001-05-07 Thread R. David Murray
On Tue, 8 May 2001, Chris Withers wrote: Chris McDonough wrote: Have you read the Interfaces.py file in the BTrees directory? I have now, and to be honest, it didn't mean a lot to me :-( Sorry, it's late here, what am I missing? My guess, after searching for the keyword 'map' and