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
8d18922a
Commit
8d18922a
authored
Apr 21, 2000
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Collector #1182: Allow call to get() w/o explicit default
parent
3b7ae70b
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 @
8d18922a
...
@@ -85,8 +85,8 @@
...
@@ -85,8 +85,8 @@
__doc__
=
'''Python implementation of persistent base types
__doc__
=
'''Python implementation of persistent base types
$Id: PersistentMapping.py,v 1.
6 2000/04/13 14:22:54
tseaver Exp $'''
$Id: PersistentMapping.py,v 1.
7 2000/04/21 19:20:50
tseaver Exp $'''
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
import
Persistence
import
Persistence
import
types
import
types
...
@@ -127,7 +127,7 @@ class PersistentMapping(Persistence.Persistent):
...
@@ -127,7 +127,7 @@ class PersistentMapping(Persistence.Persistent):
def
copy
(
self
):
return
self
.
__class__
(
self
.
_container
.
copy
())
def
copy
(
self
):
return
self
.
__class__
(
self
.
_container
.
copy
())
def
get
(
self
,
key
,
default
):
return
self
.
_container
.
get
(
key
,
default
)
def
get
(
self
,
key
,
default
=
None
):
return
self
.
_container
.
get
(
key
,
default
)
def
has_key
(
self
,
key
):
return
self
.
_container
.
has_key
(
key
)
def
has_key
(
self
,
key
):
return
self
.
_container
.
has_key
(
key
)
...
...
src/ZODB/PersistentMapping.py
View file @
8d18922a
...
@@ -85,8 +85,8 @@
...
@@ -85,8 +85,8 @@
__doc__
=
'''Python implementation of persistent base types
__doc__
=
'''Python implementation of persistent base types
$Id: PersistentMapping.py,v 1.
6 2000/04/13 14:22:54
tseaver Exp $'''
$Id: PersistentMapping.py,v 1.
7 2000/04/21 19:20:50
tseaver Exp $'''
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
import
Persistence
import
Persistence
import
types
import
types
...
@@ -127,7 +127,7 @@ class PersistentMapping(Persistence.Persistent):
...
@@ -127,7 +127,7 @@ class PersistentMapping(Persistence.Persistent):
def
copy
(
self
):
return
self
.
__class__
(
self
.
_container
.
copy
())
def
copy
(
self
):
return
self
.
__class__
(
self
.
_container
.
copy
())
def
get
(
self
,
key
,
default
):
return
self
.
_container
.
get
(
key
,
default
)
def
get
(
self
,
key
,
default
=
None
):
return
self
.
_container
.
get
(
key
,
default
)
def
has_key
(
self
,
key
):
return
self
.
_container
.
has_key
(
key
)
def
has_key
(
self
,
key
):
return
self
.
_container
.
has_key
(
key
)
...
...
src/persistent/mapping.py
View file @
8d18922a
...
@@ -85,8 +85,8 @@
...
@@ -85,8 +85,8 @@
__doc__
=
'''Python implementation of persistent base types
__doc__
=
'''Python implementation of persistent base types
$Id: mapping.py,v 1.
6 2000/04/13 14:22:54
tseaver Exp $'''
$Id: mapping.py,v 1.
7 2000/04/21 19:20:50
tseaver Exp $'''
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
import
Persistence
import
Persistence
import
types
import
types
...
@@ -127,7 +127,7 @@ class PersistentMapping(Persistence.Persistent):
...
@@ -127,7 +127,7 @@ class PersistentMapping(Persistence.Persistent):
def
copy
(
self
):
return
self
.
__class__
(
self
.
_container
.
copy
())
def
copy
(
self
):
return
self
.
__class__
(
self
.
_container
.
copy
())
def
get
(
self
,
key
,
default
):
return
self
.
_container
.
get
(
key
,
default
)
def
get
(
self
,
key
,
default
=
None
):
return
self
.
_container
.
get
(
key
,
default
)
def
has_key
(
self
,
key
):
return
self
.
_container
.
has_key
(
key
)
def
has_key
(
self
,
key
):
return
self
.
_container
.
has_key
(
key
)
...
...
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