Re: [Zope-dev] difference between OOSet and OOTreeSet?
Gary Poster wrote: Okay, so I want a persistent, ordered sequence which is quick to find items in and which doesn't re-store the whole sequence when an item is inserted or removed. What should I be using? Ordered, as in sorted? Or ordered, as in user-determined order? Ordered as in sorted, thankfully :-) If sorted, use BTreeSet (or the keys of a BTree). As in OOTreeSet, right? Even though my assertion is right semantically for "Set", this is a BTreeSet, and I don't see this behavior changing ever. *phew* No, it isn't a sequence, so `reversed` won't work, but `list` will always give you the same order. Well, you can iterate over it... Am I right in thinking I can get the reversed semantics I want by negating the numeric part of insert? s = OOTreeSet() s.insert(-myvalue) s.insert(-someothervalue) ...I just have to remember to re-negate them when I get 'em out? "Set" does not match the "doesn't re-store the whole sequence when an item is inserted or removed" requirement. But OOTreeSet does, right? In both cases, IMO you'll want your data to be of homogenous types. Yep, DateTimes all the way, or if you can't negate them, DateTime.timeTime's cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Re: anon http svn access status?
On Mar 1, 2:50 am, Christian Theune <[EMAIL PROTECTED]> wrote: > > the DZUG is working on a read-only mirror that will be accessible via > anonymous HTTP. > > It will likely be available shortly after the upcoming Subversion > ugprade. Great news. One question: you mention "the upcoming subversion upgrade" and Jim mentioned a zope.org subversion upgrade. Is that the same upgrade you're talking about? So: is dzug arranging the read-only http mirror via zope.org or will it be at dzug.org? Reinout ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: anon http svn access status?
Previously Reinout van Rees wrote: > On Mar 1, 2:50 am, Christian Theune <[EMAIL PROTECTED]> wrote: > > > > the DZUG is working on a read-only mirror that will be accessible via > > anonymous HTTP. > > > > It will likely be available shortly after the upcoming Subversion > > ugprade. > > Great news. > > One question: you mention "the upcoming subversion upgrade" and Jim > mentioned a zope.org subversion upgrade. Is that the same upgrade > you're talking about? So: is dzug arranging the read-only http mirror > via zope.org or will it be at dzug.org? I'm guessing that the upgrade of svn.zope.org to subversion 1.4 will allow them to use svnsync to sync it to their own repository, outside of zope.org. Wichert. -- Wichert Akkerman <[EMAIL PROTECTED]>It is simple to make things. http://www.wiggy.net/ It is hard to make things simple. ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Zope Tests: 7 OK
Summary of messages to the zope-tests list. Period Thu Mar 1 12:00:00 2007 UTC to Fri Mar 2 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: Thu Mar 1 21:07:07 EST 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-March/007363.html Subject: OK : Zope-2.6 Python-2.3.6 : Linux From: Zope Unit Tests Date: Thu Mar 1 21:08:38 EST 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-March/007364.html Subject: OK : Zope-2.7 Python-2.3.6 : Linux From: Zope Unit Tests Date: Thu Mar 1 21:10:08 EST 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-March/007365.html Subject: OK : Zope-2.8 Python-2.3.6 : Linux From: Zope Unit Tests Date: Thu Mar 1 21:11:38 EST 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-March/007366.html Subject: OK : Zope-2.9 Python-2.4.4 : Linux From: Zope Unit Tests Date: Thu Mar 1 21:13:08 EST 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-March/007367.html Subject: OK : Zope-2.10 Python-2.4.4 : Linux From: Zope Unit Tests Date: Thu Mar 1 21:14:38 EST 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-March/007368.html Subject: OK : Zope-trunk Python-2.4.4 : Linux From: Zope Unit Tests Date: Thu Mar 1 21:16:08 EST 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-March/007369.html ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] difference between OOSet and OOTreeSet?
On Mar 2, 2007, at 2:42 AM, Chris Withers wrote: Gary Poster wrote: Okay, so I want a persistent, ordered sequence which is quick to find items in and which doesn't re-store the whole sequence when an item is inserted or removed. What should I be using? Ordered, as in sorted? Or ordered, as in user-determined order? Ordered as in sorted, thankfully :-) :-) If sorted, use BTreeSet (or the keys of a BTree). As in OOTreeSet, right? Yes. Even though my assertion is right semantically for "Set", this is a BTreeSet, and I don't see this behavior changing ever. *phew* No, it isn't a sequence, so `reversed` won't work, but `list` will always give you the same order. Well, you can iterate over it... Am I right in thinking I can get the reversed semantics I want by negating the numeric part of insert? s = OOTreeSet() s.insert(-myvalue) s.insert(-someothervalue) ...I just have to remember to re-negate them when I get 'em out? Yeah, that would work. "Set" does not match the "doesn't re-store the whole sequence when an item is inserted or removed" requirement. But OOTreeSet does, right? Yes. In both cases, IMO you'll want your data to be of homogenous types. Yep, DateTimes all the way, or if you can't negate them, DateTime.timeTime's Cool. I doubt you can negate the old Zope DateTimes, but who knows what tricks that class has up its sleeve. ;-) Gary ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )