99
1010\section {Introduction }
1111
12+ {\large This is a draft document; please report inaccuracies and
13+ omissions to the authors. \\
14+ XXX marks locations where fact-checking or rewriting is still needed.
15+ }
16+
1217A new release of Python, version 1.6, will be released some time this
1318summer. Alpha versions are already available from
1419\url {http://www.python.org/1.6/}. This article talks about the
@@ -229,7 +234,7 @@ \section{Distutils: Making Modules Easy to Install}
229234various stages of development.
230235
231236All this is documented in a new manual, \textit {Distributing Python
232- Modules }, that will be added to the basic set of Python documentation.
237+ Modules }, that joins the basic set of Python documentation.
233238
234239% ======================================================================
235240\section {String Methods }
@@ -348,8 +353,12 @@ \section{Porting to 1.6}
348353\function {str()} uses `` % .12g'' as before. The effect is that
349354\function {repr()} may occasionally show more decimal places than
350355\function {str()}, for numbers
351- XXX need example value here to demonstrate problem.
356+ For example, the number 8.1 can't be represented exactly in binary, so
357+ \code {repr(8.1)} is \code {'8.0999999999999996'}, while str(8.1) is
358+ \code {'8.1'}.
352359
360+ % The \code{-X} command-line option, which turns all standard exceptions
361+ % into strings instead of classes, has been removed.
353362
354363% ======================================================================
355364\section {Core Changes }
@@ -456,6 +465,12 @@ \section{Extending/Embedding Changes}
456465in a larger application. If you aren't dealing with Python's C API,
457466you can safely skip this section.
458467
468+ The version number of the Python C API was incremented, so C
469+ extensions compiled for 1.5.2 must be recompiled in order to work with
470+ 1.6. On Windows, attempting to import a third party extension built
471+ for Python 1.5.x usually results in an immediate crash; there's not
472+ much we can do about this. (XXX can anyone tell me why it crashes?)
473+
459474Users of Jim Fulton's ExtensionClass module will be pleased to find
460475out that hooks have been added so that ExtensionClasses are now
461476supported by \function {isinstance()} and \function {issubclass()}.
@@ -572,6 +587,8 @@ \section{New modules}
572587checks Python source code for ambiguous indentation.
573588(Contributed by Tim Peters.)
574589
590+ \item {\module {UserString}:} A base class useful for deriving objects that behave like strings.
591+
575592\item {\module {winreg}:} An interface to the Windows registry.
576593\module {winreg} has been part of PythonWin since 1995, but now has
577594been added to the core distribution, and enhanced to support Unicode.
@@ -590,7 +607,8 @@ \section{New modules}
590607% ======================================================================
591608\section {IDLE Improvements }
592609
593- XXX IDLE -- complete overhaul; what are the changes?
610+ XXX IDLE -- complete overhaul. I don't use IDLE; can anyone tell me
611+ what the changes are?
594612
595613% ======================================================================
596614\section {Deleted and Deprecated Modules }
@@ -599,12 +617,16 @@ \section{Deleted and Deprecated Modules}
599617there are now better ways to do the same thing. The \module {stdwin}
600618module is gone; it was for a platform-independent windowing toolkit
601619that's no longer developed.
602- The \module {cmp} and \module {dircmp} modules have been moved to the
603- \file {lib-old} subdirectory;
604620
605- If you have code which relies on modules that have been moved to
621+ A number of modules have been moved to the
622+ \file {lib-old} subdirectory:
623+ \module {cmp}, \module {cmpcache}, \module {dircmp}, \module {dump},
624+ \module {find}, \module {grep}, \module {packmail},
625+ \module {poly}, \module {util}, \module {whatsound}, \module {zmod}.
626+ If you have code which relies on a module that's been moved to
606627\file {lib-old}, you can simply add that directory to \code {sys.path}
607- to get them back.
628+ to get them back, but you're encouraged to update any code that uses
629+ these modules.
608630
609631XXX any others deleted?
610632
0 commit comments