@@ -56,13 +56,15 @@ \section{Unicode}
5656
5757Unicode strings, just like regular strings, are an immutable sequence
5858type, so they can be indexed and sliced. They also have an
59- \method {encode( \optional {\var {encoding}} )} method that returns an 8-bit
60- string in the desired encoding. Encodings are named by strings, such
61- as \code {'ascii'}, \code {'utf-8'}, \code {'iso-8859-1'}, or whatever.
62- A codec API is defined for implementing and registering new encodings
63- that are then available throughout a Python program. If an encoding
64- isn't specified, the default encoding is always 7-bit ASCII. (XXX is
65- that the current default encoding?)
59+ \method {encode( \optional {\var {encoding}} )} method that returns an
60+ 8-bit string in the desired encoding. Encodings are named by strings,
61+ such as \code {'ascii'}, \code {'utf-8'}, \code {'iso-8859-1'}, or
62+ whatever. A codec API is defined for implementing and registering new
63+ encodings that are then available throughout a Python program. If an
64+ encoding isn't specified, the default encoding is usually 7-bit ASCII,
65+ though it can be changed for your Python installation by calling the
66+ \function {sys.setdefaultencoding(\var {encoding})} function in a
67+ customized version of \file {site.py}.
6668
6769Combining 8-bit and Unicode strings always coerces to Unicode, using
6870the default ASCII encoding; the result of \code {'a' + u'bc'} is
@@ -154,10 +156,11 @@ \section{Unicode}
154156\module {re} module, which has a new underlying implementation called
155157SRE written by Fredrik Lundh of Secret Labs AB.
156158
157- (XXX M.A. Lemburg added a -U command line option, which causes the
158- Python compiler to interpret all "..." strings as u"..." (same with
159- r"..." and ur"..."). Is this just for experimenting/testing, or is it
160- actually a new feature?)
159+ A \code {-U} command line option was added which causes the Python
160+ compiler to interpret all string literals as Unicode string literals.
161+ This is intended to be used in testing and future-proofing your Python
162+ code, since some future version of Python may drop support for 8-bit
163+ strings and provide only Unicode strings.
161164
162165% ======================================================================
163166\section {Distutils: Making Modules Easy to Install }
@@ -560,7 +563,7 @@ \section{New modules}
560563
561564\item {\module {filecmp}:} Supersedes the old \module {cmp} and
562565\module {dircmp} modules, which have now become deprecated.
563- (Contributed by Moshe Zadka.)
566+ (Contributed by Gordon MacMillan and Moshe Zadka.)
564567
565568\item {\module {linuxaudio}:} Support for the \file {/dev/audio} device on Linux,
566569a twin to the existing \module {sunaudiodev} module.
@@ -599,16 +602,43 @@ \section{New modules}
599602DOS/Windows or \program {zip} on Unix, not to be confused with
600603\program {gzip}-format files (which are supported by the \module {gzip}
601604module)
602-
603605(Contributed by James C. Ahlstrom.)
604606
605607\end {itemize }
606608
607609% ======================================================================
608610\section {IDLE Improvements }
609611
610- XXX IDLE -- complete overhaul. I don't use IDLE; can anyone tell me
611- what the changes are?
612+ IDLE is the official Python cross-platform IDE, written using Tkinter.
613+ Python 1.6 includes IDLE 0.6, which adds a number of new features and
614+ improvements. A partial list:
615+
616+ \begin {itemize }
617+ \item UI improvements and optimizations,
618+ especially in the area of syntax highlighting and auto-indentation.
619+
620+ \item The class browser now shows more information, such as the top
621+ level functions in a module (XXX did I interpret that right?).
622+
623+ \item Tab width is now a user settable option. When opening an existing Python
624+ file, IDLE automatically detects the indentation conventions, and adapts.
625+
626+ \item There is now support for calling browsers on various platforms,
627+ used to open the Python documentation in a browser.
628+
629+ \item IDLE now has a command line, which is largely similar to
630+ the vanilla Python interpreter.
631+
632+ \item Call tips were added in many places.
633+
634+ \item IDLE can now be installed as a package.
635+
636+ \item In the editor window, there is now a line/column bar at the bottom.
637+
638+ \item Three new keystroke commands: Check module (Alt-F5), Import
639+ module (F5) and Run script (Ctrl-F5)
640+
641+ \end {itemize }
612642
613643% ======================================================================
614644\section {Deleted and Deprecated Modules }
0 commit comments