[Python-checkins] python/dist/src/Doc/whatsnew whatsnew25.tex, 1.7,
1.8
akuchling at users.sourceforge.net
akuchling at users.sourceforge.net
Sun Mar 20 21:06:52 CET 2005
Update of /cvsroot/python/python/dist/src/Doc/whatsnew
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19921
Modified Files:
whatsnew25.tex
Log Message:
Describe how to get back lib-old; if this isn't the best way, please let me know
Index: whatsnew25.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/whatsnew/whatsnew25.tex,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- whatsnew25.tex 20 Mar 2005 19:52:18 -0000 1.7
+++ whatsnew25.tex 20 Mar 2005 20:06:49 -0000 1.8
@@ -206,7 +206,20 @@
\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.
More information about the Python-checkins
mailing list