Describe how to get back lib-old; if this isn't the best way, please let me know

This commit is contained in:
Andrew M. Kuchling 2005-03-20 20:06:49 +00:00
parent 511a3a8174
commit 0c35db9dd1
1 changed files with 14 additions and 1 deletions

View 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.