Commits

Show all
Author Commit Message Labels Comments Date
cvs2svn
This commit was manufactured by cvs2svn to create tag 'r22a3'.
Tags
v2.2a3
Branches
legacy-trunk
Jack Jansen
Final tweaks for 2.2a3 distribution.
Branches
legacy-trunk
Martin von Löwis
Silence warnings about passing unsigned char** as char**.
Branches
legacy-trunk
Jack Jansen
Oops, this file is very outdated. Removed.
Branches
legacy-trunk
Tim Peters
Generalize operator.indexOf (PySequence_Index) to work with any iterable object. I'm not sure how that got overlooked before! Got rid of the internal _PySequence_IterContains, introduced a new internal _PySequence_IterSearch, and rewrote all the iteration-based "count of", "index of", and "is the object in it or not?" routines to just call the new function. I suppose it's slower this way, but the code duplication was getting depressing.
Branches
legacy-trunk
Tim Peters
It appears that unittest was changed to stop hoarding raw exception data, saving instead a traceback string, but test_support's run_unittest was still peeking into unittest internals and trying to pick apart unittest's errors and failures vectors as if they contained exc_info() tuples instead of strings. Whatever, when a unittest-based test failed, test_support blew up. I'm not sure this is the right way to fix it; it simply gets me unstuck.
Branches
legacy-trunk
Tim Peters
The usual post-release fiddling.
Branches
legacy-trunk
Guido van Rossum
PyClass_New(): put the extended Don Beaudry hook back in. When one of the base classes is not a classic class, and its class (the metaclass) is callable, call the metaclass to do the deed. One effect of this is that, when mixing classic and new-style classes amongst the bases of a class, it doesn't matter whether the first base class is a classic class or not: you will always get the error "TypeError: metatype conflict among bases". (Formerly, with a classic class first, you'd get "TypeError: PyClass_New: base must be a class".) Another effect is that multiple inheritance from Ext…
Branches
legacy-trunk
Guido van Rossum
PySequence_Check(), PyMapping_Check(): only return true if the corresponding "getitem" operation (sq_item or mp_subscript) is implemented. I realize that "sequence-ness" and "mapping-ness" are poorly defined (and the tests may still be wrong for user-defined instances, which always have both slots filled), but I believe that a sequence that doesn't support its getitem operation should not be considered a sequence. All other operations are optional though. For example, the ZODB BTree tests crashed because PySequence_Check() returned true for a dictionary! (In 2.2, the dictionary type has a tp_as_sequence pointer, but the only field filled is sq_contains, so you can write "if key in dict".) With this fix, all standalone ZODB tests succeed.
Branches
legacy-trunk
Guido van Rossum
PyType_IsSubtype(): test tp_flags for HAVE_CLASS bit before accessing a->tp_mro. If a doesn't have class, it's considered a subclass only of itself or of 'object'. This one fix is enough to prevent the ExtensionClass test suite from dumping core, but that doesn't say much (it's a rather small test suite). Also note that for ExtensionClass-defined types, a different subclass test may be needed. But I haven't checked whether PyType_IsSubtype() is actually used in situations where this matters -- probably it doesn't, since we also don't check for classic clas…
Branches
legacy-trunk
Barry Warsaw
Bumping version numbers.
Branches
legacy-trunk
Barry Warsaw
Merging in removal of this file from branch to trunk.
Branches
legacy-trunk
Barry Warsaw
Merging 2.2a3 branch changes back into trunk
Branches
legacy-trunk
Martin von Löwis
Patch #438790: Add additional mappings. Also remove mappings that are not registered with IANA, and not extensions.
Branches
legacy-trunk
Martin von Löwis
Patch #450702: allow threads when calling into zlib, protect usage of the module in multiple threads with a global lock.
Branches
legacy-trunk
Martin von Löwis
Fix compiler warnings. This closes some of the #458880 problem.
Branches
legacy-trunk
Jack Jansen
(Slightly modified) patch by Steve Spicklemire to make Python build out of the box on OSX 10.1. Untested by me (except for not having adverse effects on 10.0.4) but it looks good, for now. Eventually we should not trigger on the darwin version but test for something, but until I have the time to install 10.1 myself I have no clue what to test on. It would be nice if this got in to the 2.2a3 distribution.
Branches
legacy-trunk
Mark Hammond
Fix bug #410274 - sys.prefix isn't always set. If after calculating sys.path we do not have sys.prefix set, we loop over all path entries checking if one can point to our home directory.
Branches
legacy-trunk
Jack Jansen
Patch by Mark Day to allow from __future__ imports. Looks harmless enough, but may have side-effects because it preallocates a single codeop.Compiler() to compile all statements the user enters. Just: please review and retract/modify if necessary.
Branches
legacy-trunk
Tim Peters
SF bug [#458941] Looks like a unary minus bug. com_factor(): when a unary minus is attached to a float or imaginary zero, don't optimize the UNARY_MINUS opcode away: the const dict can't distinguish between +0.0 and -0.0, so ended up treating both like the first one added to it. Optimizing UNARY_PLUS away isn't a problem. (BTW, I already uploaded the 2.2a3 Windows installer, and this isn't important enough to delay the release.)
Branches
legacy-trunk
Tim Peters
Fix typo in error reporting. This doesn't need to go into the release branch (if it ever gets to the typo, the test is failing anyway).
Branches
legacy-trunk
Tim Peters
Reverting to rev 1.2. Apparently gcc doesn't use the extended-precision capabilities of the Pentium FPU, so what should have been (and were on Windows) exact results got fuzzy. Then it turns out test_support.fcmp() isn't tolerant of tiny errors when *one* of the comparands is 0, but test_complex's old check_close_real() is. Rather than fix gcc <wink>, easier to revert this test and revisit after the release.
Branches
legacy-trunk
Tim Peters
Rewrite to use test_support's fine fcmp instead -- I didn't know that existed when I wrote this test.
Branches
legacy-trunk
Tim Peters
Added some underflow-to-0.0 long/long true division tests.
Branches
legacy-trunk
Guido van Rossum
Rename 'getset' to 'property'.
Branches
legacy-trunk
Tim Peters
long_true_divide: reliably force underflow to 0 when the denominator has more bits than the numerator than can be counted in a C int (yes, that's unlikely, and no, I'm not adding a test case with a 2 gigabit long).
Branches
legacy-trunk
Guido van Rossum
Rename 'getset' to 'property'.
Branches
legacy-trunk
Fred Drake
Do not rebuild html-$(RELEASE).tar every time we need to use it.
Branches
legacy-trunk
Fred Drake
Bump version number.
Branches
legacy-trunk
Fred Drake
Update link to the PyOpenGL project in the "gl" module docs. This closes SF bug #459256.
Branches
legacy-trunk
  1. Prev
  2. Next