summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fixed bug reported by JP Calderone: https:// URL's didn't work.Andrew M. Kuchling2000-04-231-2/+8
| | | | The fix also adds support for POSTing to an https URL
* Patch from Harry Henry Gebel: fix two stupid bugs in help-printing stuff.Greg Ward2000-04-231-2/+2
|
* Added a couple of contributors. Still needs work for the next distribution.Jack Jansen2000-04-221-0/+8
|
* Erik van Blokland's CaptureAE.Jack Jansen2000-04-222-0/+367
|
* Added a reference to the Open Directory page on macPython.Jack Jansen2000-04-221-1/+6
|
* The .exp file hadn't been regenerated after adding the threading stuff. This ↵Jack Jansen2000-04-222-922/+1075
| | | | means that building a nonthreaded PythonCore will now require massaging of the .exp.
* Added a note about Personal Webserver, and replaced "netpresenz" by a list ↵Jack Jansen2000-04-221-3/+11
| | | | of the current mac webservers.
* Added Corran Webster's explanation of how to write extensions in MPW and a ↵Jack Jansen2000-04-223-4/+499
| | | | pointer to his W documentation.
* Sporadic, untested Python 1.5.1 compatibility changes.Greg Ward2000-04-221-1/+1
|
* Merged in Python 1.5.1 compatibility changes from the 0.1.3 branch:Greg Ward2000-04-221-0/+24
| | | | added 'abspath()' and 'extend()'.
* Merged in code from the 0.1.5 release to handle IOError and OSErrorGreg Ward2000-04-221-6/+12
| | | | exceptions better.
* Check that 'self.formats' is good early on.Greg Ward2000-04-221-3/+8
|
* Catch DistutilsOptionError in 'setup()' -- it's thrown either because ofGreg Ward2000-04-221-1/+3
| | | | | errors in the setup script or on the command line, so shouldn't result in a traceback.
* Extracted the "what-do-I-do-for-this-format" logic from code inGreg Ward2000-04-221-11/+21
| | | | | | 'make_archive()' to a global static dictionary, ARCHIVE_FORMATS. Added 'check_archive_formats()', which obviously makes good use of this dictionary.
* Fix how we generate the meta-data query methods to include 'get_fullname()'Greg Ward2000-04-221-3/+5
| | | | and the other "composite meta-data" methods.
* Changed to call 'get_fullname()', not 'get_full_name()', on Distribution object.Greg Ward2000-04-222-2/+2
|
* Made the GUSI options work again with GUSI 2.Jack Jansen2000-04-213-5/+42
|
* Added winsound project to workspace, and added -I options to winsoundGuido van Rossum2000-04-212-4/+20
|
* Patch by Vladimir Marangozov to unload additionally imported modulesGuido van Rossum2000-04-211-0/+5
| | | | | after each test has been run. This avoids excessive memory growth during the tests.
* Added test_winsound by Mark Hammond.Guido van Rossum2000-04-212-0/+9
|
* Mark Hammond:Guido van Rossum2000-04-212-3/+10
| | | | | | | | | | | * Base address for all extension modules updated. PC\dllbase_nt.txt also updated. Erroneous "libpath" directory removed for all projects. * winsound module moved from a builtin module to an extension module. This was done primarily to avoid Python16.dll needing to pull in winmm.dll. Really dumb test added for winsound - but if nothing else it ensures the module imports.
* Mark Hammond:Guido van Rossum2000-04-2114-107/+191
| | | | | | | | | | | | | | | | | | | * Temp directory for all projects are now specific to the project (rather than common as before). This avoids any conflicts with debug symbols or common file names etc. NOTE: You should manually delete your existing build directory after applying this patch, as the MSVC "clean" command will now only clean the new temporary directories - not the existing common temp directory. * Base address for all extension modules updated. PC\dllbase_nt.txt also updated. Erroneous "libpath" directory removed for all projects. * winsound module moved from a builtin module to an extension module. This was done primarily to avoid Python16.dll needing to pull in winmm.dll. Really dumb test added for winsound - but if nothing else it ensures the module imports.
* Charles Waldman writes:Guido van Rossum2000-04-211-14/+13
| | | | | | | | | | | | | | | | | | | | | | | | | """ Running "test_extcall" repeatedly results in memory leaks. One of these can't be fixed (at least not easily!), it happens since this code: def saboteur(**kw): kw['x'] = locals() d = {} saboteur(a=1, **d) creates a circular reference - d['x']['d']==d The others are due to some missing decrefs in ceval.c, fixed by the patch attached below. Note: I originally wrote this without the "goto", just adding the missing decref's where needed. But I think the goto is justified in keeping the executable code size of ceval as small as possible. """ [I think the circular reference is more like kw['x']['kw'] == kw. --GvR]
* Patch by Charles G Waldman to avoid a sneaky memory leak inGuido van Rossum2000-04-211-16/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | _PyTuple_Resize(). In addition, a change suggested by Jeremy Hylton to limit the size of the free lists is also merged into this patch. Charles wrote initially: """ Test Case: run the following code: class Nothing: def __len__(self): return 5 def __getitem__(self, i): if i < 3: return i else: raise IndexError, i def g(a,*b,**c): return for x in xrange(1000000): g(*Nothing()) and watch Python's memory use go up and up. Diagnosis: The analysis begins with the call to PySequence_Tuple at line 1641 in ceval.c - the argument to g is seen to be a sequence but not a tuple, so it needs to be converted from an abstract sequence to a concrete tuple. PySequence_Tuple starts off by creating a new tuple of length 5 (line 1122 in abstract.c). Then at line 1149, since only 3 elements were assigned, _PyTuple_Resize is called to make the 5-tuple into a 3-tuple. When we're all done the 3-tuple is decrefed, but rather than being freed it is placed on the free_tuples cache. The basic problem is that the 3-tuples are being added to the cache but never picked up again, since _PyTuple_Resize doesn't make use of the free_tuples cache. If you are resizing a 5-tuple to a 3-tuple and there is already a 3-tuple in free_tuples[3], instead of using this tuple, _PyTuple_Resize will realloc the 5-tuple to a 3-tuple. It would more efficient to use the existing 3-tuple and cache the 5-tuple. By making _PyTuple_Resize aware of the free_tuples (just as PyTuple_New), we not only save a few calls to realloc, but also prevent this misbehavior whereby tuples are being added to the free_tuples list but never properly "recycled". """ And later: """ This patch replaces my submission of Sun, 16 Apr and addresses Jeremy Hylton's suggestions that we also limit the size of the free tuple list. I chose 2000 as the maximum number of tuples of any particular size to save. There was also a problem with the previous version of this patch causing a core dump if Python was built with Py_TRACE_REFS. This is fixed in the below version of the patch, which uses tupledealloc instead of _Py_Dealloc. """
* Charles Waldman writes:Guido van Rossum2000-04-211-4/+4
| | | | | | | | | | """ In the course of debugging this I also saw that cPickle is inconsistent with pickle - if you attempt a pickle.load or pickle.dump on a closed file, you get a ValueError, whereas the corresponding cPickle operations give an IOError. Since cPickle is advertised as being compatible with pickle, I changed these exceptions to match. """
* Charles Waldman writes:Guido van Rossum2000-04-211-14/+11
| | | | | | | | | | | | | | | | | | | | """ Problem description: Run the following script: import test.test_cpickle for x in xrange(1000000): reload(test.test_cpickle) Watch Python's memory use go up up and away! In the course of debugging this I also saw that cPickle is inconsistent with pickle - if you attempt a pickle.load or pickle.dump on a closed file, you get a ValueError, whereas the corresponding cPickle operations give an IOError. Since cPickle is advertised as being compatible with pickle, I changed these exceptions to match. """
* Use an explicit macro SOCKETCLOSE which expands to closesocket (onGuido van Rossum2000-04-211-10/+14
| | | | | | | | | Windows), soclose (on OS2), or to close (everywhere else). Hopefully this fixes a new compilation error that I suddenly get on Windows because the macro definition for close -> closesocket apparently was done before including io.h, which contains a prototype for close. (No idea why this wasn't an error before.)
* Patch by Brian Hooper, somewhat augmented by GvR, to strip a trailingGuido van Rossum2000-04-211-0/+28
| | | | | | | | | | backslash from the pathname argument to stat() on Windows -- while on Unix, stat("/bin/") succeeds and does the same thing as stat("/bin"), on Windows, stat("\\windows\\") fails while stat("\\windows") succeeds. This modified version of the patch recognizes both / and \. (This is odd behavior of the MS C library, since os.listdir("\\windows\\") succeeds!)
* Doc strings for the spawn* functions, by Michael Hudson.Guido van Rossum2000-04-211-0/+56
|
* Fix 'check_metadata()' so it grovels through the distribution's metadataGreg Ward2000-04-211-6/+6
| | | | | object, rather than through the distribution itself (since I moved the meta- data out to a DistributionMetadata instance).
* Patch from Andrew Kuchling: document the new multiple pattern feature in theGreg Ward2000-04-211-12/+15
| | | | manifest template.
* Patch from Andrew Kuchling: allow multiple include/exclude patternsGreg Ward2000-04-211-48/+55
| | | | for all commands except 'prune' and 'graft'.
* Fixed the '--license' option so it's officially an alias for '--licence',Greg Ward2000-04-211-4/+1
| | | | and now actually works.
* Added the capability for alias options.Greg Ward2000-04-211-12/+36
|
* Added 'has_option()', 'get_attr_name()' methods.Greg Ward2000-04-211-1/+14
|
* Patch, originally from Bastian Kleineidam and savagely mutilated by me,Greg Ward2000-04-211-50/+193
| | | | | | | | | | | | | | | | | to add the "display metadata" options: --name, --version, --author, and so forth. Main changes: * added 'display_options' class attribute to list all the "display only" options (--help-commands plus the metadata options) * added DistributionMetadata class as a place to put the actual metadata information from the setup script (not to be confused with the metadata display options); the logic dealing with metadata (eg. return self.name or "UNKNOWN") is now in this class * changed 'parse_command_line()' to use the new OO interface provided by fancy_getopt, mainly so we can get at the original order of options on the command line, so we can print multiple lines of distribution meta-data in the order specified by the user * added 'handle_display_options()' to handle display-only options Also fixed some crufty old comments/docstrings.
* Made 'generate_help()' and 'print_help()' methods of FancyGetopt.Greg Ward2000-04-211-99/+102
| | | | | | Added 'set_option_table()' method. Added missing 'self' to 'get_option_order()'. Cosmetic/comment/docstring tweaks.
* Continuing the refactoring: deleted the old 'fancy_getopt()' function,Greg Ward2000-04-211-121/+0
| | | | | leaving in its place a tiny wrapper around the FancyGetopt class for backwards compatibility.
* Hefty refactoring: converted 'fancy_getopt()' function into FancyGetoptGreg Ward2000-04-211-15/+266
| | | | | | | | class. (Mainly this was to support the ability to go back after the getopt operation is done and get extra information about the parse, in particular the original order of options seen on the command line. But it's a big improvement and should make it a lot easier to add functionality in the future.)
* Reformatted wide paragraphs.Greg Ward2000-04-191-23/+22
|
* Reverted '\var' in the "standard installation location" table to '\filevar'.Greg Ward2000-04-191-49/+51
| | | | Reformatted wide paragraphs.
* Dropped '\tilde' and '\bslash' definitions.Greg Ward2000-04-191-5/+0
|
* Changed '\tilde' and '\bslash' to the standard '\textasciitilde' andGreg Ward2000-04-191-9/+9
| | | | '\textbackslash'.
* Removed '\package' definition.Greg Ward2000-04-191-2/+0
|
* Changed '\package' to \module'.Greg Ward2000-04-191-6/+6
|
* Changed '\option' to '\longprogramopt' wherever it referred to a command-lineGreg Ward2000-04-192-27/+27
| | | | option.
* ANSI-fy & de-tabify the source.Fred Drake2000-04-191-1505/+1317
| | | | (4-space indents already used.)
* Bumped version to 0.8.1.Greg Ward2000-04-191-1/+1
|
* Added kludge to deal with the "./ld_so_aix" problem: force all stringsGreg Ward2000-04-191-0/+15
| | | | | in the Makefile that start with "./" to be absolute paths (with the implied root being the directory where the Makefile itself was found).
* Don't load the config.h file, even under Unix, because we never use theGreg Ward2000-04-191-2/+0
| | | | | information from config.h. Code is still there in case someone in the future needs to parse an autoconf-generated config.h file.