[ZODB-Dev] Persistent class in python
Marius Gedminas
marius at gedmin.as
Sun Jul 20 07:43:57 EDT 2008
On Sat, Jul 19, 2008 at 07:50:56PM +0300, Микола Харечко wrote:
> Hi. I am trying to rewrite Persistent class to python. How can i write
> python class that passes this tests (persistent.txt ):
>
> Basic type structure
> --------------------
> >>> Persistent.__dictoffset__
> 0
> >>> Persistent.__weakrefoffset__
> 0
> >>> Persistent.__basicsize__ > object.__basicsize__
> True
I might be wrong, but what's the point of making the class pass these
tests? They seem like implementation details, irrelevant to most (all?)
of the users of persistent.Persistent.
> and at the same time - it will be possible to create weakreferences to
> this class (in PickleCache). Also this class must not have __slots__
> (__getstate__ method).
Marius Gedminas
--
C gives you enough rope to hang yourself. C++ also gives you the tree object to
tie it to.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zodb-dev/attachments/20080720/35a72c3c/attachment.bin
More information about the ZODB-Dev
mailing list