Translucent persistent objects
Project description
persistent: automatic persistence for Python objects
This package contains a generic persistence implementation for Python. It forms the core protocol for making objects interact “transparently” with a database such as the ZODB.
Please see the Sphinx documentation (docs/index.rst) for further information.
persistent Changelog
4.2.4.1 (2017-04-21)
Packaging-only release: get manylinux wheel built automatically.
4.2.4 (2017-03-20)
Avoid raising a SystemError: error return without exception set when loading an object with slots whose jar generates an exception (such as a ZODB POSKeyError) in setstate.
4.2.3 (2017-03-08)
Fix the hashcode of Python TimeStamp objects on 64-bit Python on Windows. See https://github.com/zopefoundation/persistent/pull/55
Stop calling gc.collect every time PickleCache.incrgc is called (every transaction boundary) in pure-Python mode (PyPy). This means that the reported size of the cache may be wrong (until the next GC), but it is much faster. This should not have any observable effects for user code.
Stop clearing the dict and slots of objects added to PickleCache.new_ghost (typically these values are passed to __new__ from the pickle data) in pure-Python mode (PyPy). This matches the behaviour of the C code.
Add support for Python 3.6.
Fix __setstate__ interning when state parameter is not a built-in dict
4.2.2 (2016-11-29)
Drop use of ctypes for determining maximum integer size, to increase pure-Python compatibility. See https://github.com/zopefoundation/persistent/pull/31
Ensure that __slots__ attributes are cleared when a persistent object is ghostified. (This excluses classes that override __new__. See https://github.com/zopefoundation/persistent/wiki/Notes_on_state_new_and_slots if you’re curious.)
4.2.1 (2016-05-26)
Fix the hashcode of C TimeStamp objects on 64-bit Python 3 on Windows.
4.2.0 (2016-05-05)
Fixed the Python(/PYPY) implementation TimeStamp.timeTime method to have subsecond precision.
When testing PURE_PYTHON environments under tox, avoid poisoning the user’s global wheel cache.
Add support for Python 3.5.
Drop support for Python 2.6 and 3.2.
4.1.1 (2015-06-02)
Fix manifest and re-upload to fix stray files included in 4.1.0.
4.1.0 (2015-05-19)
Make the Python implementation of Persistent and PickleCache behave more similarly to the C implementation. In particular, the Python version can now run the complete ZODB and ZEO test suites.
Fix the hashcode of the Python TimeStamp on 32-bit platforms.
4.0.9 (2015-04-08)
Make the C and Python TimeStamp objects behave more alike. The Python version now produces the same repr and .raw() output as the C version, and has the same hashcode. In addition, the Python version is now supports ordering and equality like the C version.
Intern keys of object state in __setstate__ to reduce memory usage when unpickling multiple objects with the same attributes.
Add support for PyPy3.
100% branch coverage.
4.0.8 (2014-03-20)
Add support for Python 3.4.
In pure-Python Persistent, avoid loading state in _p_activate for non-ghost objects (which could corrupt their state). (PR #9)
In pure-Python, and don’t throw POSKeyError if _p_activate is called on an object that has never been committed. (PR #9)
In pure-Python Persistent, avoid calling a subclass’s __setattr__ at instance creation time. (PR #8)
Make it possible to delete _p_jar / _p_oid of a pure-Python Persistent object which has been removed from the jar’s cache (fixes aborting a ZODB Connection that has added objects). (PR #7)
4.0.7 (2014-02-20)
Avoid a KeyError from _p_accessed() on newly-created objects under pure-Python: these objects may be assigned to a jar, but not yet added to its cache. (PR #6)
Avoid a failure in Persistent.__setstate__ when the state dict contains exactly two keys. (PR #5)
Fix a hang in picklecache invalidation if OIDs are manually passed out-of-order. (PR #4)
Add PURE_PYTHON environment variable support: if set, the C extensions will not be built, imported, or tested.
4.0.6 (2013-01-03)
Updated Trove classifiers.
4.0.5 (2012-12-14)
Fixed the C-extensions under Py3k (previously they compiled but were not importable).
4.0.4 (2012-12-11)
Added support for Python 3.3.
C extenstions now build under Python 3.2, passing the same tests as the pure-Python reference implementation.
4.0.3 (2012-11-19)
Fixed: In the C implimentation, an integer was compared with a pointer, with undefined results and a compiler warning.
Fixed: the Python implementation of the _p_estimated_size propety didn’t support deletion.
Simplified implementation of the _p_estimated_size property to only accept integers. A TypeError is raised if an incorrect type is provided.
4.0.2 (2012-08-27)
Correct initialization functions in renamed _timestamp extension.
4.0.1 (2012-08-26)
Worked around test failure due to overflow to long on 32-bit systems.
Renamed TimeStamp extension module to avoid clash with pure-Python timestamp module on case-insensitive filesystems.
N.B: the canonical way to import the TimeStamp class is now:
from persistent.timestamp import TimeStamp
which will yield the class from the extension module (if available), falling back to the pure-Python reference implementation.
4.0.0 (2012-08-11)
Platform Changes
Added explicit support for Python 3.2 and PyPy.
Note that the C implementations of Persistent, PickleCache, and Timestamp are not built (yet) on these platforms.
Dropped support for Python < 2.6.
Testing Changes
100% unit test coverage.
Removed all ZODB-dependent tests:
Rewrote some to avoid the dependency
Cloned the remainder into new ZODB.tests modules.
Refactored some doctests refactored as unittests.
Completed pure-Python reference implementations of ‘Persistent’, ‘PickleCache’, and ‘TimeStamp’.
All covered platforms tested under tox.
Added support for continuous integration using tox and jenkins.
Added setup.py dev alias (installs nose and coverage).
Dropped dependency on zope.testing / zope.testrunner: tests now run with setup.py test.
Documentation Changes
Refactored many Doctests as Sphinx documentation (snippets are exercised via ‘tox’).
Added setup.py docs alias (installs Sphinx and repoze.sphinx.autointerface).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for persistent-4.2.4.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2928ca88f8b01d9cd110b1faf97a9b5f62a0cb0f9ec1000c7ba347fce5103d4f |
|
MD5 | 8da101d8e4f6a77381ad3880cca01b05 |
|
BLAKE2b-256 | 8ba7e73c0c364c935a3c10d28f5fbcbd44a3f9a3200ba02efbab59982b8a6f92 |
Hashes for persistent-4.2.4.1-cp36-cp36m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e03d7a64a6c34677be6ec2412cf3a1934556539bfef1ca00482d13fb9b933726 |
|
MD5 | b8512b7355885f0c59be44e0908b2894 |
|
BLAKE2b-256 | 49e9598e822bf5f228eaf7bba86efbe02d33cc56b6afa9387d9037485114cc4a |
Hashes for persistent-4.2.4.1-cp36-cp36m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d5e04ce2918fef4d0f18b341e396cf0aad44a255d630eea516998db098592b7 |
|
MD5 | 6c8cba07762a4878dad2fcd10401c47b |
|
BLAKE2b-256 | ec3cfcc4c42a4ea2e64a796152e858062e0ef2eae7cdd78fc4b46cc1e1810dc6 |
Hashes for persistent-4.2.4.1-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f990955ed718f2feb4413aed8915a3008800f43ed5e33dc656ac3d85e97a0a2 |
|
MD5 | 216c9298a02c794af4c04e8d11c45ca9 |
|
BLAKE2b-256 | f5964f19975dc417f23ef58332d0a79a06fffee233a8df3358e694e7953b6312 |
Hashes for persistent-4.2.4.1-cp35-cp35m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a40b525ebeb7422d39b744dd652a8c099a704e93a013b59e10b171ce2175ba16 |
|
MD5 | 1f9b8872d152b1eeb516ddbf8c3a6a27 |
|
BLAKE2b-256 | 5137c54d2bab8ec85b18562ed5d81cc60af537a3fb06ec6269faa224882dc486 |
Hashes for persistent-4.2.4.1-cp35-cp35m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 683a3fffe2a419961f77d9e446728530a186a4f53740b4586816a419b4316d02 |
|
MD5 | 25ef782d89a4f0ade7c272ed20718f49 |
|
BLAKE2b-256 | 627ef36e81f25e9f0aac3ae08f19f5965967af7bfb4616fa2449527d57ac8a71 |
Hashes for persistent-4.2.4.1-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b40efccdc898746a0aedf93cac03f572843372567bfafff01859990476fe55b0 |
|
MD5 | 78ee4b315fe6e04798c4d42f024afa57 |
|
BLAKE2b-256 | 4949cb980136dbc89bce7c5a0c10fe13379eb1e098d9dcdb50c011c652b5d239 |
Hashes for persistent-4.2.4.1-cp34-cp34m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c6736eab399270f86c0b2557e44d9cc8a0d9fd72ef7943f447417bd880a40d8 |
|
MD5 | 68d5ad4b03a5224c9f9c29164de4231c |
|
BLAKE2b-256 | 0add940325bee7407f5ccb389bac4efda809038d02de58d52fa5da97d3cd3541 |
Hashes for persistent-4.2.4.1-cp34-cp34m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fcbbcd8a6459278a719b2fa0deee610f86b85e5336b68f03353f82bb18dc9a2 |
|
MD5 | 9f2f4c85947fb7481253106bcc666953 |
|
BLAKE2b-256 | 46f933c08637addcf37b005c515b4b3b61336c0133ec0ac764847580153b0749 |
Hashes for persistent-4.2.4.1-cp33-cp33m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7919d7d85ec2f5ae343071a62a196af32fb65598216d1287b43f455e95c0efca |
|
MD5 | a05f8451c76924cc018b0d7c721c1cfc |
|
BLAKE2b-256 | 605cab530e455ab0f97420ce0990567982c5d55170f7c33a20461058535e4c6e |
Hashes for persistent-4.2.4.1-cp33-cp33m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7dad1ae8716d3ee5e1b66fe7fa0113c38d3101010ead50a174f4bc9e963abf4f |
|
MD5 | bf0cc4b776111ecd05f7775e82a92997 |
|
BLAKE2b-256 | 759514589c6323ef4b19d8a05033a91cf6859d2035afd1dd2cc161d948361c16 |
Hashes for persistent-4.2.4.1-cp27-cp27m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87890de7c0c763fbc8ce1b577249acd1b8316ab538edc358226c3776e52f911e |
|
MD5 | e3e331cdb02a6bd0c4a4160ab2e0879b |
|
BLAKE2b-256 | 4551652d60a52725295b44e311edea3886701c5b6c7d1119b0e1d2b2e87b0db7 |