python/dscho.git
23 years agoThis commit was manufactured by cvs2svn to create tag 'mac152c1'.svn/tags/mac152c1mac152c1
(no author) [Tue, 13 Apr 1999 11:45:46 +0000 (13 11:45 +0000)]
This commit was manufactured by cvs2svn to create tag 'mac152c1'.

git-svn-id: http://svn.python.org/projects/python/tags/mac152c1@13087 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoClass around PixMap objects that allows more python-like access. By Joe Strout.
jack [Tue, 13 Apr 1999 11:45:46 +0000 (13 11:45 +0000)]
Class around PixMap objects that allows more python-like access. By Joe Strout.

git-svn-id: http://svn.python.org/projects/python/trunk@13086 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoFix mysterious references to jprofile that were in the source since
guido [Tue, 13 Apr 1999 04:24:22 +0000 (13 04:24 +0000)]
Fix mysterious references to jprofile that were in the source since
its creation.  I'm assuming these were once valid references to "Jim
Roskind's profile"...

git-svn-id: http://svn.python.org/projects/python/trunk@13085 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoRemoved; since long subsumed in Doc/lib/libthreading.tex
guido [Tue, 13 Apr 1999 04:20:48 +0000 (13 04:20 +0000)]
Removed; since long subsumed in Doc/lib/libthreading.tex

git-svn-id: http://svn.python.org/projects/python/trunk@13084 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoPut back __osf__ support for gethostbyname_r(); the real bug was that
guido [Tue, 13 Apr 1999 04:07:32 +0000 (13 04:07 +0000)]
Put back __osf__ support for gethostbyname_r(); the real bug was that
it was being used even without threads.  This of course might be an
all-platform problem so now we only use the _r variant when we are
using threads.

git-svn-id: http://svn.python.org/projects/python/trunk@13083 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoFix accidentally reversed NULL test in load_mark(). Suggested by
guido [Mon, 12 Apr 1999 22:51:20 +0000 (12 22:51 +0000)]
Fix accidentally reversed NULL test in load_mark().  Suggested by
Tamito Kajiyama.  (This caused a bug only on platforms where malloc(0)
returns NULL.)

git-svn-id: http://svn.python.org/projects/python/trunk@13082 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoAdd note about popen2 problem on Linux noticed by Pablo Bleyer.
guido [Mon, 12 Apr 1999 19:01:45 +0000 (12 19:01 +0000)]
Add note about popen2 problem on Linux noticed by Pablo Bleyer.

git-svn-id: http://svn.python.org/projects/python/trunk@13081 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoAdd note about -D_REENTRANT for HP-UX 10.20.
guido [Mon, 12 Apr 1999 18:16:09 +0000 (12 18:16 +0000)]
Add note about -D_REENTRANT for HP-UX 10.20.

git-svn-id: http://svn.python.org/projects/python/trunk@13080 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years ago'clean' target should remove hassignal.
guido [Mon, 12 Apr 1999 16:42:13 +0000 (12 16:42 +0000)]
'clean' target should remove hassignal.

git-svn-id: http://svn.python.org/projects/python/trunk@13079 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoIgnore the doc/ directory ("Documenting Python").
fdrake [Mon, 12 Apr 1999 15:41:44 +0000 (12 15:41 +0000)]
Ignore the doc/ directory ("Documenting Python").

git-svn-id: http://svn.python.org/projects/python/trunk@13078 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoRemove all VC++ info (except VC 1.5) from readme.txt;
guido [Mon, 12 Apr 1999 14:49:01 +0000 (12 14:49 +0000)]
Remove all VC++ info (except VC 1.5) from readme.txt;
remove the VC++ 4.0 project file; remove the unused _tkinter extern defs.

git-svn-id: http://svn.python.org/projects/python/trunk@13077 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoClarify PC build instructions (point to PCbuild).
guido [Mon, 12 Apr 1999 14:47:30 +0000 (12 14:47 +0000)]
Clarify PC build instructions (point to PCbuild).

