Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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.

Note

Use of this standalone persistent release is not recommended or supported with ZODB < 3.11. ZODB 3.10 and earlier bundle their own version of the persistent package.

persistent Changelog

4.2.4.2 (2017-04-23)

  • Packaging-only release: fix Python 2.7 manylinux wheels.

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)

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).
Release History

Release History

This version
History Node

4.2.4.2

History Node

4.2.4.1

History Node

4.2.4

History Node

4.2.3

History Node

4.2.2

History Node

4.2.1

History Node

4.2.0

History Node

4.1.1

History Node

4.1.0

History Node

4.0.9

History Node

4.0.8

History Node

4.0.7

History Node

4.0.6

History Node

4.0.5

History Node

4.0.4

History Node

4.0.3

History Node

4.0.2

History Node

4.0.1

History Node

4.0.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
persistent-4.2.4.2-cp27-cp27m-macosx_10_6_intel.whl (148.1 kB) Copy SHA256 Checksum SHA256 cp27 Wheel Apr 23, 2017
persistent-4.2.4.2-cp27-cp27m-manylinux1_i686.whl (175.3 kB) Copy SHA256 Checksum SHA256 cp27 Wheel Apr 23, 2017
persistent-4.2.4.2-cp27-cp27m-manylinux1_x86_64.whl (180.3 kB) Copy SHA256 Checksum SHA256 cp27 Wheel Apr 23, 2017
persistent-4.2.4.2-cp27-cp27mu-manylinux1_i686.whl (175.3 kB) Copy SHA256 Checksum SHA256 cp27 Wheel Apr 23, 2017
persistent-4.2.4.2-cp27-cp27mu-manylinux1_x86_64.whl (180.3 kB) Copy SHA256 Checksum SHA256 cp27 Wheel Apr 23, 2017
persistent-4.2.4.2-cp27-cp27m-win32.whl (123.5 kB) Copy SHA256 Checksum SHA256 cp27 Wheel Apr 23, 2017
persistent-4.2.4.2-cp27-cp27m-win_amd64.whl (123.9 kB) Copy SHA256 Checksum SHA256 cp27 Wheel Apr 23, 2017
persistent-4.2.4.2-cp33-cp33m-manylinux1_i686.whl (176.4 kB) Copy SHA256 Checksum SHA256 cp33 Wheel Apr 23, 2017
persistent-4.2.4.2-cp33-cp33m-manylinux1_x86_64.whl (181.3 kB) Copy SHA256 Checksum SHA256 cp33 Wheel Apr 23, 2017
persistent-4.2.4.2-cp33-cp33m-win32.whl (123.7 kB) Copy SHA256 Checksum SHA256 cp33 Wheel Apr 23, 2017
persistent-4.2.4.2-cp33-cp33m-win_amd64.whl (124.1 kB) Copy SHA256 Checksum SHA256 cp33 Wheel Apr 23, 2017
persistent-4.2.4.2-cp34-cp34m-macosx_10_6_intel.whl (148.8 kB) Copy SHA256 Checksum SHA256 cp34 Wheel Apr 23, 2017
persistent-4.2.4.2-cp34-cp34m-manylinux1_i686.whl (179.2 kB) Copy SHA256 Checksum SHA256 cp34 Wheel Apr 23, 2017
persistent-4.2.4.2-cp34-cp34m-manylinux1_x86_64.whl (184.3 kB) Copy SHA256 Checksum SHA256 cp34 Wheel Apr 23, 2017
persistent-4.2.4.2-cp34-cp34m-win32.whl (123.6 kB) Copy SHA256 Checksum SHA256 cp34 Wheel Apr 23, 2017
persistent-4.2.4.2-cp34-cp34m-win_amd64.whl (124.0 kB) Copy SHA256 Checksum SHA256 cp34 Wheel Apr 23, 2017
persistent-4.2.4.2-cp35-cp35m-macosx_10_12_x86_64.whl (122.4 kB) Copy SHA256 Checksum SHA256 cp35 Wheel Apr 23, 2017
persistent-4.2.4.2-cp35-cp35m-macosx_10_6_intel.whl (148.9 kB) Copy SHA256 Checksum SHA256 cp35 Wheel Apr 23, 2017
persistent-4.2.4.2-cp35-cp35m-manylinux1_i686.whl (179.8 kB) Copy SHA256 Checksum SHA256 cp35 Wheel Apr 23, 2017
persistent-4.2.4.2-cp35-cp35m-manylinux1_x86_64.whl (184.8 kB) Copy SHA256 Checksum SHA256 cp35 Wheel Apr 23, 2017
persistent-4.2.4.2-cp35-cp35m-win32.whl (128.3 kB) Copy SHA256 Checksum SHA256 cp35 Wheel Apr 23, 2017
persistent-4.2.4.2-cp35-cp35m-win_amd64.whl (131.0 kB) Copy SHA256 Checksum SHA256 cp35 Wheel Apr 23, 2017
persistent-4.2.4.2-cp36-cp36m-macosx_10_6_intel.whl (148.9 kB) Copy SHA256 Checksum SHA256 cp36 Wheel Apr 23, 2017
persistent-4.2.4.2-cp36-cp36m-manylinux1_i686.whl (179.7 kB) Copy SHA256 Checksum SHA256 cp36 Wheel Apr 23, 2017
persistent-4.2.4.2-cp36-cp36m-manylinux1_x86_64.whl (184.8 kB) Copy SHA256 Checksum SHA256 cp36 Wheel Apr 23, 2017
persistent-4.2.4.2-cp36-cp36m-win32.whl (128.3 kB) Copy SHA256 Checksum SHA256 cp36 Wheel Apr 23, 2017
persistent-4.2.4.2-cp36-cp36m-win_amd64.whl (130.9 kB) Copy SHA256 Checksum SHA256 cp36 Wheel Apr 23, 2017
persistent-4.2.4.2.tar.gz (96.1 kB) Copy SHA256 Checksum SHA256 Source Apr 23, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting