From: Andrew M. Kuchling Date: Sun, 20 Mar 2005 20:06:49 +0000 (+0000) Subject: Describe how to get back lib-old; if this isn't the best way, please let me know X-Git-Tag: v2.5a0~1907 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0c35db9dd13113c26bab13b2027dd15ebce669e1;p=thirdparty%2FPython%2Fcpython.git Describe how to get back lib-old; if this isn't the best way, please let me know --- diff --git a/Doc/whatsnew/whatsnew25.tex b/Doc/whatsnew/whatsnew25.tex index 1a82844e5c80..bdcc05e4a6e1 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.