]> granicus.if.org Git - python/log
python
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.

25 years agoLaTeX2HTML support for the ltxmarkup package.
Fred Drake [Thu, 18 Mar 1999 16:42:28 +0000 (16:42 +0000)]
LaTeX2HTML support for the ltxmarkup package.

25 years agoAdd some (commented out) macros to change the page size to the size of
Fred Drake [Thu, 18 Mar 1999 16:18:27 +0000 (16:18 +0000)]
Add some (commented out) macros to change the page size to the size of
typical published manuals, so people can more easily see what they're
really asking for.  ;-)

Revise the verbatim environment: simple implementation, but more
compatible if a document also add \usepackage{verbatim} at the
beginning.

Declare \modindex, \bimodindex, \exmodindex, and \stmodindex
obsolete.  These still work just fine, but \declaremodule should be
used instead.  The obsolete macros will print a warning on standard
out.

25 years agoDocumented FTP.set_pasv().
Fred Drake [Thu, 18 Mar 1999 16:08:54 +0000 (16:08 +0000)]
Documented FTP.set_pasv().

25 years agoSjoerd Mullender writes:
Guido van Rossum [Thu, 18 Mar 1999 15:10:44 +0000 (15:10 +0000)]
Sjoerd Mullender writes:

If a filename on Windows starts with \\, it is converted to a URL
which starts with ////.  If this URL is passed to urlparse.urlparse
you get a path that starts with // (and an empty netloc).  If you pass
the result back to urlparse.urlunparse, you get a URL that starts with
//, which is parsed differently by urlparse.urlparse.  The fix is to
add the (empty) netloc with accompanying slashes if the path in
urlunparse starts with //.  Do this for all schemes that use a netloc.

25 years agoMake this simpler; don't care about the paper size. Require that the
Fred Drake [Thu, 18 Mar 1999 14:57:53 +0000 (14:57 +0000)]
Make this simpler; don't care about the paper size.  Require that the
files exist in the current directory.

Add "Documenting Python" to the list of documents listed.

25 years agoSjoerd Mullender writes:
Guido van Rossum [Thu, 18 Mar 1999 14:21:41 +0000 (14:21 +0000)]
Sjoerd Mullender writes:

Pathnames of files on other hosts in the same domain
(\\host\path\to\file) are not translated correctly to URLs and back.
The URL should be something like file:////host/path/to/file.
Note that a combination of drive letter and remote host is not
possible.

25 years agoRemove all owner resources from template, and if no owner resource contained in
Jack Jansen [Wed, 17 Mar 1999 22:57:55 +0000 (22:57 +0000)]
Remove all owner resources from template, and if no owner resource contained in
applet-specific rsrc file we add a "Pyta" owner resource. Owner resources have both id=0 and name="Owner resource" (is this always true?).

25 years agoRemoved all owner resources except for "Pyth".
Jack Jansen [Wed, 17 Mar 1999 22:56:13 +0000 (22:56 +0000)]
Removed all owner resources except for "Pyth".

25 years agoDelete non-standard-conforming code in urljoin() that would use the
Guido van Rossum [Wed, 17 Mar 1999 22:30:10 +0000 (22:30 +0000)]
Delete non-standard-conforming code in urljoin() that would use the
netloc from the base url as the default netloc for the resulting url
even if the schemes differ.

Once upon a time, when the web was wild, this was a valuable hack
because some people had a URL referencing an ftp server colocated with
an http server without having the host in the ftp URL (so they could
replicate it or change the hostname easily).

More recently, after the file: scheme got added back to the list of
schemes that accept a netloc, it turns out that this caused weirdness
when joining an http: URL with a file: URL -- the resulting file: URL
would always inherit the host from the http: URL because the file:
scheme supports a netloc but in practice never has one.

There are two reasons to get rid of the old, once-valuable hack,
instead of removing the file: scheme from the uses_netloc list.  One,
the RFC says that file: uses the netloc syntax, and does not endorse
the old hack.  Two, neither netscape 4.5 nor IE 4.0 support the old
hack.

25 years agoNote that abspath() was added in 1.5.2.
Fred Drake [Wed, 17 Mar 1999 22:25:11 +0000 (22:25 +0000)]
Note that abspath() was added in 1.5.2.

25 years agoFor some reason these files had never been checked in.
Jack Jansen [Wed, 17 Mar 1999 21:45:35 +0000 (21:45 +0000)]
For some reason these files had never been checked in.

25 years agoFor reasons unknown these files were never checked in to CVS.
Jack Jansen [Wed, 17 Mar 1999 21:44:07 +0000 (21:44 +0000)]
For reasons unknown these files were never checked in to CVS.

25 years agoAdd DLL level b/w compat for PySequence_In and PyEval_CallObject
Guido van Rossum [Wed, 17 Mar 1999 18:44:39 +0000 (18:44 +0000)]
Add DLL level b/w compat for PySequence_In and PyEval_CallObject

25 years agoBe sure "make" understands the "doc" target is phony.
Fred Drake [Wed, 17 Mar 1999 16:06:51 +0000 (16:06 +0000)]
Be sure "make" understands the "doc" target is phony.

25 years agoBug reported by Jim Robinson:
Guido van Rossum [Tue, 16 Mar 1999 21:54:50 +0000 (21:54 +0000)]
Bug reported by Jim Robinson:

An attempt to execute grid_slaves with arguments (0,0) results in
*all* of the slaves being returned, not just the slave associated with
row 0, column 0.  This is because the test for arguments in the method
does not test to see if row (and column) does not equal None, but
rather just whether is evaluates to non-false.  A value of 0 fails
this test.

25 years agoFixed minor nits, added index entries to make these easier to find for people
Fred Drake [Tue, 16 Mar 1999 16:40:01 +0000 (16:40 +0000)]
Fixed minor nits, added index entries to make these easier to find for people
not familiar with Unix terminology.

25 years agoIgnore some more files kept by mkhowto --keep.
Fred Drake [Tue, 16 Mar 1999 16:14:51 +0000 (16:14 +0000)]
Ignore some more files kept by mkhowto --keep.

25 years agoAdd support for "Documenting Python".
Fred Drake [Tue, 16 Mar 1999 16:11:27 +0000 (16:11 +0000)]
Add support for "Documenting Python".

25 years agoRemoved the embedded sections showing module documentation; just
Fred Drake [Tue, 16 Mar 1999 16:10:31 +0000 (16:10 +0000)]
Removed the embedded sections showing module documentation; just
\input the module template.

25 years agoNew document: "Documenting Python".
Fred Drake [Tue, 16 Mar 1999 16:09:13 +0000 (16:09 +0000)]
New document: "Documenting Python".

25 years agoMarkup for documenting LaTeX macros and environments.
Fred Drake [Tue, 16 Mar 1999 16:08:26 +0000 (16:08 +0000)]
Markup for documenting LaTeX macros and environments.

25 years agoDocstring fix: acosh() returns the hyperbolic arccosine, not the
Fred Drake [Tue, 16 Mar 1999 14:17:48 +0000 (14:17 +0000)]
Docstring fix:  acosh() returns the hyperbolic arccosine, not the
hyperbolic cosine.  Problem report via David Ascher by one of his
students.

