]> granicus.if.org Git - python/log
python
23 years agoFolding some Wizard boilerplate back in, created in new Wise projects but
Tim Peters [Sun, 29 Jul 2001 18:55:06 +0000 (18:55 +0000)]
Folding some Wizard boilerplate back in, created in new Wise projects but
not in the stuff we inherited from Wise 5.0 -- better safe than sorry.

23 years agoUpdated to Wise 8.14 (web update).
Tim Peters [Sun, 29 Jul 2001 09:28:37 +0000 (09:28 +0000)]
Updated to Wise 8.14 (web update).
Got rid of useless "Welcome" screen.
Folded Tcl/Tk into the main Python component.
Bug introduced during upgrade:  Start Menu entries didn't work if
    installation was to a path with an embedded space, because the
    enclosing quotes somehow got dropped on the cmdline args.  Repaired.
Years of wizard-generated code blocks left this script hard to read.
    Added many more comments, blank lines, and rearranged related code
    into related blocks where they had drifted apart.
Added %_PYMAJOR_% and %_PYMINOR_% compiler vrbls, and reworked script
    items to use them as appropriate.  This should slash the amount of
    hand-fiddling needed when version numbers change.  Indeed, in the
    body of the script, only the first line should need changing now.
Deleted unreferenced wizard-generated compiler vrbls.

23 years agoMake some adjustments to the markup, and fix up some style-guide issues.
Fred Drake [Sun, 29 Jul 2001 03:41:23 +0000 (03:41 +0000)]
Make some adjustments to the markup, and fix up some style-guide issues.

23 years agoWoo hoo! Relative paths! This is, alas, partly braindead: When the new
Tim Peters [Sun, 29 Jul 2001 02:04:20 +0000 (02:04 +0000)]
Woo hoo!  Relative paths!  This is, alas, partly braindead:  When the new
"relative paths" option is enabled, 8.1 rewrites *every* path to be
relative to PCbuild (the dir containing the .wse script), even absolute
paths you type in by hand, paths to the Wise installation itself, and even
paths to the Windows directories (sheesh).  Only way to stop it is to
start a path with a variable reference, and we screwed ourselves before
by not using the predefined %_WISE_% vrbl to point to the Wise
installation.  Repaired that old, repeated and well-hidden mistake.
Also:
+ Got rid of the %_SRC_% vrbl (such paths always relative to PCBuild now).
+ Changed the %_DOC_% vrbl to prompt for the location of the unzipped
  HTML files (defaults to ..\html, cuz that's where I put them, but I
  expect I'll change that later cuz I always hated mixing the generated
  docs into the CVS tree ... Guido, if you're reading this, where did you
  unpack the docs when building a Windows installer?  Happy to oblige.).
+ Stopped the generated installer from filling up the entire screen (got
  rid of the massive blue background gradient -- new option).
+ Added the helpful app publisher and app URL registry entries that Win2K
  displays in its version of Add/Remove.

23 years agoConvert from Wise version 5.0 to 8.1. Gotta hand it to 'em! 8.1 imported
Tim Peters [Sun, 29 Jul 2001 00:48:54 +0000 (00:48 +0000)]
Convert from Wise version 5.0 to 8.1.  Gotta hand it to 'em!  8.1 imported
the old script without any complaints, didn't demand any manual changes,
and built a working installer from it that acts very much like the old one.
It did add a few script items, and changed one, so checking it in now
before I break everything again.

23 years agoPatch #443337: Fix incompatibilities in imputil's behavior.
Martin v. Löwis [Sat, 28 Jul 2001 20:33:41 +0000 (20:33 +0000)]
Patch #443337: Fix incompatibilities in imputil's behavior.

23 years agoRemove usage of strop module.
Martin v. Löwis [Sat, 28 Jul 2001 17:59:34 +0000 (17:59 +0000)]
Remove usage of strop module.

