| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 
 | Metadata-Version: 2.4
Name: persistent
Version: 6.3
Summary: Translucent persistent objects
Home-page: https://github.com/zopefoundation/persistent/
Author: Zope Foundation and Contributors
Author-email: zodb-dev@zope.org
License: ZPL-2.1
Project-URL: Documentation, https://persistent.readthedocs.io
Project-URL: Issue Tracker, https://github.com/zopefoundation/persistent/issues
Project-URL: Sources, https://github.com/zopefoundation/persistent
Classifier: Development Status :: 6 - Mature
Classifier: License :: OSI Approved :: Zope Public License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Framework :: ZODB
Classifier: Topic :: Database
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: Unix
Requires-Python: >=3.9
Description-Content-Type: text/x-rst
License-File: LICENSE.txt
Requires-Dist: zope.deferredimport
Requires-Dist: zope.interface
Requires-Dist: cffi; platform_python_implementation == "CPython"
Provides-Extra: test
Requires-Dist: zope.testrunner; extra == "test"
Requires-Dist: manuel; extra == "test"
Provides-Extra: testing
Provides-Extra: docs
Requires-Dist: Sphinx; extra == "docs"
Requires-Dist: repoze.sphinx.autointerface; extra == "docs"
Requires-Dist: sphinx_rtd_theme; extra == "docs"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: license-file
Dynamic: project-url
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary
===========================================================
 ``persistent``:  automatic persistence for Python objects
===========================================================
.. image:: https://github.com/zopefoundation/persistent/actions/workflows/tests.yml/badge.svg
        :target: https://github.com/zopefoundation/persistent/actions/workflows/tests.yml
.. image:: https://coveralls.io/repos/github/zopefoundation/persistent/badge.svg?branch=master
        :target: https://coveralls.io/github/zopefoundation/persistent?branch=master
.. image:: https://readthedocs.org/projects/persistent/badge/?version=latest
        :target: https://persistent.readthedocs.io/en/latest/
        :alt: Documentation Status
.. image:: https://img.shields.io/pypi/v/persistent.svg
        :target: https://pypi.org/project/persistent/
        :alt: Latest release
