diff options
author | Tim Peters <tim.peters@gmail.com> | 2002-08-23 17:48:23 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2002-08-23 17:48:23 (GMT) |
commit | b81b252fab894d9e9494578f96f9b43373360edf (patch) | |
tree | 697c8b6f1bdd0c7f89b2aff257ddfd09be65addd /Doc/lib | |
parent | 54fd3e6ffcf42c9fa4fc0db545a3434e2f47ec94 (diff) | |
download | cpython-b81b252fab894d9e9494578f96f9b43373360edf.zip cpython-b81b252fab894d9e9494578f96f9b43373360edf.tar.gz cpython-b81b252fab894d9e9494578f96f9b43373360edf.tar.bz2 |
s/_as_Temporarily_Immutable/_as_temporarily_immutable/g, because the
latter is what the code actually does.
Diffstat (limited to 'Doc/lib')
-rw-r--r-- | Doc/lib/libsets.tex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/lib/libsets.tex b/Doc/lib/libsets.tex index 74d09c7..865a9a1 100644 --- a/Doc/lib/libsets.tex +++ b/Doc/lib/libsets.tex @@ -199,14 +199,14 @@ construct sets of sets. A similar mechanism is needed by the \method{__contains__()} and \method{remove()} methods which need to hash an element to check for membership in a set. Those methods check an element for hashability -and, if not, check for a \method{_as_Temporarily_Immutable()} method +and, if not, check for a \method{_as_temporarily_immutable()} method which returns the element wrapped by a class that provides temporary methods for \method{__hash__()}, \method{__eq__()}, and \method{__ne__()}. The alternate mechanism spares the need to build a separate copy of the original mutable object. -\class{Set} objects implement the \method{_as_Temporarily_Immutable()} +\class{Set} objects implement the \method{_as_temporarily_immutable()} method which returns the \class{Set} object wrapped by a new class \class{_TemporarilyImmutableSet}. |