23 years agoPatch #416224: add readline completion to cmd.Cmd.
Martin v. Löwis [Sat, 28 Jul 2001 14:44:03 +0000 (14:44 +0000)]
Patch #416224: add readline completion to cmd.Cmd.

23 years agoSquash compiler wng about mixing signed and unsigned in comparison.
Tim Peters [Sat, 28 Jul 2001 09:36:36 +0000 (09:36 +0000)]
Squash compiler wng about mixing signed and unsigned in comparison.

23 years agoMove Windows to Expat 1.95.2. CAUTION: Your Windows build won't work
Tim Peters [Sat, 28 Jul 2001 07:56:38 +0000 (07:56 +0000)]
Move Windows to Expat 1.95.2.  CAUTION:  Your Windows build won't work
until you download the new expat and install it; see PCbuild\readme.txt.

23 years agoAdded the -X/--no-docstrings flag which takes a filename containing a
Barry Warsaw [Fri, 27 Jul 2001 16:47:18 +0000 (16:47 +0000)]
Added the -X/--no-docstrings flag which takes a filename containing a
list of files to not extract docstrings from when the -D option is
given.  This isn't optimal, but I didn't want to change the semantics
of -D, and it's bad form to allow optional switch arguments.

Bumping __version__ to 1.4.

TokenEater.__init__(): Initialize __curfile to None.

__waiting(): In order to extract docstrings from the module, both the
    -D flag should be set, and the __curfile should not be named in
    the -X filename (i.e. it isn't in opts.nodocstrings).

set_filename(): Fixed a bug where once the first module docstring is
    extracted, no subsequent module docstrings will be extracted.  The
    bug was that the first extraction set __freshmodule to 0, but that
    flag was never reset back to 1.  set_filename() is always called
    when the next file is being processed, so use it to reset the
    __freshmodule flag.

main(): Add support for -X/--no-docstring.

23 years agoFix buffer_info() docstring to match reality. See SF bug #444842.
Guido van Rossum [Fri, 27 Jul 2001 16:05:32 +0000 (16:05 +0000)]
Fix buffer_info() docstring to match reality.  See SF bug #444842.

23 years agoconfig.h renamed to pyconfig.h
Jack Jansen [Fri, 27 Jul 2001 09:22:03 +0000 (09:22 +0000)]
config.h renamed to pyconfig.h

23 years agoProgressBar crashed when you tried to drag it. Fixed. Thanks go to Alfonso Baciero.
Jack Jansen [Fri, 27 Jul 2001 09:21:28 +0000 (09:21 +0000)]
ProgressBar crashed when you tried to drag it. Fixed. Thanks go to Alfonso Baciero.

23 years agoOne more crack at join(): stop trying to pretend this isn't a mass of
Tim Peters [Fri, 27 Jul 2001 08:09:54 +0000 (08:09 +0000)]
One more crack at join():  stop trying to pretend this isn't a mass of
special cases.  test_pkg works again on Windows.

23 years agoChange ntpath.join() so that join("d:/", "/whatever") returns
Tim Peters [Thu, 26 Jul 2001 21:54:37 +0000 (21:54 +0000)]
Change ntpath.join() so that join("d:/", "/whatever") returns
d:/whatever instead of /whatever.  While I'm afraid changing isabs()
to be *consistent* with this would break lots of code, it makes
best sense for join() to do it this way.  Thanks to Alex Martelli for
pushing back on this one!

23 years agoRepair more now-obsolete references to config.h.
Tim Peters [Thu, 26 Jul 2001 21:34:59 +0000 (21:34 +0000)]
Repair more now-obsolete references to config.h.

23 years agoDocument the PYTHONY2K environment variable that had been left out of this
Fred Drake [Thu, 26 Jul 2001 21:25:58 +0000 (21:25 +0000)]
Document the PYTHONY2K environment variable that had been left out of this
list.

Present the URLs at the bottom in a consistent manner, conforming to the
style guide.

Remove the lone use of "e.g.", which the style guide does not allow.

23 years agoTypo fix.
Greg Ward [Thu, 26 Jul 2001 21:01:21 +0000 (21:01 +0000)]
Typo fix.

23 years agoSF bug #444510: int() should guarantee truncation.
Tim Peters [Thu, 26 Jul 2001 20:02:17 +0000 (20:02 +0000)]
SF bug #444510: int() should guarantee truncation.
It's guaranteed now, assuming the platform modf() works correctly.

23 years agoAdd backwards compatibility.
Marc-André Lemburg [Thu, 26 Jul 2001 18:06:58 +0000 (18:06 +0000)]
Add backwards compatibility.

23 years agoUndoing the UCS-4 patch addition which caused unichr() to return
Marc-André Lemburg [Thu, 26 Jul 2001 16:29:25 +0000 (16:29 +0000)]
Undoing the UCS-4 patch addition which caused unichr() to return
surrogates for Unicode code points outside range(0x10000) on narrow
Python builds.

23 years agoPatch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis [Thu, 26 Jul 2001 13:41:06 +0000 (13:41 +0000)]
Patch #411138: Rename config.h to pyconfig.h.  Closes bug #231774.

23 years agoUntabify IPv6 changes.
Martin v. Löwis [Thu, 26 Jul 2001 13:37:33 +0000 (13:37 +0000)]
Untabify IPv6 changes.

23 years agoFix a denial-of-service attack, SF bug #443120.
Guido van Rossum [Wed, 25 Jul 2001 21:00:19 +0000 (21:00 +0000)]
Fix a denial-of-service attack, SF bug #443120.

Code by Evan Simpson.

23 years agoUndo revision 1.7: always mangle a #! line containing "python" to point
Greg Ward [Wed, 25 Jul 2001 20:20:11 +0000 (20:20 +0000)]
Undo revision 1.7: always mangle a #! line containing "python" to point
to the current Python interpreter (ie. the one used for
building/installation), even (especially!) if "/usr/bin/env" appears in
the #! line.

Rationale: installing scripts with "#!/usr/bin/env python" is asking for
trouble, because
  1) it might pick the wrong interpreter (not the one used to
     build/install the script)
  2) it doesn't work on all platforms (try it on IRIX 5, or on Linux
     with command-line options for python)
  3) "env" might not be in /usr/bin

23 years agoDon't "import *" from stat at all -- just import what's needed, and
Greg Ward [Wed, 25 Jul 2001 19:48:03 +0000 (19:48 +0000)]
Don't "import *" from stat at all -- just import what's needed, and
do it back in copy_file() (not at module level).

23 years agotrivial rewording in footnote 5.
Skip Montanaro [Wed, 25 Jul 2001 16:18:19 +0000 (16:18 +0000)]
trivial rewording in footnote 5.

23 years agoFix for bug #444493: u'\U00010001' segfaults with current CVS on
Marc-André Lemburg [Wed, 25 Jul 2001 16:05:59 +0000 (16:05 +0000)]
Fix for bug #444493: u'\U00010001' segfaults with current CVS on
wide builds.

23 years agoAllow usage of gcc on OSF/1; this reverts rev 1.23 of configure.in,
Martin v. Löwis [Wed, 25 Jul 2001 07:30:35 +0000 (07:30 +0000)]
Allow usage of gcc on OSF/1; this reverts rev 1.23 of configure.in,
and fixes bug #438786.

23 years agoRemove unused imports from previous checkin.
Martin v. Löwis [Wed, 25 Jul 2001 06:12:16 +0000 (06:12 +0000)]
Remove unused imports from previous checkin.

23 years agoPatch #401196: Use getaddrinfo and AF_INET6 in TCP servers and clients.
Martin v. Löwis [Tue, 24 Jul 2001 20:34:08 +0000 (20:34 +0000)]
Patch #401196: Use getaddrinfo and AF_INET6 in TCP servers and clients.

23 years agoAdd entry for the new distutils section.
Fred Drake [Tue, 24 Jul 2001 16:20:13 +0000 (16:20 +0000)]
Add entry for the new distutils section.

23 years agoOverview comments for the distutils package, with links to the distutils
Fred Drake [Tue, 24 Jul 2001 16:19:24 +0000 (16:19 +0000)]
Overview comments for the distutils package, with links to the distutils
manuals for more information.  This is being added to make it easier to
find the documentation for the distutils code.

23 years agoAdd labels to all \section and \subsection headings for use in references.
Fred Drake [Tue, 24 Jul 2001 14:38:34 +0000 (14:38 +0000)]
Add labels to all \section and \subsection headings for use in references.

23 years agoChanged findertools.move() to move() in movetotrash.
Jack Jansen [Tue, 24 Jul 2001 11:37:23 +0000 (11:37 +0000)]
Changed findertools.move() to move() in movetotrash.

23 years agoUse HAVE_SNPRINTF, not HAVE_SPRINTF, for checking the availability of
Thomas Wouters [Tue, 24 Jul 2001 11:03:34 +0000 (11:03 +0000)]
Use HAVE_SNPRINTF, not HAVE_SPRINTF, for checking the availability of
snprintf.

23 years agoPatch #443669: Permit _tkinter to build on cygwin32.
Martin v. Löwis [Tue, 24 Jul 2001 06:54:01 +0000 (06:54 +0000)]
Patch #443669: Permit _tkinter to build on cygwin32.

23 years agoAutocheck for snprintf, and use sprintf if it is not available.
Martin v. Löwis [Tue, 24 Jul 2001 06:33:08 +0000 (06:33 +0000)]
Autocheck for snprintf, and use sprintf if it is not available.
Remove declaration of h_errno, since it is supposedly declared in netdb.h.
Changes proposed by itojun.

23 years agoBe more specific about corner cases in the description of the $ RE syntax,
Fred Drake [Mon, 23 Jul 2001 21:14:59 +0000 (21:14 +0000)]
Be more specific about corner cases in the description of the $ RE syntax,
and include an example where the MULTILINE flag makes a real difference.

This closes SF bug #441600.

23 years agoOh, ok, so plainpager is probably marginally better.
Fred Drake [Mon, 23 Jul 2001 19:48:10 +0000 (19:48 +0000)]
Oh, ok, so plainpager is probably marginally better.

23 years agoIf $TERM is "dumb" or "emacs", just dump the text instead of trying to run
Fred Drake [Mon, 23 Jul 2001 19:44:30 +0000 (19:44 +0000)]
If $TERM is "dumb" or "emacs", just dump the text instead of trying to run
"less".
Patch contributed by Alex Convertry.
This closes SF patch #443551.

23 years agoWhen explaining the enterabs() method, using the modern spelling of apply(),
Fred Drake [Mon, 23 Jul 2001 19:28:09 +0000 (19:28 +0000)]
When explaining the enterabs() method, using the modern spelling of apply(),
and relax the type of the argument list from tuple to sequence.

23 years agoRemove self-reference from the anydbm module.
Fred Drake [Mon, 23 Jul 2001 19:22:42 +0000 (19:22 +0000)]
Remove self-reference from the anydbm module.
This closes SF patch #443788.

23 years agoTypo: Added missing "if".
Fred Drake [Mon, 23 Jul 2001 19:20:56 +0000 (19:20 +0000)]
Typo:  Added missing "if".
This is part of SF patch #442788.

23 years agoAdd StopIteration to the list of exceptions *not* derived from StandardError.
Fred Drake [Mon, 23 Jul 2001 19:19:39 +0000 (19:19 +0000)]
Add StopIteration to the list of exceptions *not* derived from StandardError.
Slightly re-word discussion of SystemExit and fork().
This is part of SF patch #443788.

