]> granicus.if.org Git - python/log
python
25 years agoAdd note about -D_REENTRANT for HP-UX 10.20.
Guido van Rossum [Mon, 12 Apr 1999 18:16:09 +0000 (18:16 +0000)]
Add note about -D_REENTRANT for HP-UX 10.20.

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

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

25 years agoRemove all VC++ info (except VC 1.5) from readme.txt;
Guido van Rossum [Mon, 12 Apr 1999 14:49:01 +0000 (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.

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

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

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

25 years agoTwo different changes.
Guido van Rossum [Mon, 12 Apr 1999 14:34:16 +0000 (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.

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

25 years agoNo longer needed.
Guido van Rossum [Sat, 10 Apr 1999 18:42:02 +0000 (18:42 +0000)]
No longer needed.

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

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

25 years agoThe usual
Guido van Rossum [Sat, 10 Apr 1999 16:02:18 +0000 (16:02 +0000)]
The usual

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

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

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

25 years agoAvoid totally empty files.
Guido van Rossum [Sat, 10 Apr 1999 14:00:28 +0000 (14:00 +0000)]
Avoid totally empty files.

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

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

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

25 years agoGet rid of #! line
Guido van Rossum [Fri, 9 Apr 1999 14:49:04 +0000 (14:49 +0000)]
Get rid of #! line

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

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

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

25 years agoThis commit was manufactured by cvs2svn to create tag 'r152c1'. v1.5.2c1
cvs2svn [Thu, 8 Apr 1999 20:50:27 +0000 (20:50 +0000)]
This commit was manufactured by cvs2svn to create tag 'r152c1'.

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

25 years agoNow using static zlib 1.1.3
Guido van Rossum [Thu, 8 Apr 1999 20:49:11 +0000 (20:49 +0000)]
Now using static zlib 1.1.3

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

25 years ago# TODO entries changed
Guido van Rossum [Thu, 8 Apr 1999 20:28:42 +0000 (20:28 +0000)]
# TODO entries changed

25 years agoThe usual
Guido van Rossum [Thu, 8 Apr 1999 20:27:54 +0000 (20:27 +0000)]
The usual

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

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

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

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

25 years agoOn Windows, we suddenly find, strftime() may return "" for an
Guido van Rossum [Thu, 8 Apr 1999 17:23:11 +0000 (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.

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

25 years agoDelete an accidentally checked-in feature that actually broke more
Guido van Rossum [Thu, 8 Apr 1999 14:46:06 +0000 (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).

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

25 years agoPatch by Andrew Kuchling to unflush() (flush() for deflating).
Guido van Rossum [Wed, 7 Apr 1999 20:23:17 +0000 (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.

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

25 years agoNew change log.
Guido van Rossum [Wed, 7 Apr 1999 18:43:22 +0000 (18:43 +0000)]
New change log.

25 years agoNew version.
Guido van Rossum [Wed, 7 Apr 1999 18:41:59 +0000 (18:41 +0000)]
New version.

25 years agoAlas, get rid of the Win specific hack to ask the user to press Return
Guido van Rossum [Wed, 7 Apr 1999 18:32:51 +0000 (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.

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

25 years agoRemoving an unused image of a snake.
Guido van Rossum [Wed, 7 Apr 1999 17:23:09 +0000 (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.

25 years agolower, tkraise/lift hide Misc.lower, Misc.tkraise/lift,
Guido van Rossum [Wed, 7 Apr 1999 16:25:54 +0000 (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)

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

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

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

25 years agoUpdated documentation by Per Cederqvist. I've added back the
Guido van Rossum [Wed, 7 Apr 1999 15:56:51 +0000 (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).

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

25 years agoChanges by Per Cederquist and The Dragon.
Guido van Rossum [Wed, 7 Apr 1999 15:03:39 +0000 (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.
"""

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.