From: Tim Peters Date: Fri, 23 Aug 2002 17:48:23 +0000 (+0000) Subject: s/_as_Temporarily_Immutable/_as_temporarily_immutable/g, because the X-Git-Tag: v2.3c1~4321 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b81b252fab894d9e9494578f96f9b43373360edf;p=thirdparty%2FPython%2Fcpython.git s/_as_Temporarily_Immutable/_as_temporarily_immutable/g, because the latter is what the code actually does. --- diff --git a/Doc/lib/libsets.tex b/Doc/lib/libsets.tex index 74d09c791ff3..865a9a16d931 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}.