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 i
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 th
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 ho
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]
http://li
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 met
"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
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
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
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,
>
Hi,
I was going to have the next version of Squishdot use the new BTrees, but it
appears that the new objects don't have the same methods as the old ones.
In particular, the following line from Squishdot:
return map(lambda x, p=self: x.__of__(p),
self.data.map(self.site_id_list(currtime)))
10 matches
Mail list logo