]> granicus.if.org Git - python/log
python
25 years agoFix the tests now that splitdrive() no longer treats UNC paths special.
Guido van Rossum [Tue, 6 Apr 1999 19:38:18 +0000 (19:38 +0000)]
Fix the tests now that splitdrive() no longer treats UNC paths special.
(Some tests converted to splitunc() tests.)

25 years agoWithdraw the UNC support from splitdrive(). Instead, a new function
Guido van Rossum [Tue, 6 Apr 1999 19:32:19 +0000 (19:32 +0000)]
Withdraw the UNC support from splitdrive().  Instead, a new function
splitunc() parses UNC paths.  The contributor of the UNC parsing in
splitdrive() doesn't like it, but I haven't heard a good reason to
keep it, and it causes some problems.  (I think there's a
philosophical problem -- to me, the split*() functions are purely
syntactical, and the fact that \\foo is not a valid path doesn't mean
that it shouldn't be considered an absolute path.)

Also (quite separately, but strangely related to the philosophical
issue above) fix abspath() so that if win32api exists, it doesn't fail
when the path doesn't actually exist -- if GetFullPathName() fails,
fall back on the old strategy (join with getcwd() if neccessary, and
then use normpath()).

25 years agoFor BeOS PowerPC. Chris Herborth.
Guido van Rossum [Tue, 6 Apr 1999 15:50:51 +0000 (15:50 +0000)]
For BeOS PowerPC.  Chris Herborth.

25 years agoAdded more "See also" entries, + 1 inline hyperlink.
Fred Drake [Mon, 5 Apr 1999 22:18:12 +0000 (22:18 +0000)]
Added more "See also" entries, + 1 inline hyperlink.

25 years agoFixed latex2html weirdness with footnotes.
Fred Drake [Mon, 5 Apr 1999 21:59:15 +0000 (21:59 +0000)]
Fixed latex2html weirdness with footnotes.

25 years agocorrect version info for zlib.
Jeremy Hylton [Mon, 5 Apr 1999 21:55:21 +0000 (21:55 +0000)]
correct version info for zlib.

add note about module failing with old versions of the library.

update comment that explains that this doc is *still* out of date

25 years agoJonathan Giddy notes, and Chris Lawrence agrees, that some comments on
Guido van Rossum [Mon, 5 Apr 1999 21:54:14 +0000 (21:54 +0000)]
Jonathan Giddy notes, and Chris Lawrence agrees, that some comments on
#else/#endif are wrong, and that #if HAVE_TM_ZONE should be #ifdef.

25 years agoFixed latex2html weirdness with footnotes.
Fred Drake [Mon, 5 Apr 1999 21:39:17 +0000 (21:39 +0000)]
Fixed latex2html weirdness with footnotes.

25 years agoFixed latex2html weirdness with footnotes.
Fred Drake [Mon, 5 Apr 1999 21:32:52 +0000 (21:32 +0000)]
Fixed latex2html weirdness with footnotes.

25 years agoFixed latex2html weirdness for a footnote.
Fred Drake [Mon, 5 Apr 1999 21:26:37 +0000 (21:26 +0000)]
Fixed latex2html weirdness for a footnote.

25 years agoopen() description: Made it more clear that 'b' should always be
Fred Drake [Mon, 5 Apr 1999 21:22:41 +0000 (21:22 +0000)]
open() description:  Made it more clear that 'b' should always be
added to the mode value for binary files to improve
portability.

Fixed latex2html weirdness with a couple of footnotes.

25 years agoBunch of new contributors, including 9 who contributed to the Docs,
Guido van Rossum [Mon, 5 Apr 1999 21:18:12 +0000 (21:18 +0000)]
Bunch of new contributors, including 9 who contributed to the Docs,
reported by Fred.

25 years agoAdded a few items to the "See also" sections at Guido's prompting. Made
Fred Drake [Mon, 5 Apr 1999 19:46:21 +0000 (19:46 +0000)]
Added a few items to the "See also" sections at Guido's prompting.  Made
more references to other modules in the text hyperlinks for the HTML and
PDF versions.

25 years agoAdded "doc" target to match the other document-prefix targets.
Fred Drake [Mon, 5 Apr 1999 19:28:29 +0000 (19:28 +0000)]
Added "doc" target to match the other document-prefix targets.

25 years agoRemoved bosities around example code; not sure where that stuff crept
Fred Drake [Mon, 5 Apr 1999 19:26:16 +0000 (19:26 +0000)]
Removed bosities around example code; not sure where that stuff crept
in!

25 years agoMade improvements based on changes just made and comments from
Fred Drake [Mon, 5 Apr 1999 19:00:54 +0000 (19:00 +0000)]
Made improvements based on changes just made and comments from
Bernhard Reiter <bernhard@csd.uwm.edu>.

25 years agoOops, missed mode parameter to open().
Fred Drake [Mon, 5 Apr 1999 18:37:59 +0000 (18:37 +0000)]
Oops, missed mode parameter to open().

25 years agoMade the default mode 'rb' instead of 'r', for better cross-platform
Fred Drake [Mon, 5 Apr 1999 18:33:40 +0000 (18:33 +0000)]
Made the default mode 'rb' instead of 'r', for better cross-platform
support.  (Based on comment on the documentation by Bernhard Reiter
<bernhard@csd.uwm.edu>).

25 years agoAdded all the "external action" methods (to make handling the verbose
Greg Ward [Sun, 4 Apr 1999 02:58:07 +0000 (02:58 +0000)]
Added all the "external action" methods (to make handling the verbose
and dry-run flags consistently painless): 'execute()', 'mkpath()',
'copy_file()', 'copy_tree()', 'make_file()', and stub for 'make_files()'
(not sure yet if it's useful).

25 years agoAdded 'dry_run' flag to most functions (to support the "shadow methods"
Greg Ward [Sun, 4 Apr 1999 02:54:20 +0000 (02:54 +0000)]
Added 'dry_run' flag to most functions (to support the "shadow methods"
  that wrap them in the Command class).
Fixed 'copy_file()' to use '_copy_file_contents()', not 'copyfile()'
  from shutil module -- no reference to shutil anymore.
Added "not copying" announcement in 'copy_file()'.
Wee comment fix.

25 years agoChanged to use the method versions of 'copy_file()', 'copy_tree()',
Greg Ward [Sun, 4 Apr 1999 02:46:29 +0000 (02:46 +0000)]
Changed to use the method versions of 'copy_file()', 'copy_tree()',
and 'make_file()'-- that way, the verbose and dry-run flags are
handled for free.

25 years agoFor reasons I dare not explain, this script should always execute
Guido van Rossum [Fri, 2 Apr 1999 22:18:25 +0000 (22:18 +0000)]
For reasons I dare not explain, this script should always execute
main() when imported (in other words, it is not usable as a module).

25 years agoJonathan Giddy write:
Guido van Rossum [Thu, 1 Apr 1999 15:32:30 +0000 (15:32 +0000)]
Jonathan Giddy write:

In test_cpickle.py, the module os got imported, but the line to remove
the temp file has gone missing.

25 years agoPer Cederqvist writes:
Guido van Rossum [Tue, 30 Mar 1999 20:17:31 +0000 (20:17 +0000)]
Per Cederqvist writes:

If you send something like "PUT / HTTP/1.0" to something derived from
BaseHTTPServer that doesn't define do_PUT, you will get a response
that begins like this:

HTTP/1.0 501 Unsupported method ('do_PUT')
Server: SimpleHTTP/0.3 Python/1.5
Date: Tue, 30 Mar 1999 18:53:53 GMT

The server should complain about 'PUT' instead of 'do_PUT'.  This
patch should fix the problem.

25 years agoAdded "Documenting Python" to the index.
Fred Drake [Tue, 30 Mar 1999 13:43:54 +0000 (13:43 +0000)]
Added "Documenting Python" to the index.

25 years agoPatch by Per Cederqvist, who writes:
Guido van Rossum [Mon, 29 Mar 1999 20:33:21 +0000 (20:33 +0000)]
Patch by Per Cederqvist, who writes:

"""
 - It needlessly used the makefile() method for each response that is
   read from the SMTP server.

 - If the remote SMTP server closes the connection unexpectedly the
   code raised an IndexError.  It now raises an SMTPServerDisconnected
   exception instead.

 - The code now checks that all lines in a multiline response actually
   contains an error code.
"""

The Dragon approves.

25 years agoWhen run as a script, report failures in the exit code as well.
Fred Drake [Mon, 29 Mar 1999 20:25:40 +0000 (20:25 +0000)]
When run as a script, report failures in the exit code as well.
Patch largely based on changes by Andrew Dalke, as discussed in the
distutils-sig.

25 years agoHack so that if a 302 or 301 redirect contains a relative URL, the
Guido van Rossum [Mon, 29 Mar 1999 20:23:41 +0000 (20:23 +0000)]
Hack so that if a 302 or 301 redirect contains a relative URL, the
right thing "just happens" (basejoin() with old URL).

25 years agoProtection against picling to/from closed (real) file.
Guido van Rossum [Mon, 29 Mar 1999 20:00:14 +0000 (20:00 +0000)]
Protection against picling to/from closed (real) file.
The problem was reported by Moshe Zadka.

25 years agoTest protection against picling to/from closed (real) file.
Guido van Rossum [Mon, 29 Mar 1999 19:59:32 +0000 (19:59 +0000)]
Test protection against picling to/from closed (real) file.

25 years ago#$@%! Forgot to remove a #error directive used for testing. Sorry.
Guido van Rossum [Mon, 29 Mar 1999 19:12:41 +0000 (19:12 +0000)]
#$@%!  Forgot to remove a #error directive used for testing.  Sorry.

25 years agoChris Lawrence writes:
Guido van Rossum [Mon, 29 Mar 1999 19:12:04 +0000 (19:12 +0000)]
Chris Lawrence writes:

"""
The GNU folks, in their infinite wisdom, have decided not to implement
altzone in libc6; this would not be horrible, except that timezone
(which is implemented) includes the current DST setting (i.e. timezone
for Central is 18000 in summer and 21600 in winter).  So Python's
timezone and altzone variables aren't set correctly during DST.

Here's a patch relative to 1.5.2b2 that (a) makes timezone and altzone
show the "right" thing on Linux (by using the tm_gmtoff stuff
available in BSD, which is how the GLIBC manual claims things should
be done) and (b) should cope with the southern hemisphere.  In pursuit
of (b), I also took the liberty of renaming the "summer" and "winter"
variables to "july" and "jan".  This patch should also make certain
time calculations on Linux actually work right (like the tz-aware
functions in the rfc822 module).

(It's hard to find DST that's currently being used in the southern
hemisphere; I tested using Africa/Windhoek.)
"""

25 years agoReplaced the last attempt at an "unreadline" with one that actually
Greg Ward [Mon, 29 Mar 1999 18:01:49 +0000 (18:01 +0000)]
Replaced the last attempt at an "unreadline" with one that actually
works on non-seekable file-like objects, such as URLs.  (Oops.)

25 years agoJonathan Giddy discovered this file was missing.
Guido van Rossum [Mon, 29 Mar 1999 15:28:54 +0000 (15:28 +0000)]
Jonathan Giddy discovered this file was missing.

25 years agoAvoid warnings from AIX compiler. Reported by Vladimir (AIX is my
Guido van Rossum [Mon, 29 Mar 1999 14:57:59 +0000 (14:57 +0000)]
Avoid warnings from AIX compiler.  Reported by Vladimir (AIX is my
middlename) Marangozov, patch coded by Greg Stein.

25 years agoFixed a lot of the smaller nits identified in Guido's comments.
Fred Drake [Mon, 29 Mar 1999 14:55:55 +0000 (14:55 +0000)]
Fixed a lot of the smaller nits identified in Guido's comments.

Filled in some of the "blank" areas, and added another large blank
area for a LaTeX primer.  (Still a lot to be done.)

25 years agoAt Tim Peters' recommendation, add a dummy flush() method to PseudoFile.
Guido van Rossum [Mon, 29 Mar 1999 14:52:28 +0000 (14:52 +0000)]
At Tim Peters' recommendation, add a dummy flush() method to PseudoFile.

25 years agoTim Peters writes:
Guido van Rossum [Sun, 28 Mar 1999 17:55:32 +0000 (17:55 +0000)]
Tim Peters writes:

I should have waited overnight <wink/sigh>.  Nothing wrong with the one I
sent, but I couldn't resist going on to add new -r1 / -r2 cmdline options
for recreating the original files from ndiff's output.  That's attached, if
you're game!  Us Windows guys don't usually have a sed sitting around
<wink>.

25 years agoTim Peters writes:
Guido van Rossum [Sat, 27 Mar 1999 13:34:01 +0000 (13:34 +0000)]
Tim Peters writes:

Attached is a cleaned-up version of ndiff (added useful module
docstring, now echo'ed in case of cmd line mistake); added -q option
to suppress initial file identification lines; + other minor cleanups,
& a slightly faster match engine.

25 years agoWhere rfc822.Message is mentioned, add a link to the rfc822 module.
Fred Drake [Sat, 27 Mar 1999 05:45:46 +0000 (05:45 +0000)]
Where rfc822.Message is mentioned, add a link to the rfc822 module.

25 years agoDuring display, if EPIPE is raised, it's probably because a pager was
Fred Drake [Fri, 26 Mar 1999 22:36:00 +0000 (22:36 +0000)]
During display, if EPIPE is raised, it's probably because a pager was
killed.  Discard the error in that case, but propogate it otherwise.

25 years agoAdded 'linestart' array and 'unreadline()' method (makes parsing a lot easier).
Greg Ward [Fri, 26 Mar 1999 21:48:59 +0000 (21:48 +0000)]
Added 'linestart' array and 'unreadline()' method (makes parsing a lot easier).

25 years agoTest suite for UserList.
Guido van Rossum [Fri, 26 Mar 1999 16:20:45 +0000 (16:20 +0000)]
Test suite for UserList.

25 years agoUse isinstance() where appropriate.
Guido van Rossum [Fri, 26 Mar 1999 16:20:18 +0000 (16:20 +0000)]
Use isinstance() where appropriate.
Reformatted with 4-space indent.

25 years agoHelpwin.__init__(): The text widget should get focus.
Barry Warsaw [Fri, 26 Mar 1999 16:11:40 +0000 (16:11 +0000)]
Helpwin.__init__(): The text widget should get focus.

25 years agoRemoved unnecessary import `from PyncheWidget import PyncheWidget'
Barry Warsaw [Fri, 26 Mar 1999 15:59:51 +0000 (15:59 +0000)]
Removed unnecessary import `from PyncheWidget import PyncheWidget'

25 years agoTest suite for UserDict
Guido van Rossum [Fri, 26 Mar 1999 15:32:05 +0000 (15:32 +0000)]
Test suite for UserDict

25 years agoImproved a bunch of things.
Guido van Rossum [Fri, 26 Mar 1999 15:31:12 +0000 (15:31 +0000)]
Improved a bunch of things.
The constructor now takes an optional dictionary.
Use isinstance() where appropriate.

25 years agoBasic regr tests for pickle/cPickle
Guido van Rossum [Thu, 25 Mar 1999 22:38:49 +0000 (22:38 +0000)]
Basic regr tests for pickle/cPickle

25 years agoAdded some rules that affect those little "See also:" sections.
Fred Drake [Thu, 25 Mar 1999 22:22:45 +0000 (22:22 +0000)]
Added some rules that affect those little "See also:" sections.

25 years agoBe more stylesheet friendly.
Fred Drake [Thu, 25 Mar 1999 22:18:30 +0000 (22:18 +0000)]
Be more stylesheet friendly.

25 years agoRequire the verbatim package (similar to the LaTeX version).
Fred Drake [Thu, 25 Mar 1999 22:17:29 +0000 (22:17 +0000)]
Require the verbatim package (similar to the LaTeX version).

25 years agoDon't use "exec" in find_class(). It's slow, unnecessary, and (as AMK
Guido van Rossum [Thu, 25 Mar 1999 21:58:59 +0000 (21:58 +0000)]
Don't use "exec" in find_class().  It's slow, unnecessary, and (as AMK
points out) it doesn't work in JPython Applets.

25 years agoAdded a simple test suite for gzip. It simply opens a temp file,
Andrew M. Kuchling [Thu, 25 Mar 1999 21:50:27 +0000 (21:50 +0000)]
Added a simple test suite for gzip.  It simply opens a temp file,
writes a chunk of compressed data, closes it, writes another chunk, and
reads the contents back to verify that they are the same.

25 years agoBased on a suggestion from bruce@hams.com, make a trivial change to
Andrew M. Kuchling [Thu, 25 Mar 1999 21:49:14 +0000 (21:49 +0000)]
Based on a suggestion from bruce@hams.com, make a trivial change to
allow using the 'a' flag as a mode for opening a GzipFile.  gzip
files, surprisingly enough, can be concatenated and then decompressed;
the effect is to concatenate the two chunks of data.

If we support it on writing, it should also be supported on reading.
This *wasn't* trivial, and required rearranging the code in the
reading path, particularly the _read() method.

Raise IOError instead of RuntimeError in two cases, 'Not a gzipped file'
and 'Unknown compression method'

25 years agoAdd tests for float() and complex() with string args (Nick/Stephanie
Guido van Rossum [Thu, 25 Mar 1999 21:25:01 +0000 (21:25 +0000)]
Add tests for float() and complex() with string args (Nick/Stephanie
Lockwood).

25 years agoDocument complex() with string arg.
Guido van Rossum [Thu, 25 Mar 1999 21:23:26 +0000 (21:23 +0000)]
Document complex() with string arg.

25 years agoAdd an .unused_data attribute to decompressor objects. If .unused_data
Andrew M. Kuchling [Thu, 25 Mar 1999 21:21:08 +0000 (21:21 +0000)]
Add an .unused_data attribute to decompressor objects.  If .unused_data
is not an empty string, this means that you have arrived at the
end of the stream of compressed data, and the contents of .unused_data are
whatever follows the compressed stream.

25 years agoPatch by Nick and Stephanie Lockwood to implement complex() with a string
Guido van Rossum [Thu, 25 Mar 1999 21:16:07 +0000 (21:16 +0000)]
Patch by Nick and Stephanie Lockwood to implement complex() with a string
argument.  This closes TODO item 2.19.

25 years agoSIGTERM is no longer caught to call sys.exitfunc.
Guido van Rossum [Thu, 25 Mar 1999 20:30:00 +0000 (20:30 +0000)]
SIGTERM is no longer caught to call sys.exitfunc.
This change was made long ago but the documentation was never updated.

25 years agoRemove \platformof support, since it's been removed from the LaTeX
Fred Drake [Thu, 25 Mar 1999 16:57:04 +0000 (16:57 +0000)]
Remove \platformof support, since it's been removed from the LaTeX
style sheet.

Small nits.

25 years agoAdded note about ftpmirror.py, since that seems to be one of the most
Fred Drake [Thu, 25 Mar 1999 05:04:17 +0000 (05:04 +0000)]
Added note about ftpmirror.py, since that seems to be one of the most
requested Python tools/examples.

25 years agoAdded Samuel Bayer's new webchecker.
Guido van Rossum [Wed, 24 Mar 1999 19:09:00 +0000 (19:09 +0000)]
Added Samuel Bayer's new webchecker.
Unfortunately his code breaks wcgui.py in a way that's not easy
to fix.  I expect that this is a temporary situation --
eventually Sam's changes will be merged back in.
(The changes add a -t option to specify exceptions to the -x
option, and explicit checking for #foo style fragment ids.)

25 years agoVladimir Marangozov contributed updated comments.
Guido van Rossum [Wed, 24 Mar 1999 19:06:42 +0000 (19:06 +0000)]
Vladimir Marangozov contributed updated comments.

25 years agoFolded long lines.
Guido van Rossum [Wed, 24 Mar 1999 19:05:31 +0000 (19:05 +0000)]
Folded long lines.

25 years agoAdded Jeremy's test code for the sha module.
Guido van Rossum [Wed, 24 Mar 1999 19:04:32 +0000 (19:04 +0000)]
Added Jeremy's test code for the sha module.

25 years agoAdded Greg Stein and Andrew Kuchling's sha module.
Guido van Rossum [Wed, 24 Mar 1999 19:03:59 +0000 (19:03 +0000)]
Added Greg Stein and Andrew Kuchling's sha module.
Fix comments about zlib version and URL.

25 years agoRemove the temp file when we're done.
Guido van Rossum [Wed, 24 Mar 1999 19:03:01 +0000 (19:03 +0000)]
Remove the temp file when we're done.

25 years agoConform to standard boilerplate.
Guido van Rossum [Wed, 24 Mar 1999 19:02:09 +0000 (19:02 +0000)]
Conform to standard boilerplate.

25 years agoChris Herborth: the new compiler in R4.1 needs some new options to work...
Guido van Rossum [Wed, 24 Mar 1999 17:48:12 +0000 (17:48 +0000)]
Chris Herborth: the new compiler in R4.1 needs some new options to work...

25 years agoImplement two suggestions by Jonathan Giddy: (1) in AIX, clear the
Guido van Rossum [Wed, 24 Mar 1999 17:24:33 +0000 (17:24 +0000)]
Implement two suggestions by Jonathan Giddy: (1) in AIX, clear the
data struct before calling gethostby{name,addr}_r(); (2) ignore the
3/5/6 args determinations made by the configure script and switch on
platform identifiers instead:

AIX, OSF have 3 args
Sun, SGI have 5 args
Linux has 6 args

On all other platforms, undef HAVE_GETHOSTBYNAME_R altogether.

25 years agoVladimir Marangozov implements the AIX 3-arg gethostbyname_r code.
Guido van Rossum [Wed, 24 Mar 1999 17:20:40 +0000 (17:20 +0000)]
Vladimir Marangozov implements the AIX 3-arg gethostbyname_r code.

25 years agoAdd readlines() to _Subfile class. Not clear who would need it, but
Guido van Rossum [Wed, 24 Mar 1999 16:20:45 +0000 (16:20 +0000)]
Add readlines() to _Subfile class.  Not clear who would need it, but
Chris Lawrence sent me a broken version; this one is a tad simpler and
more conforming to the standard.

25 years agoUse more recent option to \pdfdest to not change the zoom factor.
Fred Drake [Wed, 24 Mar 1999 14:16:17 +0000 (14:16 +0000)]
Use more recent option to \pdfdest to not change the zoom factor.
This is in response to a comment from Wes Rishel <wes@rishel.com>.

25 years agouse struct instead of bit-manipulate in Python
Jeremy Hylton [Tue, 23 Mar 1999 23:05:34 +0000 (23:05 +0000)]
use struct instead of bit-manipulate in Python

25 years agoAdd $(EXE) to various occurrences of python so it will work on Cygwin
Guido van Rossum [Tue, 23 Mar 1999 19:00:55 +0000 (19:00 +0000)]
Add $(EXE) to various occurrences of python so it will work on Cygwin
with egcs (after setting EXE=.exe).  Patch by Norman Vine.

25 years agoAck! It never defined HAVE_GETHOSTBYNAME_R so that code was never tested!
Guido van Rossum [Tue, 23 Mar 1999 16:40:33 +0000 (16:40 +0000)]
Ack!  It never defined HAVE_GETHOSTBYNAME_R so that code was never tested!

25 years agoChanges to allow passing an open file to the constructor (to support
Greg Ward [Tue, 23 Mar 1999 14:00:06 +0000 (14:00 +0000)]
Changes to allow passing an open file to the constructor (to support
ProcessHierarchy's changes to support reading from a remote URL in
ProcessDatabase).

25 years agoAdding thread.h -- unused but for b/w compatibility.
Guido van Rossum [Mon, 22 Mar 1999 22:25:39 +0000 (22:25 +0000)]
Adding thread.h -- unused but for b/w compatibility.
As requested by Bill Janssen.

25 years agoAdded bufferobject.c
Jack Jansen [Mon, 22 Mar 1999 22:24:03 +0000 (22:24 +0000)]
Added bufferobject.c

25 years agoAdd code to test for all sorts of gethostbyname_r variants,
Guido van Rossum [Mon, 22 Mar 1999 21:49:51 +0000 (21:49 +0000)]
Add code to test for all sorts of gethostbyname_r variants,
donated by David Arnold.

25 years agoAdd symbols for gethostbyname_r variants (sigh).
Guido van Rossum [Mon, 22 Mar 1999 21:46:06 +0000 (21:46 +0000)]
Add symbols for gethostbyname_r variants (sigh).

25 years agoClean up pass for the previous patches.
Guido van Rossum [Mon, 22 Mar 1999 21:44:51 +0000 (21:44 +0000)]
Clean up pass for the previous patches.

- Use HAVE_GETHOSTBYNAME_R_6_ARG instead of testing for Linux and
glibc2.

- If gethostbyname takes 3 args, undefine HAVE_GETHOSTBYNAME_R --
don't know what code should be used.

- New symbol USE_GETHOSTBYNAME_LOCK defined iff the lock should be used.

- Modify the gethostbyaddr() code to also hold on to the lock until
after it is safe to release, overlapping with the Python lock.

(Note: I think that it could in theory be possible that Python code
executed while gethostbyname_lock is held could attempt to reacquire
the lock -- e.g. in a signal handler or destructor.  I will simply say
"don't do that then.")

25 years agoJonathan Giddy writes:
Guido van Rossum [Mon, 22 Mar 1999 20:14:53 +0000 (20:14 +0000)]
Jonathan Giddy writes:

Here's a patch to fix the race condition, which wasn't fixed by Rob's
patch.  It holds the gethostbyname lock until the results are copied out,
which means that this lock and the Python global lock are held at the same
time.  This shouldn't be a problem as long as the gethostbyname lock is
always acquired when the global lock is not held.

25 years agoFixed the flush() method of compression objects; the test for
Andrew M. Kuchling [Mon, 22 Mar 1999 19:25:30 +0000 (19:25 +0000)]
Fixed the flush() method of compression objects; the test for
    the end of loop was incorrect, and failed when the flushmode != Z_FINISH.
    Logic cleaned up and commented.

25 years agoAdded simple test for the flush() method of compression objects, trying the
Andrew M. Kuchling [Mon, 22 Mar 1999 19:23:17 +0000 (19:23 +0000)]
Added simple test for the flush() method of compression objects, trying the
    different flush values Z_NO_FLUSH, Z_SYNC_FLUSH, Z_FULL_FLUSH.

25 years agoBug reported by Tobias Thelen: missing "self." in assignment target.
Guido van Rossum [Mon, 22 Mar 1999 15:28:08 +0000 (15:28 +0000)]
Bug reported by Tobias Thelen: missing "self." in assignment target.

25 years agoFirst checkin of real Distutils command modules.
Greg Ward [Mon, 22 Mar 1999 14:55:25 +0000 (14:55 +0000)]
First checkin of real Distutils command modules.

25 years agoObsolete source file -- command options are actually implemented in
Greg Ward [Mon, 22 Mar 1999 14:54:09 +0000 (14:54 +0000)]
Obsolete source file -- command options are actually implemented in
a much less formalistic way.  Just keeping this around for possible
future reference.

25 years agoFirst checkin of real Distutils code.
Greg Ward [Mon, 22 Mar 1999 14:52:19 +0000 (14:52 +0000)]
First checkin of real Distutils code.

25 years agoUse an unsigned cast to avoid a warning in VC++.
Guido van Rossum [Fri, 19 Mar 1999 21:50:11 +0000 (21:50 +0000)]
Use an unsigned cast to avoid a warning in VC++.

25 years agoNew code for split() by Tim Peters, behaves more like posixpath.split().
Guido van Rossum [Fri, 19 Mar 1999 21:05:12 +0000 (21:05 +0000)]
New code for split() by Tim Peters, behaves more like posixpath.split().

25 years agoFix a problem with Vladimir's PyFloat_Fini code: clear the free list; if
Guido van Rossum [Fri, 19 Mar 1999 20:59:40 +0000 (20:59 +0000)]
Fix a problem with Vladimir's PyFloat_Fini code: clear the free list; if
a block cannot be freed, add its free items back to the free list.
This is necessary to avoid leaking when Python is reinitialized later.

25 years agoFix a problem with Vladimir's PyInt_Fini code: clear the free list; if
Guido van Rossum [Fri, 19 Mar 1999 20:30:39 +0000 (20:30 +0000)]
Fix a problem with Vladimir's PyInt_Fini code: clear the free list; if
a block cannot be freed, add its free items back to the free list, and
add its valid ints back to the small_ints array if they are in range.
This is necessary to avoid leaking when Python is reinitialized later.

25 years agoDocument new builtin buffer(). Greg Stein.
Guido van Rossum [Fri, 19 Mar 1999 19:10:14 +0000 (19:10 +0000)]
Document new builtin buffer().  Greg Stein.

25 years agoAdded BufferType, the type returned by the new builtin buffer(). Greg Stein.
Guido van Rossum [Fri, 19 Mar 1999 19:08:03 +0000 (19:08 +0000)]
Added BufferType, the type returned by the new builtin buffer().  Greg Stein.

25 years agoNew builtin buffer() creates a derived read-only buffer from any
Guido van Rossum [Fri, 19 Mar 1999 19:07:19 +0000 (19:07 +0000)]
New builtin buffer() creates a derived read-only buffer from any
object that supports the buffer interface (e.g. strings, arrays).

25 years agoAdded check for negative offset for PyBuffer_FromObject and check for
Guido van Rossum [Fri, 19 Mar 1999 19:04:25 +0000 (19:04 +0000)]
Added check for negative offset for PyBuffer_FromObject and check for
negative size for PyBuffer_FromMemory.  Greg Stein.

25 years agoAdded htmldoc, to generate the HTML for "Documenting Python".
Fred Drake [Thu, 18 Mar 1999 19:08:47 +0000 (19:08 +0000)]
Added htmldoc, to generate the HTML for "Documenting Python".

25 years agoAdd "Documenting Python" to the list of processed documents.
Fred Drake [Thu, 18 Mar 1999 19:07:04 +0000 (19:07 +0000)]
Add "Documenting Python" to the list of processed documents.