summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Jack Jansen: The GUSI 2.0 I/O library used on the Mac uses theGuido van Rossum2000-04-241-9/+15
| | | | | | | | | | socklen_t (unsigned int) for most size parameters. Apparently this is part of the UNIX 98 standard. [GvR: the changes to configure.in etc. that I just checked in make sure that socklen_t is defined everywhere, so I deleted the little part of Jack's mod to define socklen_t if not in GUSI2. I suppose I will have to add it to the Windows config.h in a minute.]
* Jack Jansen: The GUSI 2.0 I/O library (which is used on the Mac)Guido van Rossum2000-04-241-1/+1
| | | | doesn't use the special header file for select anymore.
* Added tests for socklen_tGuido van Rossum2000-04-244-217/+257
|
* Jack Jansen: The new version of the GUSI i/o library on the MacintoshGuido van Rossum2000-04-242-5/+5
| | | | has a few slightly different calls from the old one.
* Jack Jansen: Posix threads are now supported on the Macintosh too.Guido van Rossum2000-04-241-0/+4
|
* Added site-packages. (Sorry, forgot who submitted this patch.)Guido van Rossum2000-04-241-1/+1
|
* Jack Jansen: A few new types needed by new API calls.Guido van Rossum2000-04-241-4/+6
|
* Oops -- Mark forgot to add "0x" to the /base: argument.Guido van Rossum2000-04-241-2/+2
|
* Fix to previous patch: send the request data when it's providedAndrew M. Kuchling2000-04-241-0/+2
|
* Added a provision to stop all threads before exiting from the test:Guido van Rossum2000-04-241-1/+7
| | | | | | the change to regrtest.py to unload all newly imported modules did something bad to the threads -- and I realized that they would never stop!
* Remove Windows line endings.Guido van Rossum2000-04-240-0/+0
|
* Fix spelling error and remove Windows line endings.Guido van Rossum2000-04-241-1/+1
|
* Changes by Mark Hammond to ignore more by-products of the build.Guido van Rossum2000-04-241-1/+2
|
* Security patch for Unix by Chris McDonough.Guido van Rossum2000-04-241-7/+21
| | | | | | This uses the same precautions when trying to find a temporary directory as when the actual tempfile is created (using O_CREAT and O_EXCL). On non-posix platforms, nothing is changed.
* Don't build the _tkinter project from Build, only the one from ↵Jack Jansen2000-04-231-4/+6
| | | | Extensions:Imaging, which now drops its resulting .slb into the PlugIns folder.