git-svn-id: http://svn.python.org/projects/python/trunk@13076 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoCast added by Jack Jansen (for Mac port).
guido [Mon, 12 Apr 1999 14:35:48 +0000 (12 14:35 +0000)]
Cast added by Jack Jansen (for Mac port).

git-svn-id: http://svn.python.org/projects/python/trunk@13075 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoForgot to add this file. CDROM device parameters.
guido [Mon, 12 Apr 1999 14:35:08 +0000 (12 14:35 +0000)]
Forgot to add this file.  CDROM device parameters.

git-svn-id: http://svn.python.org/projects/python/trunk@13074 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoTwo different changes.
guido [Mon, 12 Apr 1999 14:34:16 +0000 (12 14:34 +0000)]
Two different changes.

1. Jack Jansen reports that on the Mac, the time may be negative, and
solves this by adding a write32u() function that writes an unsigned
long.

2. On 64-bit platforms the CRC comparison fails; I've fixed this by
casting both values to be compared to "unsigned long" i.e. modulo
0x100000000L.

git-svn-id: http://svn.python.org/projects/python/trunk@13073 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoRemoved reference to the PSA (PSA membership no longer needed for CVS
jack [Mon, 12 Apr 1999 09:25:23 +0000 (12 09:25 +0000)]
Removed reference to the PSA (PSA membership no longer needed for CVS
access).
New location for MacCVS.

git-svn-id: http://svn.python.org/projects/python/trunk@13072 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoNo longer needed.
guido [Sat, 10 Apr 1999 18:42:02 +0000 (10 18:42 +0000)]
No longer needed.

git-svn-id: http://svn.python.org/projects/python/trunk@13071 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoCorrect missed character in Andrew Dalke's name.
guido [Sat, 10 Apr 1999 17:17:51 +0000 (10 17:17 +0000)]
Correct missed character in Andrew Dalke's name.

