summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Don't use "exec" in find_class(). It's slow, unnecessary, and (as AMKGuido van Rossum1999-03-251-5/+4
| | | | points out) it doesn't work in JPython Applets.
* Added a simple test suite for gzip. It simply opens a temp file,Andrew M. Kuchling1999-03-251-0/+30
| | | | | writes a chunk of compressed data, closes it, writes another chunk, and reads the contents back to verify that they are the same.
* Based on a suggestion from bruce@hams.com, make a trivial change toAndrew M. Kuchling1999-03-251-32/+67
| | | | | | | | | | | | | 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'
* Add tests for float() and complex() with string args (Nick/StephanieGuido van Rossum1999-03-251-0/+2
| | | | Lockwood).
* Document complex() with string arg.Guido van Rossum1999-03-251-2/+4
|
* Add an .unused_data attribute to decompressor objects. If .unused_dataAndrew M. Kuchling1999-03-251-0/+22
| | | | | | 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.
* Patch by Nick and Stephanie Lockwood to implement complex() with a stringGuido van Rossum1999-03-251-4/+133
| | | | argument. This closes TODO item 2.19.
* SIGTERM is no longer caught to call sys.exitfunc.Guido van Rossum1999-03-252-7/+5
| | | | This change was made long ago but the documentation was never updated.
* Remove \platformof support, since it's been removed from the LaTeXFred Drake1999-03-251-24/+9
| | | | | | style sheet. Small nits.
* Added note about ftpmirror.py, since that seems to be one of the mostFred Drake1999-03-251-0/+8
| | | | requested Python tools/examples.
* Added Samuel Bayer's new webchecker.Guido van Rossum1999-03-241-0/+884
| | | | | | | | 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.)
* Vladimir Marangozov contributed updated comments.Guido van Rossum1999-03-241-11/+8
|
* Folded long lines.Guido van Rossum1999-03-241-9/+18
|
* Added Jeremy's test code for the sha module.Guido van Rossum1999-03-242-0/+32
|
* Added Greg Stein and Andrew Kuchling's sha module.Guido van Rossum1999-03-242-1/+610
| | | | Fix comments about zlib version and URL.
* Remove the temp file when we're done.Guido van Rossum1999-03-241-1/+6
|
* Conform to standard boilerplate.Guido van Rossum1999-03-241-3/+34
|
* Chris Herborth: the new compiler in R4.1 needs some new options to work...Guido van Rossum1999-03-244-254/+266
|
* Implement two suggestions by Jonathan Giddy: (1) in AIX, clear theGuido van Rossum1999-03-241-0/+19
| | | | | | | | | | | | 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.
* Vladimir Marangozov implements the AIX 3-arg gethostbyname_r code.Guido van Rossum1999-03-241-14/+32
|
* Add readlines() to _Subfile class. Not clear who would need it, butGuido van Rossum1999-03-241-0/+13
| | | | | Chris Lawrence sent me a broken version; this one is a tad simpler and more conforming to the standard.
* Use more recent option to \pdfdest to not change the zoom factor.Fred Drake1999-03-241-1/+1
| | | | This is in response to a comment from Wes Rishel <wes@rishel.com>.
* use struct instead of bit-manipulate in PythonJeremy Hylton1999-03-231-21/+3
|
* Add $(EXE) to various occurrences of python so it will work on CygwinGuido van Rossum1999-03-231-2/+2
| | | | with egcs (after setting EXE=.exe). Patch by Norman Vine.
* Ack! It never defined HAVE_GETHOSTBYNAME_R so that code was never tested!Guido van Rossum1999-03-232-28/+46
|
* Changes to allow passing an open file to the constructor (to supportGreg Ward1999-03-231-14/+13
| | | | | ProcessHierarchy's changes to support reading from a remote URL in ProcessDatabase).
* Adding thread.h -- unused but for b/w compatibility.Guido van Rossum1999-03-221-0/+62
| | | | As requested by Bill Janssen.
* Added bufferobject.cJack Jansen1999-03-225-0/+0
|
* Add code to test for all sorts of gethostbyname_r variants,Guido van Rossum1999-03-222-21/+315
| | | | donated by David Arnold.
* Add symbols for gethostbyname_r variants (sigh).Guido van Rossum1999-03-222-3/+27
|
* Clean up pass for the previous patches.Guido van Rossum1999-03-221-23/+35
| | | | | | | | | | | | | | | | | | - 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.")
* Jonathan Giddy writes:Guido van Rossum1999-03-221-8/+15
| | | | | | | | 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.
* Fixed the flush() method of compression objects; the test forAndrew M. Kuchling1999-03-221-12/+29
| | | | | the end of loop was incorrect, and failed when the flushmode != Z_FINISH. Logic cleaned up and commented.
* Added simple test for the flush() method of compression objects, trying theAndrew M. Kuchling1999-03-221-0/+13
| | | | different flush values Z_NO_FLUSH, Z_SYNC_FLUSH, Z_FULL_FLUSH.
* Bug reported by Tobias Thelen: missing "self." in assignment target.Guido van Rossum1999-03-221-1/+1
|
* First checkin of real Distutils command modules.Greg Ward1999-03-226-0/+448
|
* Obsolete source file -- command options are actually implemented inGreg Ward1999-03-221-111/+0
| | | | | a much less formalistic way. Just keeping this around for possible future reference.
* First checkin of real Distutils code.Greg Ward1999-03-225-0/+1131
|
* Use an unsigned cast to avoid a warning in VC++.Guido van Rossum1999-03-191-1/+2
|
* New code for split() by Tim Peters, behaves more like posixpath.split().Guido van Rossum1999-03-192-40/+25
|
* Fix a problem with Vladimir's PyFloat_Fini code: clear the free list; ifGuido van Rossum1999-03-191-5/+17
| | | | | 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.
* Fix a problem with Vladimir's PyInt_Fini code: clear the free list; ifGuido van Rossum1999-03-191-5/+27
| | | | | | 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.
* Document new builtin buffer(). Greg Stein.Guido van Rossum1999-03-191-0/+10
|
* Added BufferType, the type returned by the new builtin buffer(). Greg Stein.Guido van Rossum1999-03-191-0/+1
|
* New builtin buffer() creates a derived read-only buffer from anyGuido van Rossum1999-03-191-0/+24
| | | | object that supports the buffer interface (e.g. strings, arrays).
* Added check for negative offset for PyBuffer_FromObject and check forGuido van Rossum1999-03-191-1/+13
| | | | negative size for PyBuffer_FromMemory. Greg Stein.
* Added htmldoc, to generate the HTML for "Documenting Python".Fred Drake1999-03-181-0/+3
|
* Add "Documenting Python" to the list of processed documents.Fred Drake1999-03-181-1/+7
|
* LaTeX2HTML support for the ltxmarkup package.Fred Drake1999-03-181-0/+51
|
* Add some (commented out) macros to change the page size to the size ofFred Drake1999-03-181-41/+35
| | | | | | | | | | | | | | 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.