Commit 8a61d748 authored by Frances Wong's avatar Frances Wong

Fixed two typos on Writing to Persistent Objects page

parent c3a3a976
...@@ -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 rebuild from scratch. This means that every key has its storage is rebuilt 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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment