summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Various clean-ups:Andrew M. Kuchling2001-01-171-15/+7
| | | | | | * Uncomment the xreadlines module * The Tcl/Tk detection code doesn't need to worry about pre-8.0 versions * Fix some debugging changes (not running ar, a commented-out line)
* News item for rich comparisons.Guido van Rossum2001-01-171-0/+43
| | | | | (I'm going to check in some more uses of rich comparisons, but the basic feature should be in place now.)
* Use rich comparisons in min and max.Guido van Rossum2001-01-171-9/+9
|
* Rich comparisons fall-out:Guido van Rossum2001-01-171-148/+147
| | | | | | | | | | | | - Use PyObject_RichCompare*() where possible: when comparing keyword arguments, in _PyEval_SliceIndex(), and of course in cmp_outcome(). Unrelated stuff: - Removed all trailing whitespace. - Folded some long lines.
* Rich comparisons fall-out:Guido van Rossum2001-01-171-14/+1
| | | | | | - Get rid of float_cmp(). - Renamed Py_TPFLAGS_NEWSTYLENUMBER to Py_TPFLAGS_CHECKTYPES.
* Rich comparisons fall-out:Guido van Rossum2001-01-171-17/+1
| | | | | | - Get rid of long_cmp(). - Renamed Py_TPFLAGS_NEWSTYLENUMBER to Py_TPFLAGS_CHECKTYPES.
* Rich comparisons fall-out:Guido van Rossum2001-01-171-14/+1
| | | | | | - Get rid of int_cmp(). - Renamed Py_TPFLAGS_NEWSTYLENUMBER to Py_TPFLAGS_CHECKTYPES.
* Rich comparisons fall-out:Guido van Rossum2001-01-171-4/+4
| | | | | | - Renamed Py_TPFLAGS_NEWSTYLENUMBER to Py_TPFLAGS_CHECKTYPES. - Use PyObject_RichCompareBool() in PySequence_Contains().
* Rich comparisons.Guido van Rossum2001-01-171-146/+278
| | | | | | | | | | | | | | | | - Got rid of instance_cmp(); refactored instance_compare(). - Added instance_richcompare() which calls __lt__() etc. Some unrelated stuff mixed in: - Aligned comments in various large struct initializers. - Better test to avoid recursion if __coerce__ returns self as the first argument (this is an unrelated fix by Neil Schemenauer!). - Style nit: don't use Py_DECREF(Py_NotImplemented); use Py_DECREF(result) -- it just looks better. :-)
* Patch #102588 / PEP 229:Andrew M. Kuchling2001-01-172-4/+4
| | | | Tweak the configure script to build setup.cfg
* Rich comparisons. Refactored internal routine do_cmp() and added APIsGuido van Rossum2001-01-171-74/+293
| | | | | | | | PyObject_RichCompare() and PyObject_RichCompareBool(). XXX Note: the code that checks for deeply nested rich comparisons is bogus -- it assumes the two objects are always identical, rather than using the same logic as PyObject_Compare(). I'll fix that later.
* [Patch #102588/PEP 229]:Andrew M. Kuchling2001-01-172-0/+478
| | | | | Check in the setup.py script, and the setup.cfg.in file, which handle compiling and installing as many extension modules as possible
* Rich comparisons: ensure that LT == Py_LT, etc.Guido van Rossum2001-01-171-1/+2
|
* Introduction to rich comparisons:Guido van Rossum2001-01-171-12/+22
| | | | | | | | | | | | | | - Removed the nb_add slot from the PyNumberMethods struct. - Renamed Py_TPFLAGS_NEWSTYLENUMBER to Py_TPFLAGS_CHECKTYPES. - Added typedef richcmpfunc. - Added tp_richcompare slot to PyTypeObject (replacing spare tp_xxx7). - Added APIs PyObject_RichCompare() and PyObject_RichCompareBool(). - Added rich comparison operators Py_LT through Py_GE.
* Patch #103279: sysconfig.py always looks for versions of files inAndrew M. Kuchling2001-01-171-1/+19
| | | | | | | | sys.prefix + 'config/Makefile'. When building Python for the first time, these files aren't there, so the files from the build tree have to be used instead; this file adds an entry point for specifying that the build tree files should be used. (Perhaps 'set_python_build' should should be preceded with an underscore?)
* Fix a bizarre typo in the helper class ComparableException: theGuido van Rossum2001-01-171-1/+1
| | | | | | | | | | | | | __getattr__() method, which clearly (like the other methods) was intended to pass the __getattr__() call on to the self.err object, mistakenly returned getattr(self, self.err) rather than getattr(self.err, attr). Since self.err is not a string, this always raises a TypeError. Apparently that doesn't bother for the one attribute for which __getattr__() is actually called ('__coerce__'), but it broke the rich comparisons stuff that I'm trying to get into shape, so I'm fixing this now. (I could also simply remove the __getattr__() method, but fixing it seems more in the spirit of what the ComparableException class is trying to do.)
* Changed name of codec to full path name. This allows importingMarc-André Lemburg2001-01-171-1/+1
| | | | the test_charmapcodec test via the test package.
* Bump version to 2.1a1. (To be released Friday.)Guido van Rossum2001-01-171-4/+4
|
* Fixed typo: Using --with-dbm had no effect because due to a typo itSjoerd Mullender2001-01-172-3/+3
| | | | was never enabled.
* Hand repair of cases where reindent changed lines of the formTim Peters2001-01-176-18/+18
| | | | | | | | | | | \t\t\t\t\treal code ##\t\t\t\t\tunused code \t\t\t\t\treal code via untabifying and shifting the real code left. Semantically the same but made the intent of the commented-out-in-column-0 unused code unclear. The exact same unused code appears to have gotten copied from file to file over the years.
* Windows installer: update dialogs, program groups, etc, to 2.1 alpha 1.Tim Peters2001-01-171-5/+5
|
* Whitespace normalization.Tim Peters2001-01-1757-2468/+2462
|
* Eric the half-a-wit, driven to berserk rage after repeatedly doingEric S. Raymond2001-01-174-204/+394
| | | | | | | | | | | | | | builds during which he forgot to uncomment crucial library lines in Setup, walks into Guido's East End nightclub with a tactical nuclear weapon on his shoulder. Said nuclear weapon is promptly deployed exactly where it will do the most good, right in the middle of configure.in. With this patch, the set of libraries autoconfigured in is extended to include ndbm, gdbm, and crypt. This essentially eliminates any need to tweak Setup for a normal Linux build. "'E was a fair man. Cruel, but fair."
* Add a missing newline in an example; caught by Chris RylandFred Drake2001-01-171-1/+2
| | | | <cpr@emsoftware.com>.
* Use __name__ instead of "test_regex" as the module name in theGuido van Rossum2001-01-171-1/+1
| | | | | warnings.filterwarnings() call. This suppresses the warning when the module is imported with its full name (test.test_regex) too.
* Document xreadlines() method. (Forgot to check this in before!)Guido van Rossum2001-01-171-0/+4
|
* Rationalizing the fallback code for portable fseek -- this is all muchGuido van Rossum2001-01-161-26/+12
| | | | | | | | | simpler if we use fgetpos and fsetpos, rather than trying to mess with platform-specific TELL64 alternatives. Of course, this hasn't been tested on a 64-bit platform, so I may have to withdraw this -- but I'm hopeful, and Trent Mick supports this patch!
* Fix a few small markup/consistency nits.Fred Drake2001-01-161-6/+8
|
* Fix bugs with integer-valued variables when parsing Makefiles. ValuesAndrew M. Kuchling2001-01-161-5/+9
| | | | | | | | | | for done[n] can be integers as well as strings, but the code concatenates them with strings (fixed by adding a str()) and calls string.strip() on them (fixed by rearranging the logic) (Presumably this wasn't noticed previously because parse_makefile() was only called on Modules/Makefile, which contains no integer-valued variables.)
* Modified version of a patch from Jeremy Kloth, to make .get_outputs()Andrew M. Kuchling2001-01-161-1/+5
| | | | | | | produce a list of unique filenames: "While attempting to build an RPM using distutils on Python 2.0, rpm complained about duplicate files. The following patch fixed that problem.
* Trigger keep-console-open on GUSISIOUX_STATE_UNKNOWN. Better than the ↵Jack Jansen2001-01-161-3/+3
| | | | previous complicated expression.
* Config file for standalone carbon python.Jack Jansen2001-01-161-0/+52
|
* Added Carbon interpreter.Jack Jansen2001-01-161-0/+0
|
* Commit version of config.h.in that covers the TERMIOS test.Eric S. Raymond2001-01-161-0/+3
|
* Check in a version with the termios test in place.Eric S. Raymond2001-01-161-2/+2
|
* Make pop_source and push_source available, as documented.Eric S. Raymond2001-01-161-23/+36
|
* Make HAVE_TERMIOS_H and associated config.sh shell variable availableEric S. Raymond2001-01-162-1/+7
| | | | | | | | | when configure detects the presence of termios.h; later we'll use this for correct configuration of edline/readline. Also, fix a bug in acconfig.h -- somebody forgot to add an undef to cover the LIBNDBM configure symbol, which was preventing autoheader from working properly.
* Converted to CW Pro 6 and new naming scheme.Jack Jansen2001-01-161-0/+0
|
* push_source() and pop_source() entry points for shlex instances.Eric S. Raymond2001-01-161-3/+22
| | | | | These basically just make available to the user what userhook() does to the source stack. Documentation included.
* Added the 'carb' resource to the carbon interpreter.Jack Jansen2001-01-161-0/+0
|
* Replaced the single .exp file by two files, one for classic and one for carbon.Jack Jansen2001-01-162-0/+2198
|
* Added checks to prevent PyUnicode_Count() from dumping coreMarc-André Lemburg2001-01-164-19/+56
| | | | | | | | | | | | in case the parameters are out of bounds and fixes error handling for .count(), .startswith() and .endswith() for the case of mixed string/Unicode objects. This patch adds Python style index semantics to PyUnicode_Count() indices (including the special handling of negative indices). The patch is an extended version of patch #103249 submitted by Michael Hudson (mwh) on SF. It also includes new test cases.
* bumped SRE version number to 2.1. cleaned up and added 1.5.2Fredrik Lundh2001-01-164-44/+76
| | | | compatibility patches.
* Whitespace normalization.Tim Peters2001-01-161-3/+3
|
* doctest-- The Little Module That Could --finally makes it to the Big Show ↵Tim Peters2001-01-161-0/+1101
| | | | <wink>.
* fixed a memory leak in pattern cleanup (patch #103248 by cgw)Fredrik Lundh2001-01-161-2/+6
|
* Fix for SF bug #123625: some newsservers need 'authinfo' *before* 'modeThomas Wouters2001-01-161-0/+20
| | | | | readers', others *after*. (Netscape Collabra for the first category, INN-which-forks-nnrpd for the second.)
* Plug memory leak.Neil Schemenauer2001-01-161-1/+2
|
* Add strip_dir argument to the single call to .object_filenames(), toAndrew M. Kuchling2001-01-161-0/+1
| | | | | prevent creating files such as build/lib.whatever/Modules/foo.o when given a source filename such as Modules/foo.c.
* Variant of Skip's patch 103246 (Remove unneeded string exception compat from ↵Tim Peters2001-01-151-13/+7
| | | | Queue).