Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
65da8605
Commit
65da8605
authored
Aug 16, 2001
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added __cmp__ from Greg Ward.
parent
0732739e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
6 deletions
+15
-6
src/Persistence/PersistentMapping.py
src/Persistence/PersistentMapping.py
+5
-2
src/ZODB/PersistentMapping.py
src/ZODB/PersistentMapping.py
+5
-2
src/persistent/mapping.py
src/persistent/mapping.py
+5
-2
No files found.
src/Persistence/PersistentMapping.py
View file @
65da8605
...
...
@@ -85,8 +85,8 @@
__doc__
=
'''Python implementation of persistent base types
$Id: PersistentMapping.py,v 1.1
0 2001/06/05 18:49:58 chris
m Exp $'''
__version__
=
'$Revision: 1.1
0
$'
[
11
:
-
2
]
$Id: PersistentMapping.py,v 1.1
1 2001/08/16 17:25:41 ji
m Exp $'''
__version__
=
'$Revision: 1.1
1
$'
[
11
:
-
2
]
import
Persistence
import
types
...
...
@@ -158,3 +158,6 @@ class PersistentMapping(Persistence.Persistent):
def
values
(
self
):
return
map
(
lambda
k
,
d
=
self
:
d
[
k
],
self
.
keys
())
def
__cmp__
(
self
,
other
):
return
cmp
(
self
.
_container
,
other
.
_container
)
src/ZODB/PersistentMapping.py
View file @
65da8605
...
...
@@ -85,8 +85,8 @@
__doc__
=
'''Python implementation of persistent base types
$Id: PersistentMapping.py,v 1.1
0 2001/06/05 18:49:58 chris
m Exp $'''
__version__
=
'$Revision: 1.1
0
$'
[
11
:
-
2
]
$Id: PersistentMapping.py,v 1.1
1 2001/08/16 17:25:41 ji
m Exp $'''
__version__
=
'$Revision: 1.1
1
$'
[
11
:
-
2
]
import
Persistence
import
types
...
...
@@ -158,3 +158,6 @@ class PersistentMapping(Persistence.Persistent):
def
values
(
self
):
return
map
(
lambda
k
,
d
=
self
:
d
[
k
],
self
.
keys
())
def
__cmp__
(
self
,
other
):
return
cmp
(
self
.
_container
,
other
.
_container
)
src/persistent/mapping.py
View file @
65da8605
...
...
@@ -85,8 +85,8 @@
__doc__
=
'''Python implementation of persistent base types
$Id: mapping.py,v 1.1
0 2001/06/05 18:49:58 chris
m Exp $'''
__version__
=
'$Revision: 1.1
0
$'
[
11
:
-
2
]
$Id: mapping.py,v 1.1
1 2001/08/16 17:25:41 ji
m Exp $'''
__version__
=
'$Revision: 1.1
1
$'
[
11
:
-
2
]
import
Persistence
import
types
...
...
@@ -158,3 +158,6 @@ class PersistentMapping(Persistence.Persistent):
def
values
(
self
):
return
map
(
lambda
k
,
d
=
self
:
d
[
k
],
self
.
keys
())
def
__cmp__
(
self
,
other
):
return
cmp
(
self
.
_container
,
other
.
_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