summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Only supply popen2, popen3 when fork exists.Guido van Rossum2000-09-191-13/+15
| | | | (This avoids defining non-working versions of these on the Mac.)
* Make better use of GNU Pth -- patch by Andy Dustman.Guido van Rossum2000-09-197-558/+521
| | | | | | | | | | | | | | | I can't test this, so I'm just checking it in with blind faith in Andy. I've tested that it doesn't broeak a non-Pth build on Linux. Changes include: - There's a --with-pth configure option. - Instead of _GNU_PTH, we test for HAVE_PTH. - Better signal handling. - (The config.h.in file is regenerated in a slightly different order.)
* Updated Windows build info.Tim Peters2000-09-191-4/+3
|
* Do not close socket when a Content-Length is 0. This make theJeremy Hylton2000-09-181-15/+20
| | | | | | | interface consistent: The client is responsible for closing the socket, regardless of the amount of data received. Restore suport for set_debuglevel call.
* Test output that goes with updated test_minidom.Paul Prescod2000-09-181-0/+44
|
* Fix serious typo!Fred Drake2000-09-181-1/+3
| | | | Add the new constants to the module docstring.
* Change assertions to confirmations so that optimization doesn't disablePaul Prescod2000-09-181-46/+66
| | | | checks.
* Fix up the cleanup of the temporary DB so it works for BSD DB'sFred Drake2000-09-181-4/+12
| | | | compatibility layer as well as "classic" ndbm.
* Reduce the number of imports needed.Fred Drake2000-09-181-20/+23
| | | | Make the code conform better to the Python style guide.
* Document the "printable" and "punctuation" constants added to the stringFred Drake2000-09-181-0/+11
| | | | module.
* Richard Mortier <rmm1002@users.sourceforge.net>:Fred Drake2000-09-181-0/+2
| | | | Add the constants "printable" and "punctuation" to the string module.
* Remove two unnecessary imports.Fred Drake2000-09-181-26/+26
| | | | | | | Update the module docstring to reflect the actual list of modules in the xml.sax package. Make the code better conform to the Python style guide.
* Once we're done with the sys module, remove it from the namespace soFred Drake2000-09-181-13/+11
| | | | this module is "import *" safe.
* Deferred the attribute name object type checking to the underlyingMarc-André Lemburg2000-09-181-4/+4
| | | | | | PyObject_Set/GetAttr() calls. This patch fixes bug #113829.
* Add missing \declaremodule for zipfile.Fred Drake2000-09-181-0/+1
|
* PyObject_SetAttr() and PyObject_GetAttr() now also accept UnicodeMarc-André Lemburg2000-09-181-11/+37
| | | | | | | | | | | | | | | objects for the attribute name. Unicode objects are converted to a string using the default encoding before trying the lookup. Note that previously it was allowed to pass arbitrary objects as attribute name in case the tp_getattro/setattro slots were defined. This patch fixes this by applying an explicit string check first: all uses of these slots expect string objects and do not check for the type resulting in a core dump. The tp_getattro/setattro are still useful as optimization for lookups using interned string objects though. This patch fixes bug #113829.
* Repaired some glitches in the MD5 and SHA docs; copied the descriptions ofTim Peters2000-09-182-10/+31
| | | | | | the MD5 methods into the SHA docs (substituting "sha" for "md5", of course, and changing the stuff that depended on digest size accordingly). Fred, don't trust me!
* sys.setdefaultencoding() should only be called in case the standardMarc-André Lemburg2000-09-181-2/+3
| | | | | | | | default encoding ("ascii") is changed. This safes quite a few cycles during startup since the first call to .setdefaultencoding() will initialize the codec registry and the encodings package. See python-dev for a discussion (Subject: "[Python-Dev] [comp.lang.python] sys.setdefaultencoding (2.0b1)").
* satisfy the tabnannyJeremy Hylton2000-09-183-358/+358
|
* Catch up to recent changes in TextFile (spotted by Bastian Kleineidam).Greg Ward2000-09-181-1/+1
|
* Added documentation for new functions.Fred Drake2000-09-171-3/+11
| | | | | | | Deprecated sequenceIncludes(). Based on patch by Denis S. Otkidach <ods@users.sourceforge.net>, this closes SourceForge patch #101390.
* Add invert() and __invert__() as aliases for inv()/__inv__().Fred Drake2000-09-171-11/+16
| | | | | | | | Add contains() as alias for __contains__(). Make PyArg_ParseTuple() formats include the function name. Based on patch by Denis S. Otkidach <ods@users.sourceforge.net>, this closes SourceForge patch #101390.
* Fix for SF bug 110688: Instance deallocation neglected to account forTim Peters2000-09-171-12/+28
| | | | | | | | | | that Py_INCREF boosts global _Py_RefTotal when Py_REF_DEBUG is defined but Py_TRACE_REFS isn't. There are, IMO, way too many preprocessor gimmicks in use for refcount debugging (at least 3 distinct true/false symbols, but not all 8 combos are supported by the code, etc etc), and no coherent documentation of this stuff -- 'twas too painful to track this one down.
* Fixed to respect 'define_macros' and 'undef_macros' on Extension object.Greg Ward2000-09-171-1/+5
|
* Added 'expand_makefile_vars()' to (duh) expand make-style variablesGreg Ward2000-09-171-9/+39
| | | | | | | | in a string (gives you something to do with the dictionary returned by 'parse_makefile()'). Pulled the regexes in 'parse_makefile()' out -- they're now globals, as 'expand_makefile_vars()' needs (two of) them. Cosmetic tweaks to 'parse_makefile()'.
* Added 'read_setup_file()' to read old-style Setup files. Could make lifeGreg Ward2000-09-171-2/+110
| | | | | | easier for people porting Makefile.pre.in-based extensions to Distutils. Also loosened argument-checking in Extension constructor to make life easier for 'read_setup_file()'.
* arraymodule: Fix SF bug 113960.Tim Peters2000-09-163-20/+36
| | | | | | | | | | | | | | reverse() didn't work at all due to bad arg check. Fixed that. Added Brad Chapman to ACKS file, as the proud new owner of two implicitly copyrighted lines of Python source code <wink>. Repaired buffer_info's total lack of arg-checking. Replaced memmove by memcpy in reverse() guts, as memmove is often slower and the memory areas are guaranteed disjoint. Replaced poke-and-hope unchecked decl of tmp buffer size by assert-checked larger tmp buffer. Got rid of inconsistent spaces before open paren in docstrings. Added reverse() sanity tests to test_array.py.
* Allow this script to act like a module by only calling main() ifBarry Warsaw2000-09-161-1/+3
| | | | __name__ == '__main__'. Closes SF bug #110844.
* Make the <body> tag match those of the generated HTML; rely on the styleFred Drake2000-09-161-1/+1
| | | | sheet instead of encoding anything there.
* Document \cfuncdesc, \ctypedesc, and \cvardesc.Fred Drake2000-09-161-0/+28
|
* Improve the test output a bit.Guido van Rossum2000-09-161-2/+4
|
* Push more of the display control into the style sheet.Fred Drake2000-09-162-3/+10
|
* Changed so lines that are all comment (or just whitespace + comment)Greg Ward2000-09-161-9/+27
| | | | | | | | | | are completely skipped, rather than being treated as blank lines (and then subject to the 'skip_blanks' flag). This allows us to process old-style Setup files, which rely on hello \\ # boo! there coming out as "hello there".
* Andrew Kuchling:Greg Ward2000-09-161-1/+1
| | | | | Fixed precendence bug that meant setting skip_blanks to false didn't work under some circumstances.
* [change from 2000/08/11, propagating now to distutils copy]Greg Ward2000-09-161-9/+17
| | | | | Factored the guts of 'warn()' out to 'gen_error()', and added the 'error()' method (trivial thanks to the refactoring).
* [change from 2000/04/17, propagating now to distutils copy]Greg Ward2000-09-161-26/+30
| | | | | | | Dropped the 'collapse_ws' option and replaced it with 'collapse_join' -- it's *much* faster (no 're.sub()') and this is the reason I really added 'collapse_ws', ie. to remove leading whitespace from a line being joined to the previous line.
* Use PyOS_setsig() instead of directly calling signal() or sigaction().Guido van Rossum2000-09-161-5/+12
| | | | | | | This fixes the first half of bug #110611: the immediate exit when ^C is hit when readline and threads are configured. Also added a new module variable, readline.library_version.
* Use typedef PyOS_sighandler_t and APIs PyOS_getsig() andGuido van Rossum2000-09-161-25/+12
| | | | | | | PyOS_setsig(), instead of directly calling signal() or sigaction(). This fixes the second half of bug #110611: the mysterious ignoring of the first ^C when readline isn't used.
* Add PyOS_getsig() and PyOS_setsig() -- wrappers around signal() orGuido van Rossum2000-09-161-0/+34
| | | | sigaction() (if HAVE_SIGACTION is defined).
* Add typedef PyOS_sighandler_t and prototypes for PyOS_getsig() andGuido van Rossum2000-09-161-0/+6
| | | | PyOS_setsig().
* Document new APIs PyOS_getsig() and PyOS_setsig().Guido van Rossum2000-09-161-0/+15
| | | | | | (Is there no macro to document a typedef?) Fred, please check my latex!
* Rene Liebscher: if we have to run the same sub-command multiple timesGreg Ward2000-09-161-5/+18
| | | | | | (eg. "bdist_dumb", to generate both ZIP and tar archives in the same run), tell all but the last run to keep temp files -- this just gets rid of the need to pseudo-install the same files multiple times.
* Renamed --keep-tree to --keep-temp.Greg Ward2000-09-161-3/+3
|
* Renamed --clean to --no-keep-temp and --noclean to --keep-temp.Greg Ward2000-09-161-6/+6
|
* Renamed --keep-tree option to --keep-temp.Greg Ward2000-09-161-3/+3
|
* Ensure sub-commands of "install" are reinitialized too.Greg Ward2000-09-161-3/+2
| | | | Run "install" the right way, by calling 'run_command()'.
* Remove some debugging output from the last change.Greg Ward2000-09-161-7/+0
|
* In 'reinitialize_subcommand()', pass 'reinit_subcommands' flag on to theGreg Ward2000-09-161-2/+3
| | | | real implementation in Distribution.
* Generalized 'reinitialize_command()' so it can optionally reinitializeGreg Ward2000-09-161-2/+20
| | | | | | the command's sub-commands as well (off by default). This is essential if we want to be be able to run (eg.) "install" twice in one run, as happens when generating multiple built distributions in one run.
* Added the "sub-command" machinery to formalize the notion of "commandGreg Ward2000-09-161-0/+31
| | | | | | | families" -- eg. install and its brood, build and its brood, and so forth. Specifically: added the 'sub_commands' class attribute (empty list, sub- classes must override it) and a comment describing it, and the 'get_sub_commands()' method.