Re: [Zope-dev] an Interface expressing "a list of generator function"

2010-11-08 Thread Jean-Daniel
Ok, If I attach an item_type to the the list, I do not think I will able to use the native Python list, and should use a subclass instead. It is a bit heavyweight, especially when the intent of the use of the interface was documentation. List and generators are very common in Python and are expre

Re: [Zope-dev] zope.interface memory optimization

2010-11-08 Thread Chris McDonough
On Tue, 2010-11-09 at 01:21 +0200, Marius Gedminas wrote: > On Mon, Nov 08, 2010 at 03:35:09PM +0100, Brian Sutherland wrote: > > I've committed 2 patches to a "jinty-mem" branch of zope.interface. > > Together these patches reduce the startup memory use of my ZTK based > > application by 3%. Is th

Re: [Zope-dev] zope.interface memory optimization

2010-11-08 Thread Marius Gedminas
On Mon, Nov 08, 2010 at 03:35:09PM +0100, Brian Sutherland wrote: > I've committed 2 patches to a "jinty-mem" branch of zope.interface. > Together these patches reduce the startup memory use of my ZTK based > application by 3%. Is that enough to justify their risk/complexity? > > https://mail.

Re: [Zope-dev] zope.interface memory optimization

2010-11-08 Thread Hanno Schlichting
Hi. On Mon, Nov 8, 2010 at 3:35 PM, Brian Sutherland wrote: > I've committed 2 patches to a "jinty-mem" branch of zope.interface. > Together these patches reduce the startup memory use of my ZTK based > application by 3%. Is that enough to justify their risk/complexity? > >    https://mail.zope.o

[Zope-dev] zope.interface memory optimization

2010-11-08 Thread Brian Sutherland
I've committed 2 patches to a "jinty-mem" branch of zope.interface. Together these patches reduce the startup memory use of my ZTK based application by 3%. Is that enough to justify their risk/complexity? https://mail.zope.org/pipermail/checkins/2010-November/052516.html https://mail.zope.

Re: [Zope-dev] an Interface expressing "a list of generator function"

2010-11-08 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/08/2010 04:40 AM, Jean-Daniel wrote: > Hello, > > I have two objects which interoperate to solve a sudoku: the Sudoku class > and a vector (a list actually) of generator functions. The Sudoku interface > is simple to write as it requires three f

[Zope-dev] Zope Tests: 63 OK, 7 Failed

2010-11-08 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list. Period Sun Nov 7 13:00:00 2010 UTC to Mon Nov 8 13:00:00 2010 UTC. There were 70 messages: 6 from Zope Tests, 4 from buildbot at pov.lt, 19 from buildbot at winbot.zope.org, 8 from ccomb at free.fr, 33 from jdriessen at thehealthagency.com. Test fai

Re: [Zope-dev] Survey: most obscure errors

2010-11-08 Thread Albertas Agejevas
On Tue, Sep 14, 2010 at 12:00:58PM +0200, Marius Gedminas wrote: > What are the most obscure error conditions you've encountered while > developing Zopeish[1] applications? Trying to add a proxied object to the database gives an error that more or less clearly states this condition (proxies are un

[Zope-dev] an Interface expressing "a list of generator function"

2010-11-08 Thread Jean-Daniel
Hello, I have two objects which interoperate to solve a sudoku: the Sudoku class and a vector (a list actually) of generator functions. The Sudoku interface is simple to write as it requires three functions and an attribute. class ISudoku: board = Attribute() def free(col, line):

Re: [Zope-dev] Survey: most obscure errors

2010-11-08 Thread Lennart Regebro
On Tue, Sep 14, 2010 at 12:00, Marius Gedminas wrote: > What are the most obscure error conditions you've encountered while > developing Zopeish[1] applications? > >  [1] ZTK, Grok, Bluebream, the old Zope 3.x KGSes all qualify. > > I'm talking about situations where the error message/traceback ar