summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Don't worry about the output dirs for the distutils manuals.Fred Drake2000-04-281-0/+2
|
* Added distutils manuals.Fred Drake2000-04-281-22/+31
| | | | Made the attributes more XHTML-friendly.
* Stripped leading 'sec:' from all section labels -- generates bad filenames,Greg Ward2000-04-282-57/+57
| | | | bad link URLs in HTML, etc.
* When building HTML releases, refer to */*.css and */*.html instead ofGreg Ward2000-04-281-3/+3
| | | | ???/*.css and ???/*.html -- need to pick up the Distutils manuals!
* Added the Distutils manuals.Greg Ward2000-04-281-0/+2
|
* Added the Distutils manuals: inst and dist.Greg Ward2000-04-281-3/+17
|
* Added 'inst' and 'dist' -- the two Distutils manuals.Greg Ward2000-04-284-4/+50
|
* Charles G Waldman:Guido van Rossum2000-04-281-36/+49
| | | | | | | | Follow a suggestion in an /*XXX*/ comment [in com_add()] to speed up compilation by using supplemental dictionaries to keep track of names and constants, eliminating quadratic behavior. With this patch in place, the time to import a 5000-line file with lots of constants [at the global level] is reduced from 20 seconds to under 3 on my system.
* Documentation patch describing the 'u' and 'u#' format specifiers,Fred Drake2000-04-281-0/+10
| | | | from Brian Hooper <brian_takashi@hotmail.com>.
* Brian Hooper <brian_takashi@hotmail.com>:Fred Drake2000-04-281-1/+31
| | | | | | | | | | | Here's a patch which changes modsupport to add 'u' and 'u#', to support building Unicode objects from a null-terminated Py_UNICODE *, and a Py_UNICODE * with length, respectively. [Conversion from 'U' to 'u' by Fred, based on python-dev comments.] Note that the use of None for NULL values of the Py_UNICODE* value is still in; I'm not sure of the conclusion on that issue.
* Sjoerd Mullender: cmp.py is obsolete...Guido van Rossum2000-04-281-5/+2
|
* Mark Hammond: For Windows debug builds, we now only offer to dumpGuido van Rossum2000-04-271-1/+5
| | | | | | remaining object references if the environment variable PYTHONDUMPREFS exists. The default behaviour caused problems for background or otherwise invisible processes that use the debug build of Python.
* Deviant1 didn't work as advertisedJeremy Hylton2000-04-271-4/+4
|
* add list_contains and tuplecontains: efficient implementations of tp_containsJeremy Hylton2000-04-272-0/+39
|
* add some more contains tests on the builtin typesJeremy Hylton2000-04-271-0/+47
|
* Support for the special macros used by the distutils documentation.Fred Drake2000-04-271-0/+21
|
* Marc-Andre Lemburg:Guido van Rossum2000-04-271-1/+3
| | | | Fixes a memory leak found by Fredrik Lundh.
* Marc-Andre Lemburg:Guido van Rossum2000-04-271-1/+1
| | | | Doc strings can now be given as Unicode strings.
* Marc-Andre Lemburg:Guido van Rossum2000-04-271-14/+16
| | | | | | | Fixed a reference leak in the allocator. Renamed utf8_string to _PyUnicode_AsUTF8String() and made it external for use by other parts of the interpreter.
* Marc-Andre Lemburg:Guido van Rossum2000-04-271-2/+7
| | | | | | | | Fixed a memory leak found by Fredrik Lundh. Instead of PyUnicode_AsUTF8String() we now use _PyUnicode_AsUTF8String() which returns the string object without incremented refcount (and assures that the so obtained object remains alive until the Unicode object is garbage collected).
* Added a note to the section on 'exec' about the need for a trailing newlineGreg Ward2000-04-271-1/+10
| | | | in certain circumstances. (Apparently, this is a CPython problem.)
* Added the "--root" option as a sort of meta-install-base; if supplied,Greg Ward2000-04-271-11/+31
| | | | | | it is forcibly prepended onto all installation directories, even if they are already absolute. Added 'dump_dirs()' to clean up the debug output a bit.
* Added 'change_root()' to forcibly slap a new root directory onto a pathname,Greg Ward2000-04-271-0/+26
| | | | | | even if it's already absolute. Currently only implemented for Unix; I'm not entirely sure of the right thing to do for DOS/Windows, and have no clue what to do for Mac OS.
* Almost ready for 1.6a2.Jack Jansen2000-04-2632-1/+0
|
* Jack Jansen:Guido van Rossum2000-04-261-0/+17
| | | | | | | | This patch is a workaround for Macintosh, where the GUSI I/O library (time, stat, etc) use the MacOS epoch of 1-Jan-1904 and the MSL C library (ctime, localtime, etc) uses the (apparently ANSI standard) epoch of 1-Jan-1900. Python programs see the MacOS epoch and we convert values when needed.
* potentially useless optimizationJeremy Hylton2000-04-261-11/+20
| | | | | | | | | | | | | | | | | | | | The previous checkin (2.84) added a PyErr_Format call that made the cost of raising an AttributeError much more expensive. In general this doesn't matter, except that checks for __init__ and __del__ methods, where exceptions are caught and cleared in C, also got much more expensive. The fix is to split instance_getattr1 into two calls: instance_getattr2 checks the instance and the class for the attribute and returns it or returns NULL on error. It does not raise an exception. instance_getattr1 does rexec checks, then calls instance_getattr2. It raises an exception if instance_getattr2 returns NULL. PyInstance_New and instance_dealloc now call instance_getattr2 directly.
* Michael Hudson:Guido van Rossum2000-04-261-3/+16
| | | | | | | | | | | | This patch changes posixmodule.c:execv to a) check for zero length args (does this to execve, too), raising ValueError. b) raises more rational exceptions for various flavours of duff arguments. I *hate* TypeError: "illegal argument type for built-in operation" It has to be one of the most frustrating error messages ever.
* Michael Hudson fixes a case where execv() is called (for a test) withGuido van Rossum2000-04-261-1/+1
| | | | | an empty argument list -- another patch he's checking in will make this illegal (the first argument should always be the program name).
* Added a "See also:" section that exhibits the \seerfc markup.Fred Drake2000-04-261-0/+7
|
* Define \seerfc within the seealso environment.Fred Drake2000-04-261-0/+9
|
* ref_module_index_helper(): Use "my" instead of "local".Fred Drake2000-04-261-5/+22
| | | | | | | | | | | get_rfc_url(): New function; returns the URL for a numbered IETF RFC. do_cmd_rfc(): Use get_rfc_url() instead of hard-coding in the HTML formatting. do_cmd_seerfc(): New function. do_env_definitions(): Small change to avoid "local".
* Hacked things up a bit so that configuration variables are expandedGreg Ward2000-04-261-27/+52
| | | | | | | | | | | | | | | | | | in command-line options, and in two phases at that: first, we expand 'install_base' and 'install_platbase', and then the other 'install_*' options. This lets us do tricky stuff like install --prefix='/tmp$sys_prefix' ...oooh, neat. Simplified 'select_scheme()' -- it's no longer responsible for expanding config vars, tildes, etc. Define installation-specific config vars in 'self.config_vars', rather than in a local dictionary of one method. Also factored '_expand_attrs()' out of 'expand_dirs()' and added 'expand_basedirs()'. Added a bunch of debugging output so I (and others) can judge the success of this crazy scheme through direct feedback.
* Harry Henry Gebel: import exception classes.Greg Ward2000-04-261-1/+1
|
* Harry Henry Gebel: add 'long_description' to DistributionMetadata.Greg Ward2000-04-261-1/+7
|
* Supply short form for --manifest-only (-o) and --force-manifest (-f)Greg Ward2000-04-261-2/+2
| | | | options.
* Harry Henry Gebel:Greg Ward2000-04-261-5/+5
| | | | Fix 'sdist.write_manifest()' to respect the value of dry_run.
* Fix typo in last patch -- the symbol's name is MSG_DONWAIT, notGuido van Rossum2000-04-251-1/+1
| | | | MSG_DONTWAIT. Reported by Fredrik Lundh.
* Patch by Charles G Waldman:Guido van Rossum2000-04-251-1/+4
| | | | | 1) Adds MSG_DONTWAIT if defined (I needed this) 2) Spells "coreectly" correctly ;-)
* Patch inspired by Just van Rossum: on the Mac, in savefilename(), makeGuido van Rossum2000-04-251-1/+3
| | | | | the path to save a relative path by prefixing it with os.sep (':'). Also fix an indent inconsistency in the same function.
* Removed some extraneous and confusing parenthesized expressions.Fred Drake2000-04-251-3/+3
| | | | Noted by Skip Montanaro <skip@mojam.com>.
* Charles G Waldman: Doing a PyObject_New then PyMem_DEL causes havoc ifGuido van Rossum2000-04-251-3/+3
| | | | you are trying to use Py_TRACE_REFS.
* Michael Hudson:Guido van Rossum2000-04-251-1/+29
| | | | | | | | I think that after this patch, all objects in the os module (with names that don't start with "_") that can have docstrings, do, on Linux at least. Also fix a nit in one of my spawn* docstrings.
* validate_arglist(): Re-written to reflect extended call syntax.Fred Drake2000-04-251-3/+80
| | | | | validate_numnodes(): Added comment to explain the sometimes idiomatic usage pattern.
* Mark Hammond: Added dependency of winsound project on python16Guido van Rossum2000-04-251-0/+3
| | | | | | project. [However I didn't add the other changes in his patch, which were just taking away the source code control stuff -- this doesn't hurt and would come back as soon as I make another change. --GvR]
* Added section headers for "Extending the Distutils" section (justGreg Ward2000-04-251-0/+14
| | | | a reminder to myself).
* Bumped version to 0.8.2.Greg Ward2000-04-251-1/+1
|
* Harry Henry Gebel:Greg Ward2000-04-253-11/+20
| | | | | | | | | | | | | | | Adds bztar format to generate .tar.bz2 tarballs Uses the -f argument to overright old tarballs automatically, I am assuming that if the old tarball was wanted it would have been moved or else the version number would have been changed. Uses the -9 argument to bzip2 and gzip to use maximum compression. Compress uses the maximum compression by default. Tests for correct value for the 'compress' argument of make_tarball. This is one less place for someone adding new compression programs to forget to change.
* Lyle Johnson: fixed broken logic in 'native_path()'.Greg Ward2000-04-251-7/+7
|
* Christian Tismer -- total rewrite on trashcan code.Guido van Rossum2000-04-242-17/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improvements: - does no longer need any extra memory - has no relationship to tstate - works in debug mode - can easily be modified for free threading (hi Greg:) Side effects: Trashcan does change the order of object destruction. Prevending that would be quite an immense effort, as my attempts have shown. This version works always the same, with debug mode or not. The slightly changed destruction order should therefore be no problem. Algorithm: While the old idea of delaying the destruction of some obejcts at a certain recursion level was kept, we now no longer aloocate an object to hold these objects. The delayed objects are instead chained together via their ob_type field. The type is encoded via ob_refcnt. When it comes to the destruction of the chain of waiting objects, the topmost object is popped off the chain and revived with type and refcount 1, then it gets a normal Py_DECREF. I am confident that this solution is near optimum for minimizing side effects and code bloat.
* Add definition of socklen_t so that socketmodule.c will compile on Windows.Guido van Rossum2000-04-241-0/+3
|