summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2005-03-20 20:06:49 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2005-03-20 20:06:49 (GMT)
commit0c35db9dd13113c26bab13b2027dd15ebce669e1 (patch)
treea613d46a4e6f807a2c845eabed87154f32ee615f /Doc/whatsnew
parent511a3a81744e6528e3294267e294e79bee5778d8 (diff)
downloadcpython-0c35db9dd13113c26bab13b2027dd15ebce669e1.zip
cpython-0c35db9dd13113c26bab13b2027dd15ebce669e1.tar.gz
cpython-0c35db9dd13113c26bab13b2027dd15ebce669e1.tar.bz2
Describe how to get back lib-old; if this isn't the best way, please let me know
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/whatsnew25.tex15
1 files changed, 14 insertions, 1 deletions
diff --git a/Doc/whatsnew/whatsnew25.tex b/Doc/whatsnew/whatsnew25.tex
index 1a82844..bdcc05e 100644
--- a/Doc/whatsnew/whatsnew25.tex
+++ b/Doc/whatsnew/whatsnew25.tex
@@ -206,7 +206,20 @@ changes to your code:
\item Some old deprecated modules (\module{statcache}, \module{tzparse},
\module{whrandom}) have been moved to \file{Lib/lib-old}.
-% XXX note how to get them back
+You can get access to these modules again by adding the directory
+to your \code{sys.path}:
+
+\begin{verbatim}
+import os
+from distutils import sysconfig
+
+lib_dir = sysconfig.get_python_lib(standard_lib=True)
+old_dir = os.path.join(lib_dir, 'lib-old')
+sys.path.append(old_dir)
+\end{verbatim}
+
+Doing so is discouraged, however; it's better to update any code that
+still uses these modules.
% the pickle module no longer uses the deprecated bin parameter.