[PEAK] Trellis patch (py2.6, -OO, Component.__cells__ undo)

Sergey Schetinin maluke at gmail.com
Sat Apr 4 08:34:06 EDT 2009


I've just noticed that some of the bugfixes from last year were
commited this February. Great!
I submit a small patch that
1. makes Trellis import on py2.6 without warning
2. makes Trellis work when running in -OO mode (docstring)
3. undo-logs registration of new cells in Cells(comp)
The last one would need more work once multithreading is supported,
because now setdefault is not enough to ensure thread-safety.
(Rollback in one of the threads can remove cells created by another.)

I'm attaching the test as well.



-- 
Best Regards,
Sergey Schetinin

http://s3bk.com/ -- S3 Backup
http://word-to-html.com/ -- Word to HTML Converter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: my.patch
Type: application/octet-stream
Size: 2015 bytes
Desc: not available
Url : http://www.eby-sarna.com/pipermail/peak/attachments/20090404/7cfab7e9/my.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-newcell-undo.py
Type: application/octet-stream
Size: 524 bytes
Desc: not available
Url : http://www.eby-sarna.com/pipermail/peak/attachments/20090404/7cfab7e9/test-newcell-undo.obj


More information about the PEAK mailing list