diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2005-03-20 20:06:49 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2005-03-20 20:06:49 (GMT) |
commit | 0c35db9dd13113c26bab13b2027dd15ebce669e1 (patch) | |
tree | a613d46a4e6f807a2c845eabed87154f32ee615f /Doc/whatsnew | |
parent | 511a3a81744e6528e3294267e294e79bee5778d8 (diff) | |
download | cpython-0c35db9dd13113c26bab13b2027dd15ebce669e1.zip cpython-0c35db9dd13113c26bab13b2027dd15ebce669e1.tar.gz cpython-0c35db9dd13113c26bab13b2027dd15ebce669e1.tar.bz2 |
Describe how to get back lib-old; if this isn't the best way, please let me know
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/whatsnew25.tex | 15 |
1 files changed, 14 insertions, 1 deletions
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. |