From 0c35db9dd13113c26bab13b2027dd15ebce669e1 Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Sun, 20 Mar 2005 20:06:49 +0000 Subject: Describe how to get back lib-old; if this isn't the best way, please let me know --- Doc/whatsnew/whatsnew25.tex | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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. -- cgit v0.12