]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Describe how to get back lib-old; if this isn't the best way, please let me know
authorAndrew M. Kuchling <amk@amk.ca>
Sun, 20 Mar 2005 20:06:49 +0000 (20:06 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Sun, 20 Mar 2005 20:06:49 +0000 (20:06 +0000)
Doc/whatsnew/whatsnew25.tex

index 1a82844e5c80859002900519301b9f49c572f2ac..bdcc05e4a6e12d9abb2e9a03f7a5b03d4367dd24 100644 (file)
@@ -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.