git-svn-id: http://svn.python.org/projects/python/trunk@13070 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoAdd DEC Ultrix notes (from Donn Cave's email).
guido [Sat, 10 Apr 1999 16:04:07 +0000 (10 16:04 +0000)]
Add DEC Ultrix notes (from Donn Cave's email).

git-svn-id: http://svn.python.org/projects/python/trunk@13069 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoThe usual
guido [Sat, 10 Apr 1999 16:02:18 +0000 (10 16:02 +0000)]
The usual

git-svn-id: http://svn.python.org/projects/python/trunk@13068 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoQuote a bunch of shell variables used in test, related to long-long.
guido [Sat, 10 Apr 1999 16:01:48 +0000 (10 16:01 +0000)]
Quote a bunch of shell variables used in test, related to long-long.

git-svn-id: http://svn.python.org/projects/python/trunk@13067 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agocasts for picky compilers.
guido [Sat, 10 Apr 1999 15:48:23 +0000 (10 15:48 +0000)]
casts for picky compilers.

git-svn-id: http://svn.python.org/projects/python/trunk@13066 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years ago3-arg gethostbyname_r doesn't really work on OSF/1.
guido [Sat, 10 Apr 1999 15:46:01 +0000 (10 15:46 +0000)]
3-arg gethostbyname_r doesn't really work on OSF/1.

git-svn-id: http://svn.python.org/projects/python/trunk@13065 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoAvoid totally empty files.
guido [Sat, 10 Apr 1999 14:00:28 +0000 (10 14:00 +0000)]
Avoid totally empty files.

git-svn-id: http://svn.python.org/projects/python/trunk@13064 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoMisspellling: "occurance" --> "occurrence"
fdrake [Fri, 9 Apr 1999 19:57:09 +0000 (9 19:57 +0000)]
Misspellling:  "occurance" --> "occurrence"

git-svn-id: http://svn.python.org/projects/python/trunk@13063 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoUse re instead of regex.
guido [Fri, 9 Apr 1999 14:56:35 +0000 (9 14:56 +0000)]
Use re instead of regex.
Don't rewrite the file in place.
(Reported by Andy Dustman.)

git-svn-id: http://svn.python.org/projects/python/trunk@13062 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoUse #!/usr/bin/env python instead of #!/usr/local/bin/python.
fdrake [Fri, 9 Apr 1999 14:53:35 +0000 (9 14:53 +0000)]
Use #!/usr/bin/env python instead of #!/usr/local/bin/python.

git-svn-id: http://svn.python.org/projects/python/trunk@13061 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoGet rid of #! line
guido [Fri, 9 Apr 1999 14:49:04 +0000 (9 14:49 +0000)]
Get rid of #! line

git-svn-id: http://svn.python.org/projects/python/trunk@13060 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoOops, try again. Test checkin (empty line) to see whether the new mailman-based Pytho...
jack [Fri, 9 Apr 1999 10:22:40 +0000 (9 10:22 +0000)]
Oops, try again. Test checkin (empty line) to see whether the new mailman-based PythonMac-checkins mailing list works.

git-svn-id: http://svn.python.org/projects/python/trunk@13059 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoTest checkin (empty line) to see whether the new mailman-based PythonMac-checkins...
jack [Fri, 9 Apr 1999 10:20:26 +0000 (9 10:20 +0000)]
Test checkin (empty line) to see whether the new mailman-based PythonMac-checkins mailing list works.

git-svn-id: http://svn.python.org/projects/python/trunk@13058 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoUse the Tcl 8.0.5 installer.
guido [Thu, 8 Apr 1999 23:13:37 +0000 (8 23:13 +0000)]
Use the Tcl 8.0.5 installer.
Add a variable %_TCL_% that makes it easier to switch to a different version.

git-svn-id: http://svn.python.org/projects/python/trunk@13057 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoRelease 1.5.2c1. Add IDLE and Uninstall to program group.
guido [Thu, 8 Apr 1999 20:50:27 +0000 (8 20:50 +0000)]
Release 1.5.2c1.  Add IDLE and Uninstall to program group.
Don't distribute zlib.dll.  Tweak some comments.

git-svn-id: http://svn.python.org/projects/python/trunk@13055 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoNow using static zlib 1.1.3
guido [Thu, 8 Apr 1999 20:49:11 +0000 (8 20:49 +0000)]
Now using static zlib 1.1.3

git-svn-id: http://svn.python.org/projects/python/trunk@13054 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years ago# File location for tut.tex and URL for Aaron Watters' tutorial have changed.
guido [Thu, 8 Apr 1999 20:42:11 +0000 (8 20:42 +0000)]
# File location for tut.tex and URL for Aaron Watters' tutorial have changed.

git-svn-id: http://svn.python.org/projects/python/trunk@13053 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years ago# TODO entries changed
guido [Thu, 8 Apr 1999 20:28:42 +0000 (8 20:28 +0000)]
# TODO entries changed

git-svn-id: http://svn.python.org/projects/python/trunk@13052 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoThe usual
guido [Thu, 8 Apr 1999 20:27:54 +0000 (8 20:27 +0000)]
The usual

git-svn-id: http://svn.python.org/projects/python/trunk@13051 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoRelease 1.5.2c1
guido [Thu, 8 Apr 1999 20:23:44 +0000 (8 20:23 +0000)]
Release 1.5.2c1

git-svn-id: http://svn.python.org/projects/python/trunk@13050 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoRelease 1.5.2c1.
guido [Thu, 8 Apr 1999 20:23:28 +0000 (8 20:23 +0000)]
Release 1.5.2c1.

git-svn-id: http://svn.python.org/projects/python/trunk@13049 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years ago# Bah. The same problem occurred a second time.
guido [Thu, 8 Apr 1999 20:22:46 +0000 (8 20:22 +0000)]
# Bah.  The same problem occurred a second time.

git-svn-id: http://svn.python.org/projects/python/trunk@13048 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoNews for the 1.5.2c1 release.
guido [Thu, 8 Apr 1999 20:17:57 +0000 (8 20:17 +0000)]
News for the 1.5.2c1 release.

git-svn-id: http://svn.python.org/projects/python/trunk@13047 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoOn Windows, we suddenly find, strftime() may return "" for an
guido [Thu, 8 Apr 1999 17:23:11 +0000 (8 17:23 +0000)]
On Windows, we suddenly find, strftime() may return "" for an
unsupported format string.  (I guess this is because the logic for
deciding whether to reallocate the buffer or not has been improved.)
This caused the test code to crash on result[0].  Fix this by assuming
an empty result also means the format is not supported.

git-svn-id: http://svn.python.org/projects/python/trunk@13046 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoThis demo imported some private code from Matt. Make it cripple along.
guido [Thu, 8 Apr 1999 15:18:12 +0000 (8 15:18 +0000)]
This demo imported some private code from Matt.  Make it cripple along.

git-svn-id: http://svn.python.org/projects/python/trunk@13045 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoDelete an accidentally checked-in feature that actually broke more
guido [Thu, 8 Apr 1999 14:46:06 +0000 (8 14:46 +0000)]
Delete an accidentally checked-in feature that actually broke more
than was worth it: when deleting a canvas item, it would try to
automatically delete the bindings for that item.  Since there's
nothing that says you can't reuse the tag and still have the bindings,
this is not correct.  Also, it broke at least one demo
(Demo/tkinter/matt/rubber-band-box-demo-1.py).

git-svn-id: http://svn.python.org/projects/python/trunk@13044 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoWin/CE thread support by Mark Hammond.
guido [Thu, 8 Apr 1999 13:57:06 +0000 (8 13:57 +0000)]
Win/CE thread support by Mark Hammond.

git-svn-id: http://svn.python.org/projects/python/trunk@13043 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoPatch by Andrew Kuchling to unflush() (flush() for deflating).
guido [Wed, 7 Apr 1999 20:23:17 +0000 (7 20:23 +0000)]
Patch by Andrew Kuchling to unflush() (flush() for deflating).
Without this, if inflate() returned Z_BUF_ERROR asking for more output
space, we would report the error; now, we increase the buffer size and
try again, just as for Z_OK.

git-svn-id: http://svn.python.org/projects/python/trunk@13042 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoUse binary mode for all gzip files we open.
guido [Wed, 7 Apr 1999 19:00:58 +0000 (7 19:00 +0000)]
Use binary mode for all gzip files we open.

git-svn-id: http://svn.python.org/projects/python/trunk@13041 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoNew change log.
guido [Wed, 7 Apr 1999 18:43:22 +0000 (7 18:43 +0000)]
New change log.

git-svn-id: http://svn.python.org/projects/python/trunk@13040 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoNew version.
guido [Wed, 7 Apr 1999 18:41:59 +0000 (7 18:41 +0000)]
New version.

git-svn-id: http://svn.python.org/projects/python/trunk@13039 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoAlas, get rid of the Win specific hack to ask the user to press Return
guido [Wed, 7 Apr 1999 18:32:51 +0000 (7 18:32 +0000)]
Alas, get rid of the Win specific hack to ask the user to press Return
before exiting when an error happened.  This didn't work right when
Python is invoked from a daemon.

git-svn-id: http://svn.python.org/projects/python/trunk@13038 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoVersion bump awaiting impending new release.
guido [Wed, 7 Apr 1999 18:27:29 +0000 (7 18:27 +0000)]
Version bump awaiting impending new release.
(Not much has changed :-( )

git-svn-id: http://svn.python.org/projects/python/trunk@13037 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoRemoving an unused image of a snake.
guido [Wed, 7 Apr 1999 17:23:09 +0000 (7 17:23 +0000)]
Removing an unused image of a snake.
I don't know what its origins are but I think I've seen it
once in a NeXT dictionary application -- not sure whether
anyone owns copyright but I don't see why we should risk it.

git-svn-id: http://svn.python.org/projects/python/trunk@13036 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agolower, tkraise/lift hide Misc.lower, Misc.tkraise/lift,
guido [Wed, 7 Apr 1999 16:25:54 +0000 (7 16:25 +0000)]
lower, tkraise/lift hide Misc.lower, Misc.tkraise/lift,
so the preferred name for them is tag_lower, tag_raise
(similar to tag_bind, and similar to the Text widget);
unfortunately can't delete the old ones yet (maybe in 1.6)

git-svn-id: http://svn.python.org/projects/python/trunk@13035 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoChanges by Mark Hammond for Windows CE. Mostly of the form
guido [Wed, 7 Apr 1999 16:07:23 +0000 (7 16:07 +0000)]
Changes by Mark Hammond for Windows CE.  Mostly of the form
  #ifdef DONT_HAVE_header_H ... #endif around #include <header.h>.

git-svn-id: http://svn.python.org/projects/python/trunk@13034 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoRemove unused variable from complex_from_string() code.
guido [Wed, 7 Apr 1999 16:05:47 +0000 (7 16:05 +0000)]
Remove unused variable from complex_from_string() code.

git-svn-id: http://svn.python.org/projects/python/trunk@13033 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoAdd the possibility of a gamma release (release candidate).
guido [Wed, 7 Apr 1999 16:00:20 +0000 (7 16:00 +0000)]
Add the possibility of a gamma release (release candidate).
Add '+' to string version number to indicate we're beyond b2 now.

git-svn-id: http://svn.python.org/projects/python/trunk@13032 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoUpdated documentation by Per Cederqvist. I've added back the
guido [Wed, 7 Apr 1999 15:56:51 +0000 (7 15:56 +0000)]
Updated documentation by Per Cederqvist.  I've added back the
documentation sendmail() to reflect the changes by The Dragon
(see smtplib.py checkin).

git-svn-id: http://svn.python.org/projects/python/trunk@13031 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoAdd extern decl for fsync() for SunOS 4.x.
guido [Wed, 7 Apr 1999 15:49:41 +0000 (7 15:49 +0000)]
Add extern decl for fsync() for SunOS 4.x.

git-svn-id: http://svn.python.org/projects/python/trunk@13030 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoChanges by Per Cederquist and The Dragon.
guido [Wed, 7 Apr 1999 15:03:39 +0000 (7 15:03 +0000)]
Changes by Per Cederquist and The Dragon.

Per writes:

"""
The application where Signum Support uses smtplib needs to be able to
report good error messages to the user when sending email fails.  To
help in diagnosing problems it is useful to be able to report the
entire message sent by the server, not only the SMTP error code of the
offending command.

A lot of the functions in sendmail.py unfortunately discards the
message, leaving only the code.  The enclosed patch fixes that
problem.

The enclosed patch also introduces a base class for exceptions that
include an SMTP error code and error message, and make the code and
message available on separate attributes, so that surrounding code can
deal with them in whatever way it sees fit.  I've also added some
documentation to the exception classes.

The constructor will now raise an exception if it cannot connect to
the SMTP server.

The data() method will raise an SMTPDataError if it doesn't receive
the expected 354 code in the middle of the exchange.

According to section 5.2.10 of RFC 1123 a smtp client must accept "any
text, including no text at all" after the error code.  If the response
of a HELO command contains no text self.helo_resp will be set to the
empty string ("").  The patch fixes the test in the sendmail() method
so that helo_resp is tested against None; if it has the empty string
as value the sendmail() method would invoke the helo() method again.

The code no longer accepts a -1 reply from the ehlo() method in
sendmail().

[Text about removing SMTPRecipientsRefused deleted --GvR]
"""

and also:

"""
smtplib.py appends an extra blank line to the outgoing mail if the
`msg' argument to the sendmail method already contains a trailing
newline.  This patch should fix the problem.
"""

The Dragon writes:

"""
Mostly I just re-added the SMTPRecipientsRefused exception
(the exeption object now has the appropriate info in it ) [Per had
removed this in his patch --GvR] and tweaked the behavior of the
sendmail method whence it throws the newly added SMTPHeloException (it
was closing the connection, which it shouldn't.  whatever catches the
exception should do that. )

I pondered the change of the return values to tuples all around,
and after some thinking I decided that regularizing the return values was
too much of the Right Thing (tm) to not do.

My one concern is that code expecting an integer & getting a tuple
may fail silently.

(i.e. if it's doing :

      x.somemethod() >= 400:
expecting an integer, the expression will always be true if it gets a
tuple instead. )

However, most smtplib code I've seen only really uses the
sendmail() method, so this wouldn't bother it.  Usually code I've seen
that calls the other methods usually only calls helo() and ehlo() for
doing ESMTP, a feature which was not in the smtplib included with 1.5.1,
and thus I would think not much code uses it yet.
"""

git-svn-id: http://svn.python.org/projects/python/trunk@13029 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoFix the tests now that splitdrive() no longer treats UNC paths special.
guido [Tue, 6 Apr 1999 19:38:18 +0000 (6 19:38 +0000)]
Fix the tests now that splitdrive() no longer treats UNC paths special.
(Some tests converted to splitunc() tests.)

git-svn-id: http://svn.python.org/projects/python/trunk@13028 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoWithdraw the UNC support from splitdrive(). Instead, a new function
guido [Tue, 6 Apr 1999 19:32:19 +0000 (6 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()).

git-svn-id: http://svn.python.org/projects/python/trunk@13027 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoFor BeOS PowerPC. Chris Herborth.
guido [Tue, 6 Apr 1999 15:50:51 +0000 (6 15:50 +0000)]
For BeOS PowerPC.  Chris Herborth.

git-svn-id: http://svn.python.org/projects/python/trunk@13026 6015fed2-1504-0410-9fe1-9d1591cc4771

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

git-svn-id: http://svn.python.org/projects/python/trunk@13025 6015fed2-1504-0410-9fe1-9d1591cc4771

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

git-svn-id: http://svn.python.org/projects/python/trunk@13024 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agocorrect version info for zlib.
jhylton [Mon, 5 Apr 1999 21:55:21 +0000 (5 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

git-svn-id: http://svn.python.org/projects/python/trunk@13023 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoJonathan Giddy notes, and Chris Lawrence agrees, that some comments on
guido [Mon, 5 Apr 1999 21:54:14 +0000 (5 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.

git-svn-id: http://svn.python.org/projects/python/trunk@13022 6015fed2-1504-0410-9fe1-9d1591cc4771

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

git-svn-id: http://svn.python.org/projects/python/trunk@13021 6015fed2-1504-0410-9fe1-9d1591cc4771

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

git-svn-id: http://svn.python.org/projects/python/trunk@13020 6015fed2-1504-0410-9fe1-9d1591cc4771

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

git-svn-id: http://svn.python.org/projects/python/trunk@13019 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoopen() description: Made it more clear that 'b' should always be
fdrake [Mon, 5 Apr 1999 21:22:41 +0000 (5 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.

git-svn-id: http://svn.python.org/projects/python/trunk@13018 6015fed2-1504-0410-9fe1-9d1591cc4771

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

git-svn-id: http://svn.python.org/projects/python/trunk@13017 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoAdded a few items to the "See also" sections at Guido's prompting. Made
fdrake [Mon, 5 Apr 1999 19:46:21 +0000 (5 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.

git-svn-id: http://svn.python.org/projects/python/trunk@13016 6015fed2-1504-0410-9fe1-9d1591cc4771

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

git-svn-id: http://svn.python.org/projects/python/trunk@13015 6015fed2-1504-0410-9fe1-9d1591cc4771

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

git-svn-id: http://svn.python.org/projects/python/trunk@13014 6015fed2-1504-0410-9fe1-9d1591cc4771

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

git-svn-id: http://svn.python.org/projects/python/trunk@13013 6015fed2-1504-0410-9fe1-9d1591cc4771

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

git-svn-id: http://svn.python.org/projects/python/trunk@13012 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoMade the default mode 'rb' instead of 'r', for better cross-platform
fdrake [Mon, 5 Apr 1999 18:33:40 +0000 (5 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>).

git-svn-id: http://svn.python.org/projects/python/trunk@13011 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoAdded all the "external action" methods (to make handling the verbose
gward [Sun, 4 Apr 1999 02:58:07 +0000 (4 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).

git-svn-id: http://svn.python.org/projects/python/trunk@13010 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoAdded 'dry_run' flag to most functions (to support the "shadow methods"
gward [Sun, 4 Apr 1999 02:54:20 +0000 (4 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.

git-svn-id: http://svn.python.org/projects/python/trunk@13009 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoChanged to use the method versions of 'copy_file()', 'copy_tree()',
gward [Sun, 4 Apr 1999 02:46:29 +0000 (4 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.

git-svn-id: http://svn.python.org/projects/python/trunk@13008 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoFor reasons I dare not explain, this script should always execute
guido [Fri, 2 Apr 1999 22:18:25 +0000 (2 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).

git-svn-id: http://svn.python.org/projects/python/trunk@13007 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoJonathan Giddy write:
guido [Thu, 1 Apr 1999 15:32:30 +0000 (1 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.

git-svn-id: http://svn.python.org/projects/python/trunk@13006 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoPer Cederqvist writes:
guido [Tue, 30 Mar 1999 20:17:31 +0000 (30 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.

git-svn-id: http://svn.python.org/projects/python/trunk@13005 6015fed2-1504-0410-9fe1-9d1591cc4771

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

git-svn-id: http://svn.python.org/projects/python/trunk@13004 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoPatch by Per Cederqvist, who writes:
guido [Mon, 29 Mar 1999 20:33:21 +0000 (29 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.

git-svn-id: http://svn.python.org/projects/python/trunk@13003 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoWhen run as a script, report failures in the exit code as well.
fdrake [Mon, 29 Mar 1999 20:25:40 +0000 (29 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.

git-svn-id: http://svn.python.org/projects/python/trunk@13002 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoHack so that if a 302 or 301 redirect contains a relative URL, the
guido [Mon, 29 Mar 1999 20:23:41 +0000 (29 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).

git-svn-id: http://svn.python.org/projects/python/trunk@13001 6015fed2-1504-0410-9fe1-9d1591cc4771

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

git-svn-id: http://svn.python.org/projects/python/trunk@13000 6015fed2-1504-0410-9fe1-9d1591cc4771

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

git-svn-id: http://svn.python.org/projects/python/trunk@12999 6015fed2-1504-0410-9fe1-9d1591cc4771

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

git-svn-id: http://svn.python.org/projects/python/trunk@12998 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoChris Lawrence writes:
guido [Mon, 29 Mar 1999 19:12:04 +0000 (29 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.)
"""

git-svn-id: http://svn.python.org/projects/python/trunk@12997 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoReplaced the last attempt at an "unreadline" with one that actually
gward [Mon, 29 Mar 1999 18:01:49 +0000 (29 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.)

git-svn-id: http://svn.python.org/projects/python/trunk@12996 6015fed2-1504-0410-9fe1-9d1591cc4771

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

git-svn-id: http://svn.python.org/projects/python/trunk@12995 6015fed2-1504-0410-9fe1-9d1591cc4771

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

git-svn-id: http://svn.python.org/projects/python/trunk@12994 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoFixed a lot of the smaller nits identified in Guido's comments.
fdrake [Mon, 29 Mar 1999 14:55:55 +0000 (29 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.)

git-svn-id: http://svn.python.org/projects/python/trunk@12993 6015fed2-1504-0410-9fe1-9d1591cc4771

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

git-svn-id: http://svn.python.org/projects/python/trunk@12992 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoTim Peters writes:
guido [Sun, 28 Mar 1999 17:55:32 +0000 (28 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>.

git-svn-id: http://svn.python.org/projects/python/trunk@12991 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoTim Peters writes:
guido [Sat, 27 Mar 1999 13:34:01 +0000 (27 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.

git-svn-id: http://svn.python.org/projects/python/trunk@12990 6015fed2-1504-0410-9fe1-9d1591cc4771

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

git-svn-id: http://svn.python.org/projects/python/trunk@12989 6015fed2-1504-0410-9fe1-9d1591cc4771

23 years agoDuring display, if EPIPE is raised, it's probably because a pager was
fdrake [Fri, 26 Mar 1999 22:36:00 +0000 (26 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.

git-svn-id: http://svn.python.org/projects/python/trunk@12988 6015fed2-1504-0410-9fe1-9d1591cc4771

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

git-svn-id: http://svn.python.org/projects/python/trunk@12987 6015fed2-1504-0410-9fe1-9d1591cc4771