[Chris Withers]
Wondering if someone could tell me the difference between an OOSet and
an OOTreeSet?
OOSet is to OOTreeSet as OOBucket is to OOBTree. An OOTreeSet is
built out of leaf-level OOSets in exactly the same way an OOBTree is
built out of leaf-level OOBuckets. More at:
http://wiki.z
On Mar 1, 2007, at 3:18 PM, Chris Withers wrote:
Gary Poster wrote:
Traceback (most recent call last):
File "", line 1, in ?
TypeError: argument to reversed() must be a sequence
The fact that this works for the OOSet is an implementation accident.
As discussed elsewhere in this thread, sets
Gary Poster wrote:
Traceback (most recent call last):
File "", line 1, in ?
TypeError: argument to reversed() must be a sequence
The fact that this works for the OOSet is an implementation accident.
As discussed elsewhere in this thread, sets are not sequences. The fact
that the elements a
On 3/1/07, Martin Aspeli <[EMAIL PROTECTED]> wrote:
Sets may turn out to be *sorted* if they're implemented with trees, but I
don't think the implementation promises that either.
The BTrees implementation definitely does promise the sorting
relationship for the results of iteration, which is us
On Mar 1, 2007, at 12:01 PM, Chris Withers wrote:
Hi Gary,
Gary Poster wrote:
What should I be using?
TreeSet.
Interesting, okay, so how should I work around this bogosity?
Is this a bug?
>>> from BTrees.OOBTree import OOTreeSet,OOSet
>>> for i in OOSet((1,2,3)): print i,
1 2 3
>>> f
Chris Withers wrote:
>
> Martin Aspeli wrote:
>>
>>
>> I'll bet one is backed by a hashtable and the other is backed by an r/b
>> tree, meaning the Set is O(1) lookups, possibly a bit less space
>> efficient
>> and non-ordered,
>
> Well, Set's are definitely ordered, same as normal python s
--On 1. März 2007 09:52:53 + Chris Withers <[EMAIL PROTECTED]>
wrote:
Martin Aspeli wrote:
I'll bet one is backed by a hashtable and the other is backed by an r/b
tree, meaning the Set is O(1) lookups, possibly a bit less space
efficient and non-ordered,
Well, Set's are definitely o
Hi Gary,
Gary Poster wrote:
What should I be using?
TreeSet.
Interesting, okay, so how should I work around this bogosity?
Is this a bug?
>>> from BTrees.OOBTree import OOTreeSet,OOSet
>>> for i in OOSet((1,2,3)): print i,
1 2 3
>>> for i in OOTreeSet((1,2,3)): print i,
1 2 3
>>
Martin Aspeli wrote:
I'll bet one is backed by a hashtable and the other is backed by an r/b
tree, meaning the Set is O(1) lookups, possibly a bit less space efficient
and non-ordered,
Well, Set's are definitely ordered, same as normal python sets...
Chris
--
Simplistix - Content Managemen
On Mar 1, 2007, at 9:04 AM, Chris Withers wrote:
Hi All,
Wondering if someone could tell me the difference between an OOSet
and an OOTreeSet?
They seem to have different interfaces and yet seem to be used in
similar circumstances in PluginIndexes/common/UnIndex.py...
I'm looking for a
Chris Withers wrote:
>
> Hi All,
>
> Wondering if someone could tell me the difference between an OOSet and
> an OOTreeSet?
>
> They seem to have different interfaces and yet seem to be used in
> similar circumstances in PluginIndexes/common/UnIndex.py...
>
> I'm looking for a set-like dat
On 3/1/07, Chris Withers <[EMAIL PROTECTED]> wrote:
My bad...
Done some testing and uploaded to zope.org...
Thank you Chris!
--
Sidnei da Silva
Enfold Systemshttp://enfoldsystems.com
Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214
___
Hi All,
Wondering if someone could tell me the difference between an OOSet and
an OOTreeSet?
They seem to have different interfaces and yet seem to be used in
similar circumstances in PluginIndexes/common/UnIndex.py...
I'm looking for a set-like data structure which will likely get pretty
Summary of messages to the zope-tests list.
Period Wed Feb 28 12:00:00 2007 UTC to Thu Mar 1 12:00:00 2007 UTC.
There were 7 messages: 7 from Zope Unit Tests.
Tests passed OK
---
Subject: OK : Zope-2.6 Python-2.1.3 : Linux
From: Zope Unit Tests
Date: Wed Feb 28 21:03:34 EST 2007
URL
Sidnei da Silva wrote:
Toc, toc. Is there anybody home?
My bad...
Done some testing and uploaded to zope.org...
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
___
Zope-Dev mailli
> Toc, toc. Is there anybody home?
I'll test it for you alsolet you know how it goes.
Andrew Sawyers
>
> On 2/23/07, Sidnei da Silva <[EMAIL PROTECTED]> wrote:
>> Someone volunteered to test and upload the Zope Installer for Windows
>> when one was ready. I believe Chris Withers was the vict..
16 matches
Mail list logo