Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
persistent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
persistent
Commits
c6e818db
Commit
c6e818db
authored
Dec 19, 2016
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change note
parent
d03760b3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
5 deletions
+15
-5
.gitignore
.gitignore
+1
-0
CHANGES.rst
CHANGES.rst
+9
-3
persistent/persistence.py
persistent/persistence.py
+5
-2
No files found.
.gitignore
View file @
c6e818db
...
...
@@ -15,3 +15,4 @@ coverage.xml
.installed.cfg
.dir-locals.el
dist
htmlcov
CHANGES.rst
View file @
c6e818db
...
...
@@ -7,15 +7,21 @@
- Fix the hashcode of Python ``TimeStamp`` objects on 64-bit Python on
Windows. See https://github.com/zopefoundation/persistent/pull/55
4.2.2 (2016-11-29)
------------------
- 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.
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
...
...
persistent/persistence.py
View file @
c6e818db
...
...
@@ -422,8 +422,11 @@ class Persistent(object):
_OSA
(
self
,
'_Persistent__flags'
,
None
)
if
clear
:
idict
=
_OGA
(
self
,
'__dict__'
,
None
)
if
idict
is
not
None
:
try
:
idict
=
_OGA
(
self
,
'__dict__'
)
except
AttributeError
:
pass
else
:
idict
.
clear
()
type_
=
type
(
self
)
# for backward-compatibility reason we release __slots__ only if
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment