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
8a61d748
Commit
8a61d748
authored
Sep 27, 2016
by
Frances Wong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed two typos on Writing to Persistent Objects page
parent
c3a3a976
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
doc/guide/writing-persistent-objects.rst
doc/guide/writing-persistent-objects.rst
+2
-2
No files found.
doc/guide/writing-persistent-objects.rst
View file @
8a61d748
...
@@ -530,7 +530,7 @@ to store the value. Later they are used to look it up via ``in`` or
...
@@ -530,7 +530,7 @@ to store the value. Later they are used to look it up via ``in`` or
``
__getitem__
``.
``
__getitem__
``.
When
that
``
dict
``
is
later
loaded
from
the
database
,
the
internal
When
that
``
dict
``
is
later
loaded
from
the
database
,
the
internal
storage
is
rebuil
d
from
scratch
.
This
means
that
every
key
has
its
storage
is
rebuil
t
from
scratch
.
This
means
that
every
key
has
its
``
__hash__
``
method
called
at
least
once
,
and
may
have
its
``
__eq__
``
``
__hash__
``
method
called
at
least
once
,
and
may
have
its
``
__eq__
``
method
called
many
times
.
method
called
many
times
.
...
@@ -538,7 +538,7 @@ By default, every object, including persistent objects, inherits an
...
@@ -538,7 +538,7 @@ By default, every object, including persistent objects, inherits an
implementation
of
``
__eq__
``
and
``
__hash__
``
from
:
class
:`
object
`.
implementation
of
``
__eq__
``
and
``
__hash__
``
from
:
class
:`
object
`.
These
default
implementations
are
based
on
the
object
's *identity*,
These
default
implementations
are
based
on
the
object
's *identity*,
that is, its unique identifier within the current Python process.
that is, its unique identifier within the current Python process.
Calling
, them, therefore
is very fast, even on :ref:`ghosts
Calling
them, therefore,
is very fast, even on :ref:`ghosts
<ghost-label>`, and doesn'
t
cause
a
ghost
to
load
its
state
.
<ghost-label>`, and doesn'
t
cause
a
ghost
to
load
its
state
.
If
you
override
``
__eq__
``
and
``
__hash__
``
in
a
custom
persistent
If
you
override
``
__eq__
``
and
``
__hash__
``
in
a
custom
persistent
...
...
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