23 years agoConvert the use of apply(f, args) to the new spelling: f(*args).
Fred Drake [Mon, 23 Jul 2001 19:16:22 +0000 (19:16 +0000)]
Convert the use of apply(f, args) to the new spelling: f(*args).
This is part of SF patch #443788.

23 years agoFix typo in comment.
Neil Schemenauer [Mon, 23 Jul 2001 16:50:15 +0000 (16:50 +0000)]
Fix typo in comment.

23 years agoAdd -E command line switch (ignore environment variables like PYTHONHOME
Neil Schemenauer [Mon, 23 Jul 2001 16:30:27 +0000 (16:30 +0000)]
Add -E command line switch (ignore environment variables like PYTHONHOME
and PYTHONPATH).

23 years agoMake this test work under Windows as well.
Fred Drake [Mon, 23 Jul 2001 16:30:21 +0000 (16:30 +0000)]
Make this test work under Windows as well.

23 years agoTest for the "glob" module, contributed by Nick Mathewson.
Fred Drake [Mon, 23 Jul 2001 16:08:36 +0000 (16:08 +0000)]
Test for the "glob" module, contributed by Nick Mathewson.
Heavily modified so this doesn't break on Windows.
This closes SF patch #441175.

23 years agoPatch number #422106 by Greg Ball, to fix segmentation
Moshe Zadka [Mon, 23 Jul 2001 13:32:43 +0000 (13:32 +0000)]
Patch number #422106 by Greg Ball, to fix segmentation
fault in sys.displayhook.

Please check this in on the 2.2a1 branch (or whatever is necessary
to get it working next release)

23 years agoAlex Coventry (SF patch 441791).
Guido van Rossum [Mon, 23 Jul 2001 13:28:37 +0000 (13:28 +0000)]
Alex Coventry (SF patch 441791).

23 years agoSF Patch #441791, with changes: when "import foo.bar" fails with an
Guido van Rossum [Mon, 23 Jul 2001 13:27:49 +0000 (13:27 +0000)]
SF Patch #441791, with changes: when "import foo.bar" fails with an
exception in the execution of bar, ensure that foo.bar exists.
(Previously, while sys.modules['foo.bar'] would exist, foo.bar would
only be created upon successful execution of bar.  This is
inconvenient; some would say wrong. :-)

23 years agoWhitespace normalization.
Tim Peters [Mon, 23 Jul 2001 09:44:21 +0000 (09:44 +0000)]
Whitespace normalization.
Note:  This test fails on Windows.  Don't know why yet.

23 years agoBefore declaring h_errno, do not check for Win32 only. Instead, do check
Martin v. Löwis [Mon, 23 Jul 2001 07:27:16 +0000 (07:27 +0000)]
Before declaring h_errno, do not check for Win32 only. Instead, do check
whether h_errno is a macro.

23 years agoTests for the "commands" module, contributed by Nick Mathewson.
Fred Drake [Mon, 23 Jul 2001 04:08:01 +0000 (04:08 +0000)]
Tests for the "commands" module, contributed by Nick Mathewson.
This closes SF patch #440291.

23 years agoNew tests by Nick Mathewson, for the fpformat module.
Fred Drake [Mon, 23 Jul 2001 02:46:35 +0000 (02:46 +0000)]
New tests by Nick Mathewson, for the fpformat module.
This closes SF patch #440290.

23 years agoInstead of accessing ss_family, cast sockaddr_storage to sockaddr and access sa_family.
Martin v. Löwis [Mon, 23 Jul 2001 01:30:10 +0000 (01:30 +0000)]
Instead of accessing ss_family, cast sockaddr_storage to sockaddr and access sa_family.

23 years agoLeave the Inno script in better shape. Added registration of .py etc
Tim Peters [Sat, 21 Jul 2001 21:16:39 +0000 (21:16 +0000)]
Leave the Inno script in better shape.  Added registration of .py etc
extensions -- but Inno uninstall doesn't restore previous ones (if any),
so that's another step backwards.

23 years agoSet ai_addrlen even if there is no sa_len.
Martin v. Löwis [Sat, 21 Jul 2001 18:48:56 +0000 (18:48 +0000)]
Set ai_addrlen even if there is no sa_len.

23 years agoPatch #401196: IPv6 extensions to the socket module.
Martin v. Löwis [Sat, 21 Jul 2001 18:05:31 +0000 (18:05 +0000)]
Patch #401196: IPv6 extensions to the socket module.
New functions getnameinfo, getaddrinfo. New exceptions socket.gaierror,
socket.herror. Various new constants, in particular AF_INET6 and error
codes and parameters for getaddrinfo.
AF_INET6 support in setipaddr, makesockaddr, getsockaddr, getsockaddrlen,
gethost_common, PySocket_gethostbyaddr.

23 years agoAdd item about the new xml.sax.saxutils.quoteaddr() function.
Fred Drake [Sat, 21 Jul 2001 12:25:10 +0000 (12:25 +0000)]
Add item about the new xml.sax.saxutils.quoteaddr() function.

23 years agoupdated about info for 0.8.1 release
Steven M. Gava [Sat, 21 Jul 2001 09:59:58 +0000 (09:59 +0000)]
updated about info for 0.8.1 release

23 years agonew material for 0.8.1 release
Steven M. Gava [Sat, 21 Jul 2001 09:50:55 +0000 (09:50 +0000)]
new material for 0.8.1 release

23 years agoSilence warnings in MSVC++: hide unused variables, add constness back to
Martin v. Löwis [Sat, 21 Jul 2001 09:42:15 +0000 (09:42 +0000)]
Silence warnings in MSVC++: hide unused variables, add constness back to
inet_pton/ntop, convert htons argument to u_short.

23 years agoGet started on 2.2a2 NEWS.
Tim Peters [Sat, 21 Jul 2001 02:31:40 +0000 (02:31 +0000)]
Get started on 2.2a2 NEWS.

23 years agoOn WIndows, skip the part of test_dircache that can't work on Windows.
Tim Peters [Sat, 21 Jul 2001 02:22:14 +0000 (02:22 +0000)]
On WIndows, skip the part of test_dircache that can't work on Windows.

23 years agoWhitespace normalization, plus:
Tim Peters [Sat, 21 Jul 2001 01:41:30 +0000 (01:41 +0000)]
Whitespace normalization, plus:
+ test_quopri.py relied on significant trailing spaces.  Fixed.
+ test_dircache.py (still) doesn't work on Windows (directory mtime on
  Windows doesn't work like it does on Unix).

23 years agoCorrected a section reference (title was wrong).
Fred Drake [Fri, 20 Jul 2001 20:59:49 +0000 (20:59 +0000)]
Corrected a section reference (title was wrong).

Added information on the return values of PyArg_ParseTuple() and
PyArg_ParseTupleAndKeywords().

23 years agoTypo: PyArgs_ParseTuple --> PyArg_ParseTuple
Fred Drake [Fri, 20 Jul 2001 20:56:11 +0000 (20:56 +0000)]
Typo:  PyArgs_ParseTuple --> PyArg_ParseTuple

Moved the PyArg_Parse*(), Py_BuildValue() functions to the Utilities
chapter, added a minimal description and reference to the Extending
manual for Py_BuildValue().

23 years agoAdded information on Py_BuildValue().
Fred Drake [Fri, 20 Jul 2001 20:55:31 +0000 (20:55 +0000)]
Added information on Py_BuildValue().

23 years agoMake the add*() helper functions more robust for use after intialization
Fred Drake [Fri, 20 Jul 2001 20:06:17 +0000 (20:06 +0000)]
Make the add*() helper functions more robust for use after intialization
is complete:  recompute _dirs_in_sys_path each time these functions are
entered after module initialization is complete, and reset before
returning to user code.

This closes SF patch #442983.

23 years agoPatch #429442 from Jason Tishler: Corrects sys.platform and
Andrew M. Kuchling [Fri, 20 Jul 2001 19:29:04 +0000 (19:29 +0000)]
Patch #429442 from Jason Tishler: Corrects sys.platform and
    distutils.util.get_platform() problems caused by the cruft contained
    in Cygwin's uname -s.

23 years agoUse string.ascii_letters instead of string.letters (SF bug #226706).
Fred Drake [Fri, 20 Jul 2001 19:05:50 +0000 (19:05 +0000)]
Use string.ascii_letters instead of string.letters (SF bug #226706).

23 years agoAdd a missing "\" to the markup.
Fred Drake [Fri, 20 Jul 2001 19:03:44 +0000 (19:03 +0000)]
Add a missing "\" to the markup.

23 years agoUse string.ascii_letters instead of string.letters (SF bug #226706).
Fred Drake [Fri, 20 Jul 2001 18:58:42 +0000 (18:58 +0000)]
Use string.ascii_letters instead of string.letters (SF bug #226706).
Move computation of sets of characters out of the body of the function that
uses them.

23 years agoUse string.ascii_letters instead of string.letters (SF bug #226706).
Fred Drake [Fri, 20 Jul 2001 18:53:34 +0000 (18:53 +0000)]
Use string.ascii_letters instead of string.letters (SF bug #226706).
Work-around a font-lock bogosity.

23 years agoUse string.ascii_letters instead of string.letters.
Fred Drake [Fri, 20 Jul 2001 18:52:02 +0000 (18:52 +0000)]
Use string.ascii_letters instead of string.letters.
Remove unused import.

23 years agoAdded the constants ascii_letters, ascii_lowercase, and ascii_uppercase
Fred Drake [Fri, 20 Jul 2001 18:38:26 +0000 (18:38 +0000)]
Added the constants ascii_letters, ascii_lowercase, and ascii_uppercase
to the string module.  This was determined to be the right approach in
SF bug #226706.

23 years agoMore Unicode corrections from MAL to match a post-2.2a1 change
Andrew M. Kuchling [Fri, 20 Jul 2001 18:34:34 +0000 (18:34 +0000)]
More Unicode corrections from MAL to match a post-2.2a1 change
Mention additional new imaplib.py features

(Don't expect to see an updated version of the Web page until around the 28th
   of July.  Vacation time!)

23 years agoMake the unicode-escape and the UTF-16 codecs handle surrogates
Marc-André Lemburg [Fri, 20 Jul 2001 17:39:11 +0000 (17:39 +0000)]
Make the unicode-escape and the UTF-16 codecs handle surrogates
correctly and thus roundtrip-safe.

Some minor cleanups of the code.

Added tests for the roundtrip-safety.

23 years ago#ifdef out generation of \U escapes unless Py_UNICODE_WIDE. This
Guido van Rossum [Fri, 20 Jul 2001 16:36:21 +0000 (16:36 +0000)]
#ifdef out generation of \U escapes unless Py_UNICODE_WIDE.  This
#caused warnings with the VMS C compiler.  (SF bug #442998, in part.)
On a narrow system the current code should never be executed since ch
will always be < 0x10000.

Marc-Andre: you may end up fixing this a different way, since I
believe you have plans to generate \U for surrogate pairs.  I'll leave
that to you.

23 years agoRemoved unnecessary section "Unicode literals"; all the discussion is
Fred Drake [Fri, 20 Jul 2001 15:33:23 +0000 (15:33 +0000)]
Removed unnecessary section "Unicode literals"; all the discussion is
already present in the "String literals" section, including comments on
the "u" prefix and the additional escape sequences used for Unicode.

This relates to SF bug #442526.

23 years agoCopying this 2.1.1 bugfix to the trunk:
Guido van Rossum [Fri, 20 Jul 2001 14:57:12 +0000 (14:57 +0000)]
Copying this 2.1.1 bugfix to the trunk:

Fix showstopper SF bug #442983: use of site.addsitedir() was broken
because it references the global dirs_in_sys_path which is deleted.
The fix avoids deleting that global.

(My email through python.org or digicool.com is non-functional at the
moment; use gvanrossum@home.com to reach me.)

23 years agoFix typo in description of raw strings: "value" --> "valid"
Fred Drake [Fri, 20 Jul 2001 14:32:28 +0000 (14:32 +0000)]
Fix typo in description of raw strings: "value" --> "valid"

This closes SF bug #443059.

23 years agoapply patch item #416254
Piers Lauder [Fri, 20 Jul 2001 11:04:19 +0000 (11:04 +0000)]
apply patch item #416254

23 years agoapply patch item #416253
Piers Lauder [Fri, 20 Jul 2001 10:52:06 +0000 (10:52 +0000)]
apply patch item #416253

23 years agofix missed conversion in ESR's string conversion
Piers Lauder [Fri, 20 Jul 2001 10:28:51 +0000 (10:28 +0000)]
fix missed conversion in ESR's string conversion

23 years agoA full Inno Setup script for Python, except for the few hard and esoteric
Tim Peters [Fri, 20 Jul 2001 09:32:16 +0000 (09:32 +0000)]
A full Inno Setup script for Python, except for the few hard and esoteric
parts Inno has no good answer for (read the comments at the top of the
script).

23 years agoupdate in preparation for 0.8.1 alpha release
Steven M. Gava [Fri, 20 Jul 2001 08:53:38 +0000 (08:53 +0000)]
update in preparation for 0.8.1 alpha release

23 years agoRemove the TENTATIVE marker from the now-historic Windows buildnos.
Tim Peters [Fri, 20 Jul 2001 05:17:10 +0000 (05:17 +0000)]
Remove the TENTATIVE marker from the now-historic Windows buildnos.

23 years agoBump release number to 1.00, while I'm at it
Andrew M. Kuchling [Fri, 20 Jul 2001 03:22:00 +0000 (03:22 +0000)]
Bump release number to 1.00, while I'm at it

23 years agobring up to date for 0.8.1 release
Steven M. Gava [Fri, 20 Jul 2001 01:36:49 +0000 (01:36 +0000)]
bring up to date for 0.8.1 release

23 years agoRegression test for the dircache module, contributed by Nick Mathewson.
Fred Drake [Thu, 19 Jul 2001 22:59:09 +0000 (22:59 +0000)]
Regression test for the dircache module, contributed by Nick Mathewson.
Modified by Fred Drake.
This closes SF patch #440827.

23 years agoTest for the repr module, contributed by Nick Mathewson.
Fred Drake [Thu, 19 Jul 2001 22:27:56 +0000 (22:27 +0000)]
Test for the repr module, contributed by Nick Mathewson.
This closes SF patch #440826.

23 years agoKill more warnings from the SGI compiler.
Fred Drake [Thu, 19 Jul 2001 21:49:38 +0000 (21:49 +0000)]
Kill more warnings from the SGI compiler.
Part of SF patch #434992.

23 years agoMake more warnings go away on the SGI compiler.
Fred Drake [Thu, 19 Jul 2001 21:29:49 +0000 (21:29 +0000)]
Make more warnings go away on the SGI compiler.
This is part of SF patch #424992.

23 years agoClean up some warnings from the SGI compiler.
Fred Drake [Thu, 19 Jul 2001 21:16:41 +0000 (21:16 +0000)]
Clean up some warnings from the SGI compiler.
This is part of SF patch #434992.

23 years agoKill a warning on the SGI compiler.
Fred Drake [Thu, 19 Jul 2001 21:11:13 +0000 (21:11 +0000)]
Kill a warning on the SGI compiler.
This is part of SF patch #434992.