[Python-checkins] python/dist/src/Doc/lib libfuncs.tex,1.112,1.113
gvanrossum@users.sourceforge.net
gvanrossum@users.sourceforge.net
Mon, 19 Aug 2002 14:43:20 -0700
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv2517/Doc/lib
Modified Files:
libfuncs.tex
Log Message:
SF patch 576101, by Oren Tirosh: alternative implementation of
interning. I modified Oren's patch significantly, but the basic idea
and most of the implementation is unchanged. Interned strings created
with PyString_InternInPlace() are now mortal, and you must keep a
reference to the resulting string around; use the new function
PyString_InternImmortal() to create immortal interned strings.
Index: libfuncs.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libfuncs.tex,v
retrieving revision 1.112
retrieving revision 1.113
diff -C2 -d -r1.112 -r1.113
*** libfuncs.tex 17 Jul 2002 13:55:33 -0000 1.112
--- libfuncs.tex 19 Aug 2002 21:43:18 -0000 1.113
***************
*** 519,524 ****
the names used in Python programs are automatically interned, and
the dictionaries used to hold module, class or instance attributes
! have interned keys. Interned strings are immortal (never get
! garbage collected).
\end{funcdesc}
--- 519,526 ----
the names used in Python programs are automatically interned, and
the dictionaries used to hold module, class or instance attributes
! have interned keys. \versionchanged[Interned strings are not
! immortal (like they used to be in Python 2.2 and before);
! you must keep a reference to the return value of \function{intern()}
! around to benefit from it]{2.3}
\end{funcdesc}