Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
0a41a647
Commit
0a41a647
authored
Jun 05, 2001
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
re-modified keys() method to prevent mutability in case where keys list is recomputed.
parent
435ff9a3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
src/Persistence/PersistentMapping.py
src/Persistence/PersistentMapping.py
+3
-3
src/ZODB/PersistentMapping.py
src/ZODB/PersistentMapping.py
+3
-3
src/persistent/mapping.py
src/persistent/mapping.py
+3
-3
No files found.
src/Persistence/PersistentMapping.py
View file @
0a41a647
...
...
@@ -85,8 +85,8 @@
__doc__
=
'''Python implementation of persistent base types
$Id: PersistentMapping.py,v 1.
9 2001/06/05 18:45:33
chrism Exp $'''
__version__
=
'$Revision: 1.
9
$'
[
11
:
-
2
]
$Id: PersistentMapping.py,v 1.
10 2001/06/05 18:49:58
chrism Exp $'''
__version__
=
'$Revision: 1.
10
$'
[
11
:
-
2
]
import
Persistence
import
types
...
...
@@ -146,7 +146,7 @@ class PersistentMapping(Persistence.Persistent):
lambda
k
:
not
isinstance
(
k
,
types
.
StringType
)
or
k
[:
1
]
!=
'_'
,
self
.
_container
.
keys
())
keys
.
sort
()
return
keys
return
list
(
keys
)
def
update
(
self
,
b
):
a
=
self
.
_container
...
...
src/ZODB/PersistentMapping.py
View file @
0a41a647
...
...
@@ -85,8 +85,8 @@
__doc__
=
'''Python implementation of persistent base types
$Id: PersistentMapping.py,v 1.
9 2001/06/05 18:45:33
chrism Exp $'''
__version__
=
'$Revision: 1.
9
$'
[
11
:
-
2
]
$Id: PersistentMapping.py,v 1.
10 2001/06/05 18:49:58
chrism Exp $'''
__version__
=
'$Revision: 1.
10
$'
[
11
:
-
2
]
import
Persistence
import
types
...
...
@@ -146,7 +146,7 @@ class PersistentMapping(Persistence.Persistent):
lambda
k
:
not
isinstance
(
k
,
types
.
StringType
)
or
k
[:
1
]
!=
'_'
,
self
.
_container
.
keys
())
keys
.
sort
()
return
keys
return
list
(
keys
)
def
update
(
self
,
b
):
a
=
self
.
_container
...
...
src/persistent/mapping.py
View file @
0a41a647
...
...
@@ -85,8 +85,8 @@
__doc__
=
'''Python implementation of persistent base types
$Id: mapping.py,v 1.
9 2001/06/05 18:45:33
chrism Exp $'''
__version__
=
'$Revision: 1.
9
$'
[
11
:
-
2
]
$Id: mapping.py,v 1.
10 2001/06/05 18:49:58
chrism Exp $'''
__version__
=
'$Revision: 1.
10
$'
[
11
:
-
2
]
import
Persistence
import
types
...
...
@@ -146,7 +146,7 @@ class PersistentMapping(Persistence.Persistent):
lambda
k
:
not
isinstance
(
k
,
types
.
StringType
)
or
k
[:
1
]
!=
'_'
,
self
.
_container
.
keys
())
keys
.
sort
()
return
keys
return
list
(
keys
)
def
update
(
self
,
b
):
a
=
self
.
_container
...
...
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