25 years agoShould test for gethost*by*name_r, not for gethostname_r (which
Guido van Rossum [Mon, 15 Mar 1999 21:40:59 +0000 (21:40 +0000)]
Should test for gethost*by*name_r, not for gethostname_r (which
doesn't exist and doesn't make sense).

25 years agoPatch by Rob Riggs for Linux -- glibc2 has a different argument
Guido van Rossum [Mon, 15 Mar 1999 21:40:14 +0000 (21:40 +0000)]
Patch by Rob Riggs for Linux -- glibc2 has a different argument
converntion for gethostbyname_r() etc. than Solaris!

25 years agoRob Riggs wrote:
Guido van Rossum [Mon, 15 Mar 1999 20:27:53 +0000 (20:27 +0000)]
Rob Riggs wrote:

"""
Spec says that on success pthread_create returns 0. It does not say
that an error code will be < 0. Linux glibc2 pthread_create() returns
ENOMEM (12) when one exceed process limits. (It looks like it should
return EAGAIN, but that's another story.)

For reference, see:
http://www.opengroup.org/onlinepubs/7908799/xsh/pthread_create.html
"""

[I have a feeling that similar bugs were fixed before; perhaps someone
could check that all error checks no check for != 0?]

25 years agoNew mixin class that defines cmp and hash that use
Guido van Rossum [Mon, 15 Mar 1999 16:37:54 +0000 (16:37 +0000)]
New mixin class that defines cmp and hash that use
the ob_itself pointer.  This allows (when using the mixin)
different Python objects pointing to the same C object and
behaving well as dictionary keys.

Or so sez Jack Jansen...

25 years agoYet another patch by Sjoerd Mullender:
Guido van Rossum [Mon, 15 Mar 1999 16:16:29 +0000 (16:16 +0000)]
Yet another patch by Sjoerd Mullender:

Don't convert URLs to URLs using pathname2url.

25 years agoAdded the new sections from Skip Montanaro.
Fred Drake [Mon, 15 Mar 1999 15:47:30 +0000 (15:47 +0000)]
Added the new sections from Skip Montanaro.

25 years agoPreliminary mhlib and telnetlib documents from Skip Montanaro -- thanks, Skip!
Fred Drake [Mon, 15 Mar 1999 15:44:18 +0000 (15:44 +0000)]
Preliminary mhlib and telnetlib documents from Skip Montanaro -- thanks, Skip!

25 years agoIf a control has no refcon pointing back to the Python object we create a new
Jack Jansen [Sat, 13 Mar 1999 23:07:32 +0000 (23:07 +0000)]
If a control has no refcon pointing back to the Python object we create a new
Python object. This needs a new bgenObjectDefinition.py, which implements
compare and hash functions.

25 years agoPatch by Michael Scharf. He writes:
Guido van Rossum [Fri, 12 Mar 1999 22:15:43 +0000 (22:15 +0000)]
Patch by Michael Scharf.  He writes:

    The module cmd requires for each do_xxx command a help_xxx
    function. I think this is a little old fashioned.

    Here is a patch: use the docstring as help if no help_xxx
    function can be found.

[I'm tempted to rip out all the help_* functions from pdb, but I'll
resist it.  Any takers?  --Guido]

25 years agoBug submitted by Wayne Knowles, who writes:
Guido van Rossum [Fri, 12 Mar 1999 22:07:05 +0000 (22:07 +0000)]
Bug submitted by Wayne Knowles, who writes:

   Under Windows, python freeze.py -o hello hello.py
   creates all the correct files in the hello subdirectory, but the
   Makefile has the directory prefix in it for frozen_extensions.c
   nmake fails because it tries to locate hello/frozen_extensions.c

(His fix adds a call to os.path.basename() in the appropriate place.)

25 years agoFixed tons of small markup problems.
Fred Drake [Fri, 12 Mar 1999 19:57:38 +0000 (19:57 +0000)]
Fixed tons of small markup problems.

25 years agoVladimir has restructured his code somewhat so that the blocks are now
Guido van Rossum [Fri, 12 Mar 1999 19:43:17 +0000 (19:43 +0000)]
Vladimir has restructured his code somewhat so that the blocks are now
represented by an explicit structure.  (There are still too many casts
in the code, but that may be unavoidable.)

Also added code so that with -vv it is very chatty about what it does.

25 years agoRemove stuff with unsure copyright status
Guido van Rossum [Fri, 12 Mar 1999 19:31:51 +0000 (19:31 +0000)]
Remove stuff with unsure copyright status

25 years agoChange #! line to modern usage; also chmod +x
Guido van Rossum [Fri, 12 Mar 1999 19:07:59 +0000 (19:07 +0000)]
Change #! line to modern usage; also chmod +x

25 years agoChange #! line to modern usage
Guido van Rossum [Fri, 12 Mar 1999 19:05:49 +0000 (19:05 +0000)]
Change #! line to modern usage

25 years agoAdded availabililty annotations to respond to concerns of /F.
Fred Drake [Fri, 12 Mar 1999 18:34:21 +0000 (18:34 +0000)]
Added availabililty annotations to respond to concerns of /F.