.. image:: https://img.shields.io/pypi/pyversions/persistent.svg
        :target: https://pypi.org/project/persistent/
        :alt: Python versions
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, or view the documentation at Read The Docs, for either
the latest (``https://persistent.readthedocs.io/en/latest/``) or stable
release (``https://persistent.readthedocs.io/en/stable/``).
.. 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
==========================
6.3 (2025-10-07)
================
- Fix setuptools configuration to build missing cffi extension module.
  The released wheels for version 6.2 will not work, they are missing
  a compiled extension module.
  (`#222 <https://github.com/zopefoundation/persistent/issues/222>`_)
6.2 (2025-10-02)
================
- Add preliminary support for Python 3.14b2.
- Move package build requirements from ``setup.py`` to ``pyproject.toml``.
- Drop support for Python 3.8.
- Make ``Persistent``'s ``_p_oid`` representation follow the same format as the
  ``ZODB.utils.oid_repr`` function. See
  `issue 219 <https://github.com/zopefoundation/persistent/issues/219>`_.
6.1.1 (2025-02-26)
==================
- Use ``Py_REFCNT`` to access ``cPersistentObject`` reference counts in
  assertions.
6.1 (2024-09-17)
================
- Add final support for Python 3.13.
- Removed ``persistent.cPersistence.simple_new`` fossil.
  See https://github.com/zopefoundation/persistent/pull/208
6.0 (2024-05-30)
================
- Drop support for Python 3.7.
- Build Windows wheels on GHA.
5.2 (2024-02-16)
================
- Add preliminary support for Python 3.13a3.
5.1 (2023-10-05)
================
- Add support for Python 3.12.
5.0 (2023-01-09)
================
- Build Linux binary wheels for Python 3.11.
- Drop support for Python 2.7, 3.5, 3.6.
4.9.3 (2022-11-16)
==================
- Add support for building arm64 wheels on macOS.
4.9.2 (2022-11-03)
==================
- Update Python 3.11 support to final release.
4.9.1 (2022-09-16)
==================
- Update Python 3.11 support to 3.11.0-rc1.
- Disable unsafe math optimizations in C code.  See `pull request 176
  <https://github.com/zopefoundation/persistent/pull/176>`_.
4.9.0 (2022-03-10)
==================
- Add support for Python 3.11 (as of 3.11a5).
4.8.0 (2022-03-07)
==================
- Switch package to src-layout, this is a packaging only change.
  (`#168 <https://github.com/zopefoundation/persistent/pull/168>`_)
- Add support for Python 3.10.
4.7.0 (2021-04-13)
==================
- Add support for Python 3.9.
- Move from Travis CI to Github Actions.
- Supply manylinux wheels for aarch64 (ARM).
- Fix the pure-Python implementation to activate a ghost object
  when setting its ``__class__`` and ``__dict__``. This matches the
  behaviour of the C implementation. See `issue 155
  <https://github.com/zopefoundation/persistent/issues/155>`_.
- Fix the CFFI cache implementation (used on CPython when
  ``PURE_PYTHON=1``) to not print unraisable ``AttributeErrors`` from
  ``_WeakValueDictionary`` during garbage collection. See `issue 150
  <https://github.com/zopefoundation/persistent/issues/150>`_.
- Make the pure-Python implementation of the cache run a garbage
  collection (``gc.collect()``) on ``full_sweep``, ``incrgc`` and
  ``minimize`` *if* it detects that an object that was weakly
  referenced has been ejected. This solves issues on PyPy with ZODB raising
  ``ConnectionStateError`` when there are persistent
  ``zope.interface`` utilities/adapters registered. This partly
  reverts a change from release 4.2.3.
4.6.4 (2020-03-26)
==================
- Fix an overly specific test failure using zope.interface 5. See
  `issue 144 <https://github.com/zopefoundation/persistent/issues/144>`_.
- Fix two reference leaks that could theoretically occur as the result
  of obscure errors. See `issue 143 <https://github.com/zopefoundation/persistent/issues/143>`_.
4.6.3 (2020-03-18)
==================
- Fix a crash in the test suite under a 32-bit CPython on certain
  32-bit platforms. See `issue 137
  <https://github.com/zopefoundation/persistent/issues/137>`_. Fix by
  `Jerry James <https://github.com/jamesjer>`_.
4.6.2 (2020-03-12)
==================
- Fix an ``AssertionError`` clearing a non-empty ``PersistentMapping``
  that has no connection. See `issue 139
  <https://github.com/zopefoundation/persistent/issues/139>`_.
4.6.1 (2020-03-06)
==================
- Stop installing C header files on PyPy (which is what persistent before 4.6.0
  used to do), fixes `issue 135
  <https://github.com/zopefoundation/persistent/issues/135>`_.
4.6.0 (2020-03-05)
==================
- Fix slicing of ``PersistentList`` to always return instances of the
  same class. It was broken on Python 3 prior to 3.7.4.
- Fix copying  of ``PersistentList`` and ``PersistentMapping`` using
  ``copy.copy`` to also copy the underlying data object. This was
  broken prior to Python 3.7.4.
- Update the handling of the ``PURE_PYTHON`` environment variable.
  Now, a value of "0" requires that the C extensions be used; any other
  non-empty value prevents the extensions from being used. Also, all C
  extensions are required together or none of them will be used. This
  prevents strange errors that arise from a mismatch of Python and C
  implementations. See `issue 131 <https://github.com/zopefoundation/persistent/issues/131>`_.
  Note that some private implementation details such as the names of
  the pure-Python implementations have changed.
- Fix ``PersistentList`` to mark itself as changed after calling
  ``clear`` (if needed). See `PR 115
  <https://github.com/zopefoundation/persistent/pull/115/>`_.
- Fix ``PersistentMapping.update`` to accept keyword arguments like
  the native ``UserDict``. Previously, most uses of keyword arguments
  resulted in ``TypeError``; in the undocumented and extremely
  unlikely event of a single keyword argument called ``b`` that
  happens to be a dictionary, the behaviour will change. Also adjust
  the signatures of ``setdefault`` and ``pop`` to match the native
  version.
- Fix ``PersistentList.clear``, ``PersistentMapping.clear`` and
  ``PersistentMapping.popitem`` to no longer mark the object as
  changed if it was empty.
- Add preliminary support for Python 3.9a3+.
  See `issue 124 <https://github.com/zopefoundation/persistent/issues/124>`_.
- Fix the Python implementation of the PickleCache to be able to store
  objects that cannot be weakly referenced. See `issue 133
  <https://github.com/zopefoundation/persistent/issues/133>`_.
  Note that ``ctypes`` is required to use the Python implementation
  (except on PyPy).
4.5.1 (2019-11-06)
==================
- Add support for Python 3.8.
- Update documentation to Python 3.
4.5.0 (2019-05-09)
==================
- Fully test the C implementation of the PickleCache, and fix
  discrepancies between it and the Python implementation:
  - The C implementation now raises ``ValueError`` instead of
    ``AssertionError`` for certain types of bad inputs.
  - The Python implementation uses the C wording for error messages.
  - The C implementation properly implements ``IPickleCache``; methods
    unique to the Python implementation were moved to
    ``IExtendedPickleCache``.
  - The Python implementation raises ``AttributeError`` if a
    persistent class doesn't have a ``p_jar`` attribute.
  See `issue 102
  <https://github.com/zopefoundation/persistent/issues/102>`_.
- Allow sweeping cache without ``cache_size``. ``cache_size_bytes``
  works with ``cache_size=0``, no need to set ``cache_size`` to a
  large value.
- Require ``CFFI`` on CPython for pure-Python operation. This drops
  support for Jython (which was untested). See `issue 77
  <https://github.com/zopefoundation/persistent/issues/77>`_.
- Fix DeprecationWarning about ``PY_SSIZE_T_CLEAN``.
  See `issue 108 <https://github.com/zopefoundation/persistent/issues/108>`_.
- Drop support for Python 3.4.
4.4.3 (2018-10-22)
==================
- Fix the repr of the persistent objects to include the module name
  when using the C extension. This matches the pure-Python behaviour
  and the behaviour prior to 4.4.0. See `issue 92
  <https://github.com/zopefoundation/persistent/issues/92>`_.
- Change the repr of persistent objects to format the OID as in
  integer in hexadecimal notation if it is an 8-byte byte string, as
  ZODB does. This eliminates some issues in doctests. See `issue 95
  <https://github.com/zopefoundation/persistent/pull/95>`_.
4.4.2 (2018-08-28)
==================
- Explicitly use unsigned constants for packing and unpacking C
  timestamps, fixing an arithmetic issue for GCC when optimizations
  are enabled and ``-fwrapv`` is *not* enabled. See `issue 86
  <https://github.com/zopefoundation/persistent/issues/86>`_.
4.4.1 (2018-08-23)
==================
- Fix installation of source packages on PyPy. See `issue 88
  <https://github.com/zopefoundation/persistent/issues/88>`_.
4.4.0 (2018-08-22)
==================
- Use unsigned constants when doing arithmetic on C timestamps,
  possibly avoiding some overflow issues with some compilers or
  compiler settings. See `issue 86
  <https://github.com/zopefoundation/persistent/issues/86>`_.
- Change the default representation of ``Persistent`` objects to
  include the representation of their OID and jar, if set. Also add
  the ability for subclasses to implement ``_p_repr()`` instead of
  overriding ``__repr__`` for better exception handling. See `issue 11
  <https://github.com/zopefoundation/persistent/issues/11>`_.
- Reach and maintain 100% test coverage.
- Simplify ``__init__.py``, including removal of an attempted legacy
  import of ``persistent.TimeStamp``. See `PR 80
  <https://github.com/zopefoundation/persistent/pull/80>`_.
- Add support for Python 3.7 and drop support for Python 3.3.
- Build the CFFI modules (used on PyPy or when PURE_PYTHON is set) `at
  installation or wheel building time
  <https://cffi.readthedocs.io/en/latest/cdef.html#ffibuilder-set-source-preparing-out-of-line-modules>`_
  when CFFI is available. This replaces `the deprecated way
  <https://cffi.readthedocs.io/en/latest/overview.html#abi-versus-api>`_
  of building them at import time. If binary wheels are distributed,
  it eliminates the need to have a functioning C compiler to use PyPy.
  See `issue 75
  <https://github.com/zopefoundation/persistent/issues/75>`_.
- Fix deleting the ``_p_oid`` of a pure-Python persistent object when
  it is in a cache.
- Fix deleting special (``_p``) attributes of a pure-Python persistent
  object that overrides ``__delattr__`` and correctly calls ``_p_delattr``.
- Remove some internal compatibility shims that are no longer
  necessary. See `PR 82 <https://github.com/zopefoundation/persistent/pull/82>`_.
- Make the return value of ``TimeStamp.second()`` consistent across C
  and Python implementations when the ``TimeStamp`` was created from 6
  arguments with floating point seconds. Also make it match across
  trips through ``TimeStamp.raw()``. Previously, the C version could
  initially have erroneous rounding and too much false precision,
  while the Python version could have too much precision. The raw/repr
  values have not changed. See `issue 41
  <https://github.com/zopefoundation/persistent/issues/41>`_.
4.3.0 (2018-07-30)
==================
- Fix the possibility of a rare crash in the C extension when
  deallocating items. See https://github.com/zopefoundation/persistent/issues/66
- Change cPickleCache's comparison of object sizes to determine
  whether an object can go in the cache to use ``PyObject_TypeCheck()``.
  This matches what the pure Python implementation does and is a
  stronger test that the object really is compatible with the cache.
  Previously, an object could potentially include ``cPersistent_HEAD``
  and *not* set ``tp_base`` to ``cPersistenceCAPI->pertype`` and still
  be eligible for the pickle cache; that is no longer the case. See
  `issue 69 <https://github.com/zopefoundation/persistent/issues/69>`_.
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)
==================
- 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``).
 |