https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
f7adf2f This commit was manufactured by cvs2svn to create tag 'r22a3'. 08 September 2001, 21:38:26 UTC
f7e5714 Final tweaks for 2.2a3 distribution. 08 September 2001, 21:38:26 UTC
caef93d Silence warnings about passing unsigned char** as char**. 08 September 2001, 16:23:34 UTC
02646fe Oops, this file is very outdated. Removed. 08 September 2001, 13:57:16 UTC
16a77ad 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. 08 September 2001, 04:00:12 UTC
2d84f2c 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. 08 September 2001, 03:37:56 UTC
b07352e The usual post-release fiddling. 08 September 2001, 01:25:47 UTC
28d80b1 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 ExtensionClass.Base, with a classic class as the first class, transfers control to the ExtensionClass.Base class. This is what we need for SF #443239 (and also for running Zope under 2.2a4, before ExtensionClass is replaced). 07 September 2001, 21:08:32 UTC
8700b42 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. 07 September 2001, 20:20:11 UTC
9478d07 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 classes. 07 September 2001, 18:52:13 UTC
317e9f5 Bumping version numbers. 07 September 2001, 18:23:30 UTC
b5b7865 Merging in removal of this file from branch to trunk. 07 September 2001, 18:20:04 UTC
d6c8ca6 Merging 2.2a3 branch changes back into trunk 07 September 2001, 18:13:44 UTC
a3689fe Patch #438790: Add additional mappings. Also remove mappings that are not registered with IANA, and not extensions. 07 September 2001, 16:49:12 UTC
3bd8c1e Patch #450702: allow threads when calling into zlib, protect usage of the module in multiple threads with a global lock. 07 September 2001, 16:27:31 UTC
39e0c5d Fix compiler warnings. This closes some of the #458880 problem. 07 September 2001, 16:10:00 UTC
a3891ea (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. 07 September 2001, 14:25:12 UTC
19fdbfb 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. 07 September 2001, 14:08:01 UTC
71707f3 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. 07 September 2001, 10:11:31 UTC
51e2651 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.) 07 September 2001, 08:45:55 UTC
9652de9 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). 07 September 2001, 00:47:00 UTC
c5b235c 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. 06 September 2001, 23:00:21 UTC
419670d Rewrite to use test_support's fine fcmp instead -- I didn't know that existed when I wrote this test. 06 September 2001, 22:07:50 UTC
4bd810a Added some underflow-to-0.0 long/long true division tests. 06 September 2001, 22:03:36 UTC
8d7234d Rename 'getset' to 'property'. 06 September 2001, 22:02:58 UTC
e56ed9b 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). 06 September 2001, 21:59:14 UTC
8bce4ac Rename 'getset' to 'property'. 06 September 2001, 21:56:42 UTC
2872e8a Do not rebuild html-$(RELEASE).tar every time we need to use it. 06 September 2001, 19:35:02 UTC
c93cf67 Bump version number. 06 September 2001, 19:28:06 UTC
05a73b1 Update link to the PyOpenGL project in the "gl" module docs. This closes SF bug #459256. 06 September 2001, 19:23:03 UTC
656f9ec Add missing period in docstring. (Steve, can you add this to the PyUnit repository as well?) 06 September 2001, 19:13:14 UTC
00bb329 Document the built-in iter() function. 06 September 2001, 19:04:29 UTC
7feae2d Bump version number. 06 September 2001, 19:02:57 UTC
a20c265 Added an additional link to NIST information on secure hashing. This closes SF bug #458785. 06 September 2001, 18:59:43 UTC
ba5c41d Clarified the interaction between string literals and continuation lines. Fixes bug reported as SF bug #453728. 06 September 2001, 18:41:15 UTC
8b09f49 Make the examples for "Default Argument Values" more presentable and less hostile to newbie use at the interactive prompt. This is in response to SF bug #458654. 06 September 2001, 18:21:30 UTC
9c75ff7 Fix parameter for PyInt_Check(). Add refcount information for other recently documented APIs. 06 September 2001, 18:06:46 UTC
f8d7a5d Document the PyMethod_* type object, functions, and macros. 06 September 2001, 17:12:44 UTC
0511b76 Minimal instructions for using the Makefile here. Also a clear statement that this is a proof-of-concept meant for people to experiment with, nothing more. 06 September 2001, 16:36:42 UTC
638e5e3 Added targets to install the application, and to install mac-additions in Python. 06 September 2001, 16:33:57 UTC
745e366 Bump Windows buildno (installer changes were made earlier). 06 September 2001, 16:33:17 UTC
396ca57 Document the rule that Python.h must be included before any standard headers. This is the final checkin for SF bug #458768. 06 September 2001, 16:30:30 UTC
9b88b4c Do not #include <stdio.h> since Python.h already does that. 06 September 2001, 16:20:33 UTC
adaca02 Use the standard argument convention for main(), and conform to the Python/C style guide. 06 September 2001, 16:17:24 UTC
fe3f696 Two small changes to the resource usage option: (1) Allow multiple -u options to extend each other (and the initial value of use_resources passed into regrtest.main()). (2) When a test is run stand-alone (not via regrtest.py), needed resources are always granted. 06 September 2001, 16:09:41 UTC
6091cd6 Added note of unittest.py changes that fixed bug 451309 06 September 2001, 16:05:17 UTC
4d17b30 Several updates to cover omissions noted by Rich Salz. This closes SF bug #458771. 06 September 2001, 15:51:56 UTC
f5072b9 Document the "unixfrom" attribute of the rfc822.Message class. Based on a patch by Skip Montanaro, this closes SF bug #458885. 06 September 2001, 15:07:55 UTC
ccc7562 Added tests for key deletion for both Weak*Dictionary flavors. This covers regression on SF bug #458860. 06 September 2001, 14:52:39 UTC
b663a2c Add __delitem__() support for WeakKeyDictionary. This closes SF bug #458860. 06 September 2001, 14:51:01 UTC
7b219b4 Skip instead of fail this test if the socket module has no ssl support. 06 September 2001, 09:54:47 UTC
cb227c9 Report patch #416079 changes. 06 September 2001, 08:54:16 UTC
b0162f9 Patch #416079: fix the debug string output when receiving telnet commands. added all the telnet options known to arpa/telnet.h added all the options registered with IANA as of today added the possibility for the user to have it's own option negotiation callback 06 September 2001, 08:51:38 UTC
7b06570 Changed TestResult to store only the text representation of an error. This patch is similar to that proposed by Jeremy. The proposed patch altered the interface of TestResult such that it would be passed the error information as a string rather than an exc_info() tuple. The implemented change leaves the interface untouched so that TestResults are still passed the tracebacks, but stor them in stringified form for later reporting. Notes: - Custom subclasses of TestResult written by users should be unaffected. - The existing 'unittestgui.py' will still work with this module after the change. - Support can later be added to pop into the debugger when an error occurs; this support should be added to a TestRunner rather than to TestCase itself, which this change will enable. (Jeremy, Fred, Guido: Thanks for all the feedback) 06 September 2001, 08:24:40 UTC
387c547 Revert parts of patch #453627, documenting the resulting test failures instead. 06 September 2001, 08:16:17 UTC
c2d272a Base address updates for bug #442142 - DLL base assignments need update 06 September 2001, 06:42:00 UTC
9bc0d6f First part of fix for bug #442142 - DLL base assignments need update 06 September 2001, 06:39:39 UTC
b8c0230 Dubious assumptions: 1. That seeking beyond the end of a file increases the size of a file. 2. That files so extended are magically filled with null bytes. I find no support for either in the C std, and #2 in particular turns out not to be true on Win32 (you apparently see whatever trash happened to be on disk). Left #1 intact, but changed the test to check only bytes it explicitly wrote. Also fiddled the "expected" vs "got" failure reports to consistently use repr (%r) -- they weren't readable otherwise. 06 September 2001, 01:17:45 UTC
6e13a56 Enable large file support on Win32 systems. Curious: the MS docs say stati64 etc are supported even on Win95, but Win95 doesn't support a filesystem that allows partitions > 2 Gb. test_largefile: This was opening its test file in text mode. I have no idea how that worked under Win64, but it sure needs binary mode on Win98. BTW, on Win98 test_largefile runs quickly (under a second). 06 September 2001, 00:32:15 UTC
97f4a33 Better error msg for 3-arg pow with a float argument. 05 September 2001, 23:49:24 UTC
773c83b Fix for bug #442374 - Modulefinder registry support broken 05 September 2001, 23:42:36 UTC
b479dc5 Add PyMethod_Function(), PyMethod_Self(), PyMethod_Class() back. While not even documented, they were clearly part of the C API, there's no great difficulty to support them, and it has the cool effect of not requiring any changes to ExtensionClass.c. 05 September 2001, 22:52:50 UTC
a40c793 Rework the way we try to check for libm overflow, given that C99 no longer requires that errno ever get set, and it looks like glibc is already playing that game. New rules: + Never use HUGE_VAL. Use the new Py_HUGE_VAL instead. + Never believe errno. If overflow is the only thing you're interested in, use the new Py_OVERFLOWED(x) macro. If you're interested in any libm errors, use the new Py_SET_ERANGE_IF_OVERFLOW(x) macro, which attempts to set errno the way C89 said it worked. Unfortunately, none of these are reliable, but they work on Windows and I *expect* under glibc too. 05 September 2001, 22:36:56 UTC
75ed167 Rudimentary makefile for building the executable to go into a fullblown OSX application. It is starting to work, but building the application bundle is still handwork, and we need a minimal readme file too. 05 September 2001, 22:09:50 UTC
dff7770 Changes to make these work under OSX as the main program for a fullblown drag and drop application. To my surprise it is starting to work already: Python actually executes a script dropped on it. To be done: - Make sure this still works in MacPython - Don't lose argv[0] in the process - Applet support 05 September 2001, 22:07:52 UTC
b30e106 Python is a Shell, not a Viewer. 05 September 2001, 22:04:25 UTC
a44361e LongReprTest fails on the Mac because it uses filenames with more than 32 characters per component. This makes mkdir() calls and such fail with EINVAL. For now I am disabling the test on the Mac, and I'll open a bugreport. 05 September 2001, 20:08:07 UTC
eb2d36c Use the build directory by default, and update the version. 05 September 2001, 19:51:08 UTC
1bfb388 Class FieldStorage: add two new methods, getfirst() and getlist(), that provide a somewhat more uniform interface to getting values. This is from SF patch #453691. 05 September 2001, 19:45:34 UTC
09f1ad8 class Listbox: add itemcget, to satisfy SF patch #457713. Fix up docstring for itemconfigure. 05 September 2001, 19:29:56 UTC
bb5a465 typo... 05 September 2001, 19:27:13 UTC
98935bf SF bug #427073: DLINCLDIR defined incorrectly (Skip Montanaro). I don't know what difference it makes, but '/' indeed makes less sense as an include dir than '.', so I'm changing the default. Just so I can close the bug. ;-) 05 September 2001, 19:13:16 UTC
97bac53 Change the date field to use $Date$ so it won't be outrageously out of date. 05 September 2001, 18:57:51 UTC
b674baf Document -Q. Move arguments around to be in strict alphabetical order. Add breaks in SYNOPSIS. 05 September 2001, 18:55:34 UTC
32aa5d2 Describe -E (which was added to 2.2a2). 05 September 2001, 18:43:35 UTC
03a3bb8 [ #458701 ] Patch to zipfile.py for Java Patch by Jim Ahlstrom which lets java's zipfile classes read zipfiles create by zipfile.py. 05 September 2001, 18:40:33 UTC
198c1d8 Remove a debug print left in the code by Fred. 05 September 2001, 17:52:31 UTC
7c82a3e Patch #449815: Set filesystemencoding based on CODESET. 05 September 2001, 17:09:48 UTC
044d95e A few more gcc warnings bite the dust. 05 September 2001, 15:44:37 UTC
28341ce Move UnixWare 7 defines to acconfig.h, regenerate pyconfig.h.in. 05 September 2001, 15:18:00 UTC
b855216 Changes to automatically enable large file support on some systems. I believe this works on Linux (tested both on a system with large file support and one without it), and it may work on Solaris 2.7. The changes are twofold: (1) The configure script now boldly tries to set the two symbols that are recommended (for Solaris and Linux), and then tries a test script that does some simple seeking without writing. (2) The _portable_{fseek,ftell} functions are a little more systematic in how they try the different large file support options: first try fseeko/ftello, but only if off_t is large; then try fseek64/ftell64; then try hacking with fgetpos/fsetpos. I'm keeping my fingers crossed. The meaning of the HAVE_LARGEFILE_SUPPORT macro is not at all clear. I'll see if I can get it to work on Windows as well. 05 September 2001, 14:58:11 UTC
2f0047a Note some changes that I need to write about 05 September 2001, 14:53:31 UTC
655c955 Patch #453627: Define the following macros when compiling on a UnixWare 7.x system: SCO_ATAN2_BUG, SCO_ACCEPT_BUG, and STRICT_SYSV_CURSES. Work aroudn a bug in the SCO UnixWare atan2() implementation. 05 September 2001, 14:45:54 UTC
0ace326 Patch #453627: Adds a list of tests that are expected to be skipped for UnixWare 7.x systems. 05 September 2001, 14:38:48 UTC
36546db Patch #455231: Support ELF properly on OpenBSD. 05 September 2001, 14:24:43 UTC
44f8696 Patch #428326: New class threading.Timer. 05 September 2001, 13:44:54 UTC
b3a639e builtin_execfile(): initialize another local that the GCC on leroy found it necessary to warn about. 05 September 2001, 13:37:47 UTC
c010c17 Implement PEP250: Use Lib/site-packages under windows. bdist_wininst doesn't use the NT SCHEME any more, instead a custom SCHEME is used, which is exchanged at installation time, depending on the python version used. Avoid a bogus warning frpom install_lib about installing into a directory not on sys.path. 05 September 2001, 13:00:40 UTC
045af6f [Bug #404274] Restore some special-case code for AIX and BeOS under 1.5.2. This will have to stay until we decide to drop 1.5.2 compatibility completely. 05 September 2001, 12:02:59 UTC
fd06486 Shut up many more gcc warnings. 05 September 2001, 10:31:52 UTC
5a1516b Only output the buffer size error label if it is used. Shuts up another couple of gcc warnings. 05 September 2001, 10:27:53 UTC
703ad70 Use -fPIC instead of -fpic for gcc on HP/UX. Fixes bug #433234. 05 September 2001, 08:36:52 UTC
a5f8bb5 Check for RFC 2553 API. Fixes bug #454493. 05 September 2001, 08:22:34 UTC
4c483c4 Make the error msgs in our pow() implementations consistent. 05 September 2001, 06:24:58 UTC
d893fd6 Repair indentation. 05 September 2001, 06:24:24 UTC
57f282a Try to recover from that glibc's ldexp apparently doesn't set errno on overflow. Needs testing on Linux (test_long.py and test_long_future.py especially). 05 September 2001, 05:38:10 UTC
e5ca6c7 loghelper(): Try to nudge the compiler into doing mults in an order that minimizes roundoff error. 05 September 2001, 04:33:11 UTC
6fd0f0a Another / that should be a // (previously not caught because of incomplete coverage of the test suite). 05 September 2001, 02:27:04 UTC
cf856f9 Add a test for the final branch in repr.Repr.repr1(), which deals with a default repr() that's longer than 20 characters. 05 September 2001, 02:26:26 UTC
7852616 Return reasonable results for math.log(long) and math.log10(long) (we were getting Infs, NaNs, or nonsense in 2.1 and before; in yesterday's CVS we were getting OverflowError; but these functions always make good sense for positive arguments, no matter how large). 05 September 2001, 00:53:45 UTC
back to top