- 17 Ock, 2001 29 kayıt (commit)
-
-
Andrew M. Kuchling yazdı
The final piece of this change... Run setup.py to build shared modules and to install them.
-
Marc-André Lemburg yazdı
-
Marc-André Lemburg yazdı
except that it always returns Unicode objects. A new C API PyObject_Unicode() is also provided. This closes patch #101664. Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
-
Andrew M. Kuchling yazdı
* 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)
-
Guido van Rossum yazdı
(I'm going to check in some more uses of rich comparisons, but the basic feature should be in place now.)
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
- 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.
-
Guido van Rossum yazdı
- Get rid of float_cmp(). - Renamed Py_TPFLAGS_NEWSTYLENUMBER to Py_TPFLAGS_CHECKTYPES.
-
Guido van Rossum yazdı
- Get rid of long_cmp(). - Renamed Py_TPFLAGS_NEWSTYLENUMBER to Py_TPFLAGS_CHECKTYPES.
-
Guido van Rossum yazdı
- Get rid of int_cmp(). - Renamed Py_TPFLAGS_NEWSTYLENUMBER to Py_TPFLAGS_CHECKTYPES.
-
Guido van Rossum yazdı
- Renamed Py_TPFLAGS_NEWSTYLENUMBER to Py_TPFLAGS_CHECKTYPES. - Use PyObject_RichCompareBool() in PySequence_Contains().
-
Guido van Rossum yazdı
- 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. :-)
-
Andrew M. Kuchling yazdı
Tweak the configure script to build setup.cfg
-
Guido van Rossum yazdı
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.
-
Andrew M. Kuchling yazdı
Check in the setup.py script, and the setup.cfg.in file, which handle compiling and installing as many extension modules as possible
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
- 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.
-
Andrew M. Kuchling yazdı
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?)
-
Guido van Rossum yazdı
__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.)
-
Marc-André Lemburg yazdı
the test_charmapcodec test via the test package.
-
Guido van Rossum yazdı
-
Sjoerd Mullender yazdı
was never enabled.
-
Tim Peters yazdı
\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.
-
Tim Peters yazdı
-
Tim Peters yazdı
-
Eric S. Raymond yazdı
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."
-
Fred Drake yazdı
<cpr@emsoftware.com>.
-
Guido van Rossum yazdı
warnings.filterwarnings() call. This suppresses the warning when the module is imported with its full name (test.test_regex) too.
-
Guido van Rossum yazdı
-
- 16 Ock, 2001 11 kayıt (commit)
-
-
Guido van Rossum yazdı
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!
-
Fred Drake yazdı
-
Andrew M. Kuchling yazdı
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.)
-
Andrew M. Kuchling yazdı
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.
-
Jack Jansen yazdı
Trigger keep-console-open on GUSISIOUX_STATE_UNKNOWN. Better than the previous complicated expression.
-
Jack Jansen yazdı
-
Jack Jansen yazdı
-
Eric S. Raymond yazdı
-
Eric S. Raymond yazdı
-
Eric S. Raymond yazdı
-
Eric S. Raymond yazdı
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.
-