Guido van Rossum
2a340b3889
Use isinstance() where appropriate.
...
Reformatted with 4-space indent.
1999-03-26 16:20:18 +00:00
Barry Warsaw
ecb1a65f63
Helpwin.__init__(): The text widget should get focus.
1999-03-26 16:11:40 +00:00
Barry Warsaw
61ba0721db
Removed unnecessary import `from PyncheWidget import PyncheWidget'
1999-03-26 15:59:51 +00:00
Guido van Rossum
3eccc48b5b
Test suite for UserDict
1999-03-26 15:32:05 +00:00
Guido van Rossum
1697b9cdf6
Improved a bunch of things.
...
The constructor now takes an optional dictionary.
Use isinstance() where appropriate.
1999-03-26 15:31:12 +00:00
Guido van Rossum
aa3828aa35
Basic regr tests for pickle/cPickle
1999-03-25 22:38:49 +00:00
Fred Drake
7c6a90de8a
Added some rules that affect those little "See also:" sections.
1999-03-25 22:22:45 +00:00
Fred Drake
bb584d3f6e
Be more stylesheet friendly.
1999-03-25 22:18:30 +00:00
Fred Drake
a608a1df87
Require the verbatim package (similar to the LaTeX version).
1999-03-25 22:17:29 +00:00
Guido van Rossum
397032aa46
Don't use "exec" in find_class(). It's slow, unnecessary, and (as AMK
...
points out) it doesn't work in JPython Applets.
1999-03-25 21:58:59 +00:00
Andrew M. Kuchling
605ebddbea
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.
1999-03-25 21:50:27 +00:00
Andrew M. Kuchling
f4f119c055
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'
1999-03-25 21:49:14 +00:00
Guido van Rossum
52a0d7d802
Add tests for float() and complex() with string args (Nick/Stephanie
...
Lockwood).
1999-03-25 21:25:01 +00:00
Guido van Rossum
cb1f2420ea
Document complex() with string arg.
1999-03-25 21:23:26 +00:00
Andrew M. Kuchling
b95227db4f
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.
1999-03-25 21:21:08 +00:00
Guido van Rossum
1195023b89
Patch by Nick and Stephanie Lockwood to implement complex() with a string
...
argument. This closes TODO item 2.19.
1999-03-25 21:16:07 +00:00
Guido van Rossum
5fc9c869dd
SIGTERM is no longer caught to call sys.exitfunc.
...
This change was made long ago but the documentation was never updated.
1999-03-25 20:30:00 +00:00
Fred Drake
2cafcbb440
Remove \platformof support, since it's been removed from the LaTeX
...
style sheet.
Small nits.
1999-03-25 16:57:04 +00:00
Fred Drake
e82f5b3d6e
Added note about ftpmirror.py, since that seems to be one of the most
...
requested Python tools/examples.
1999-03-25 05:04:17 +00:00
Guido van Rossum
545006259d
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.)
1999-03-24 19:09:00 +00:00
Guido van Rossum
2bc137909d
Vladimir Marangozov contributed updated comments.
1999-03-24 19:06:42 +00:00
Guido van Rossum
cd037e7bed
Folded long lines.
1999-03-24 19:05:31 +00:00
Guido van Rossum
a6386ce1eb
Added Jeremy's test code for the sha module.
1999-03-24 19:04:32 +00:00
Guido van Rossum
29d2acc170
Added Greg Stein and Andrew Kuchling's sha module.
...
Fix comments about zlib version and URL.
1999-03-24 19:03:59 +00:00
Guido van Rossum
4ec2698725
Remove the temp file when we're done.
1999-03-24 19:03:01 +00:00
Guido van Rossum
d023a78f59
Conform to standard boilerplate.
1999-03-24 19:02:09 +00:00
Guido van Rossum
6b9da45969
Chris Herborth: the new compiler in R4.1 needs some new options to work...
1999-03-24 17:48:12 +00:00
Guido van Rossum
e7de2061b4
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.
1999-03-24 17:24:33 +00:00
Guido van Rossum
7b6c71f5a4
Vladimir Marangozov implements the AIX 3-arg gethostbyname_r code.
1999-03-24 17:20:40 +00:00
Guido van Rossum
e256a0feed
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.
1999-03-24 16:20:45 +00:00
Fred Drake
9b8afdee44
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>.
1999-03-24 14:16:17 +00:00
Jeremy Hylton
c19f9972a1
use struct instead of bit-manipulate in Python
1999-03-23 23:05:34 +00:00
Guido van Rossum
8ad22c8153
Add $(EXE) to various occurrences of python so it will work on Cygwin
...
with egcs (after setting EXE=.exe). Patch by Norman Vine.
1999-03-23 19:00:55 +00:00
Guido van Rossum
8db7d8bf6b
Ack! It never defined HAVE_GETHOSTBYNAME_R so that code was never tested!
1999-03-23 16:40:33 +00:00
Greg Ward
782cdfe9f3
Changes to allow passing an open file to the constructor (to support
...
ProcessHierarchy's changes to support reading from a remote URL in
ProcessDatabase).
1999-03-23 14:00:06 +00:00
Guido van Rossum
d709b48706
Adding thread.h -- unused but for b/w compatibility.
...
As requested by Bill Janssen.
1999-03-22 22:25:39 +00:00
Jack Jansen
012ae207a5
Added bufferobject.c
1999-03-22 22:24:03 +00:00
Guido van Rossum
a96f0ba7cc
Add code to test for all sorts of gethostbyname_r variants,
...
donated by David Arnold.
1999-03-22 21:49:51 +00:00
Guido van Rossum
7152e9b483
Add symbols for gethostbyname_r variants (sigh).
1999-03-22 21:46:06 +00:00
Guido van Rossum
3baaa1375b
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.")
1999-03-22 21:44:51 +00:00
Guido van Rossum
955becc3d9
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.
1999-03-22 20:14:53 +00:00
Andrew M. Kuchling
173156fa32
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.
1999-03-22 19:25:30 +00:00
Andrew M. Kuchling
dca7e00fd5
Added simple test for the flush() method of compression objects, trying the
...
different flush values Z_NO_FLUSH, Z_SYNC_FLUSH, Z_FULL_FLUSH.
1999-03-22 19:23:17 +00:00
Guido van Rossum
f247d75507
Bug reported by Tobias Thelen: missing "self." in assignment target.
1999-03-22 15:28:08 +00:00
Greg Ward
13ae1c8ff8
First checkin of real Distutils command modules.
1999-03-22 14:55:25 +00:00
Greg Ward
03f8c3cdd0
Obsolete source file -- command options are actually implemented in
...
a much less formalistic way. Just keeping this around for possible
future reference.
1999-03-22 14:54:09 +00:00
Greg Ward
2689e3ddce
First checkin of real Distutils code.
1999-03-22 14:52:19 +00:00
Guido van Rossum
481ac8811e
Use an unsigned cast to avoid a warning in VC++.
1999-03-19 21:50:11 +00:00
Guido van Rossum
8f0fa9e47f
New code for split() by Tim Peters, behaves more like posixpath.split().
1999-03-19 21:05:12 +00:00
Guido van Rossum
d7b5fb858c
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.
1999-03-19 20:59:40 +00:00