Staging
v0.5.0
https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
86f5bf6 Branching release25-maint. All further 2.5 releases (including the release candidates, the final release and all bugfix releases) will be from this branch, not the trunk. 17 August 2006, 00:38:04 UTC
4c6b0d5 Fix a bug in the ``compiler`` package that caused invalid code to be generated for generator expressions. 16 August 2006, 23:38:05 UTC
7ae3548 File menu hotkeys: there were three 'p' assignments. Reassign the 'Save Copy As' and 'Print' hotkeys to 'y' and 't'. Change the Shell menu hotkey from 's' to 'l'. M Bindings.py M PyShell.py M NEWS.txt 16 August 2006, 21:45:59 UTC
f5af05a Tutorial: Clarify somewhat how parameters are passed to functions (especially explain what integer means). Correct the table - Python integers and longs can both be used. Further clarification to the table comparing ctypes types, Python types, and C types. Reference: Replace integer by C ``int`` where it makes sense. 16 August 2006, 18:02:11 UTC
c13324e Grammar fix 16 August 2006, 17:11:18 UTC
dc075b9 SF#1534630 ignore data that arrives before the opening start tag 16 August 2006, 16:47:07 UTC
574cfea Add NEWS item mentioning the reverted distutils version number patch. 16 August 2006, 16:11:01 UTC
b4a0cf1 Remove the special casing of Py_None when converting the return value of the Python part of a callback function to C. If it cannot be converted, call PyErr_WriteUnraisable with the exception we got. Before, arbitrary data has been passed to the calling C code in this case. (I'm not really sure the NEWS entry is understandable, but I cannot find better words) 16 August 2006, 15:10:12 UTC
f9b5b8e Wording/typo fixes 16 August 2006, 14:21:14 UTC
213e764 Update bug/patch counts 16 August 2006, 14:18:23 UTC
b0aa98f The __repr__ method of a NULL py_object does no longer raise an exception. Remove a stray '?' character from the exception text when the value is retrieved of such an object. Includes tests. 16 August 2006, 14:07:44 UTC
596fc9c Make cl build step compile-only (/c). Remove libs from source list. 16 August 2006, 13:58:51 UTC
ddf3788 Link to docs; remove an XXX comment 16 August 2006, 13:51:32 UTC
115ea43 Bump document version to 1.0; remove pystone paragraph 16 August 2006, 13:41:52 UTC
efd68c7 Add UnicodeWarning 16 August 2006, 13:22:20 UTC
5817959 news entry for 51307 16 August 2006, 13:08:25 UTC
d32e616 Add commented assert statements to check that the result of PyObject_stgdict() and PyType_stgdict() calls are non-NULL before dereferencing the result. Hopefully this fixes what klocwork is complaining about. Fix a few other nits as well. 16 August 2006, 13:03:11 UTC
a09fd6e Build _hashlib on Windows. Build OpenSSL with masm assembler code. Fixes #1535502. 16 August 2006, 12:55:10 UTC
604c864 Revert to having static version numbers again. 16 August 2006, 08:13:26 UTC
f137e1d Get quit() and exit() to work cleanly when not using subprocess. 16 August 2006, 07:04:17 UTC
b1cb56a Update code and tests to support the 'bytes_le' attribute (for little-endian byte order on Windows), and to work around clocks with low resolution yielding duplicate UUIDs. Anthony Baxter has approved this change. 16 August 2006, 07:02:50 UTC
d112bc7 Patch #1540892: site.py Quitter() class attempts to close sys.stdin before raising SystemExit, allowing IDLE to honor quit() and exit(). M Lib/site.py M Lib/idlelib/PyShell.py M Lib/idlelib/CREDITS.txt M Lib/idlelib/NEWS.txt M Misc/NEWS 16 August 2006, 05:01:42 UTC
798ed8f preparing for 2.5c1 - no, really this time 16 August 2006, 03:58:37 UTC
b409666 preparing for 2.5c1 16 August 2006, 03:42:26 UTC
2a7ff29 The 'with' statement is now a Code Context block opener 16 August 2006, 03:15:26 UTC
4dc5dd1 Check for NULL return value from new_CArgObject calls. 15 August 2006, 13:07:21 UTC
271a868 Subclasses of int/long are allowed to define an __index__. 15 August 2006, 06:29:03 UTC
6e48256 Update the docstring to use a version a little newer than 1999. This was taken from a Debian patch. Should we update the version for each release? 15 August 2006, 04:59:30 UTC
b476fdf Fix the test for SocketServer so it should pass on cygwin and not fail sporadically on other platforms. This is really a band-aid that doesn't fix the underlying issue in SocketServer. It's not clear if it's worth it to fix SocketServer, however, I opened a bug to track it: http://python.org/sf/1540386 15 August 2006, 04:58:28 UTC
bf8c195 Georg fixed one of my bugs, so I'll repay him with 2 NEWS entries. Now we're even. :-) 15 August 2006, 04:14:57 UTC
c02c1c8 Whitespace normalization. 15 August 2006, 00:25:04 UTC
9dc7b7c Patch #1511317: don't crash on invalid hostname info 14 August 2006, 22:10:24 UTC
d76bd69 Cookie.py shouldn't "bogusly" use string._idmap. 14 August 2006, 22:01:24 UTC
7a1af77 Patch #1536071: trace.py should now find the full module name of a file correctly even on Windows. 14 August 2006, 21:55:28 UTC
85fec59 Add an additional test: BZ2File write methods should raise IOError when file is read-only. 14 August 2006, 21:45:32 UTC
3335a7a Patch #1535500: fix segfault in BZ2File.writelines and make sure it raises the correct exceptions. 14 August 2006, 21:42:55 UTC
2463f8f Make tabnanny recognize IndentationErrors raised by tokenize. Add a test to test_inspect to make sure indented source is recognized correctly. (fixes #1224621) 14 August 2006, 21:34:08 UTC
26a07b5 Fix refleak introduced in rev. 51248. 14 August 2006, 20:25:39 UTC
1ce433e News item for rev 51281. 14 August 2006, 16:20:04 UTC
ef8d513 Patch #1536908: Add support for AMD64 / OpenBSD. Remove the -no-stack-protector compiler flag for OpenBSD as it has been reported to be unneeded. 14 August 2006, 16:17:41 UTC
3a45779 Correct an accidentally removed previous patch. 14 August 2006, 12:57:27 UTC
4873fb2 Improve markup in PyUnicode_RichCompare. 14 August 2006, 12:36:06 UTC
757ea27 Readd NEWS items that were accidentally removed by r51276. 14 August 2006, 11:44:34 UTC
8672004 Apply the patch #1532975 plus ideas from the patch #1533481. ctypes instances no longer have the internal and undocumented '_as_parameter_' attribute which was used to adapt them to foreign function calls; this mechanism is replaced by a function pointer in the type's stgdict. In the 'from_param' class methods, try the _as_parameter_ attribute if other conversions are not possible. This makes the documented _as_parameter_ mechanism work as intended. Change the ctypes version number to 1.0.1. 14 August 2006, 11:17:48 UTC
040f76b Slightly revised version of patch #1538956: Replace UnicodeDecodeErrors raised during == and != compares of Unicode and other objects with a new UnicodeWarning. All other comparisons continue to raise exceptions. Exceptions other than UnicodeDecodeErrors are also left untouched. 14 August 2006, 10:55:19 UTC
e6dd31c Revert the change that tries to zero out a closure's result storage area because the size if unknown in source/callproc.c. 14 August 2006, 10:02:24 UTC
dca703f Check for NULL return value of GenericCData_new(). Fixes klockwork issues #188, #189. 14 August 2006, 07:50:14 UTC
efa2727 Check for NULL return value from new_CArgObject(). Fixes klockwork issues #183, #184, #185. 14 August 2006, 07:14:09 UTC
acdedfb Remove unused, buggy test function. Fixes klockwork issue #207. 14 August 2006, 07:13:05 UTC
4c73177 Update purify doc some. 14 August 2006, 01:49:54 UTC
af33f2d Can't return NULL from a void function. If there is a memory error, about the best we can do is call PyErr_WriteUnraisable and go on. We won't be able to do the call below either, so verify delstr is valid. 14 August 2006, 00:59:03 UTC
714a59d Ignore pgen.exe and kill_python.exe for cygwin 14 August 2006, 00:51:15 UTC
5ed4997 Get rid of compiler warning 13 August 2006, 18:41:15 UTC
93bf902 Handle alloca failures. Klocwork 225-228 13 August 2006, 18:40:39 UTC
9ac8953 Handle malloc failure. Klocwork 281 13 August 2006, 18:13:36 UTC
ccc56c7 Really address the issue of where to place the assert for leftblock. (Followup of Klocwork 274) 13 August 2006, 18:13:02 UTC
20745b1 Handle failure from PyModule_GetDict() (Klocwork 208). Fix a bunch of refleaks in the init of the module. This would only be found when running python -v. 13 August 2006, 18:12:45 UTC
26a8abf Handle failures from lookup. Klocwork 341-342 13 August 2006, 18:12:26 UTC
ee7c8f9 It's very unlikely, though possible that source is not a string. Verify that PyString_AsString() returns a valid pointer. (The problem can arise when zlib.decompress doesn't return a string.) Klocwork 346 13 August 2006, 18:12:03 UTC
5aa9689 Handle malloc and fopen failures more gracefully. Klocwork 180-181 13 August 2006, 18:11:43 UTC
e9ac0bb Check return result of PyModule_GetDict(). Fix a bunch of refleaks in the init of the module. This would only be found when running python -v. 13 August 2006, 18:11:27 UTC
56423e5 Fix segfault when doing string formatting on subclasses of long if __oct__, __hex__ don't return a string. Klocwork 308 13 August 2006, 18:11:08 UTC
3cb31ac cpathname could be NULL if it was longer than MAXPATHLEN. Don't try to write the .pyc to NULL. Check results of PyList_GetItem() and PyModule_GetDict() are not NULL. Klocwork 282, 283, 285 13 August 2006, 18:10:47 UTC
b09f4f5 Handle a whole lot of failures from PyString_FromInternedString(). Should fix most of Klocwork 234-272. 13 August 2006, 18:10:28 UTC
df6a649 Move/copy assert for tstate != NULL before first use. Verify that PyEval_Get{Globals,Locals} returned valid pointers. Klocwork 231-232 13 August 2006, 18:10:10 UTC
bfa5f0b SF bug #1539336, distutils example code missing 13 August 2006, 00:20:49 UTC
1872b1c Fix a couple of bugs exposed by the new __index__ code. The 64-bit buildbots were failing due to inappropriate clipping of numbers larger than 2**31 with new-style classes. (typeobject.c) In reviewing the code for classic classes, there were 2 problems. Any negative value return could be returned. Always return -1 if there was an error. Also make the checks similar with the new-style classes. I believe this is correct for 32 and 64 bit boxes, including Windows64. Add a test of classic classes too. 12 August 2006, 18:44:06 UTC
8a87f5d Patch #1538606, Patch to fix __index__() clipping. I modified this patch some by fixing style, some error checking, and adding XXX comments. This patch requires review and some changes are to be expected. I'm checking in now to get the greatest possible review and establish a baseline for moving forward. I don't want this to hold up release if possible. 12 August 2006, 17:03:09 UTC
f3e3042 Repair logging test spew caused by rev. 51206. 12 August 2006, 08:32:02 UTC
953c189 Ah, fudge. One of the prints here actually "shouldn't be" protected by "if verbose:", which caused the test to fail on all non-Windows boxes. Note that I deliberately didn't convert this to unittest yet, because I expect it would be even harder to debug this on Tru64 after conversion. 12 August 2006, 05:17:41 UTC
1742f33 test_signal: Signal handling on the Tru64 buildbot appears to be utterly insane. Plug some theoretical insecurities in the test script: - Verify that the SIGALRM handler was actually installed. - Don't call alarm() before the handler is installed. - Move everything that can fail inside the try/finally, so the test cleans up after itself more often. - Try sending all the expected signals in force_test_exit(), not just SIGALRM. Since that was fixed to actually send SIGALRM (instead of invisibly dying with an AttributeError), we've seen that sending SIGALRM alone does not stop this from hanging. - Move the "kill the child" business into the finally clause, so the child doesn't survive test failure to send SIGALRM to other tests later (there are also baffling SIGALRM-related failures in test_socket). - Cancel the alarm in the finally clause -- if the test dies early, we again don't want SIGALRM showing up to confuse a later test. Alas, this still relies on timing luck wrt the spawned script that sends the test signals, but it's hard to see how waiting for seconds can so often be so unlucky. test_threadedsignals: curiously, this test never fails on Tru64, but doesn't normally signal SIGALRM. Anyway, fixed an obvious (but probably inconsequential) logic error. 12 August 2006, 04:42:47 UTC
ebcf875 Verify verdat which is returned from malloc is not NULL. Ensure we don't pass NULL to free. Klocwork #306 (at least the first part, checking malloc) 12 August 2006, 03:18:50 UTC
0f7dbf7 PyModule_GetDict() can fail, produce fatal errors if this happens on startup. Klocwork #298-299. 12 August 2006, 03:17:41 UTC
b88cfad Check return of PyMem_MALLOC (garbage) is non-NULL. Check seq in both portions of if/else. Klocwork #289-290. 12 August 2006, 03:16:54 UTC
5f17d9a Don't deref v if it's NULL. Klocwork #214 12 August 2006, 02:33:36 UTC
421c131 Whoops, how did that get in there. :-) Revert all the parts of 51227 that were not supposed to go it. Only Modules/_ctypes/cfields.c was supposed to be changed 12 August 2006, 02:12:30 UTC
6b4953f Check returned pointer is valid. Klocwork #233 12 August 2006, 02:06:34 UTC
b45f351 I'm not sure why this code allocates this string for the error message. I think it would be better to always use snprintf and have the format limit the size of the name appropriately (like %.200s). Klocwork #340 12 August 2006, 01:57:47 UTC
ef0de02 Try to handle a malloc failure. I'm not entirely sure this is correct. There might be something else we need to do to handle the exception. Klocwork # 212-213 12 August 2006, 01:53:28 UTC
9cd3c34 Move the assert which checks for a NULL pointer first. Klocwork #274. 12 August 2006, 01:51:12 UTC
e0a81af If _stat_float_times is false, we will try to INCREF ival which could be NULL. Return early in that case. The caller checks for PyErr_Occurred so this should be ok. Klocwork #297 12 August 2006, 01:50:38 UTC
6bf1a8f Handle NULL nodes while parsing. I'm not entirely sure this is correct. There might be something else that needs to be done to setup the error. Klocwork #295. 12 August 2006, 01:49:12 UTC
edb2168 This code is actually not used unless WITHOUT_COMPLEX is defined. However, there was no error checking that PyFloat_FromDouble returned a valid pointer. I believe this change is correct as it seemed to follow other code in the area. Klocwork # 292. 12 August 2006, 01:47:59 UTC
43bd4db It's highly unlikely, though possible for PyEval_Get*() to return NULLs. So be safe and do an XINCREF. Klocwork # 221-222. 12 August 2006, 01:46:42 UTC
84167d0 Even though _Py_Mangle() isn't truly public anyone can call it and there was no verification that privateobj was a PyString. If it wasn't a string, this could have allowed a NULL pointer to creep in below and crash. I wonder if this should be PyString_CheckExact? Must identifiers be strings or can they be subclasses? Klocwork #275 12 August 2006, 01:45:47 UTC
6f5ff3f Klocwork made another run and found a bunch more problems. This is the first batch of fixes that should be easy to verify based on context. This fixes problem numbers: 220 (ast), 323-324 (symtable), 321-322 (structseq), 215 (array), 210 (hotshot), 182 (codecs), 209 (etree). 12 August 2006, 01:43:40 UTC
2a899c8 When a ctypes C callback function is called, zero out the result storage before converting the result to C data. See the comment in the code for details. Provide a better context for errors when the conversion of a callback function's result cannot be converted. 11 August 2006, 19:55:35 UTC
975c8bb Add ignore of *.pyc and *.pyo to Lib/xml/etree/. 11 August 2006, 15:02:39 UTC
0a7d1bb logging's atexit hook now runs even if the rest of the module has already been cleaned up. 11 August 2006, 07:26:10 UTC
368c155 Add Chris McDonough (latest cgi.py patch) 11 August 2006, 07:15:38 UTC
003c9e2 Fix the failures on cygwin (2006-08-10 fixed the actual locking issue). The first hunk changes the colon to an ! like other Windows variants. We need to always wait on the child so the lock gets released and no other tests fail. This is the try/finally in the second hunk. 11 August 2006, 06:09:41 UTC
8b8c59c force_test_exit(): This has been completely ineffective at stopping test_signal from hanging forever on the Tru64 buildbot. That could be because there's no such thing as signal.SIGALARM. Changed to the idiotic (but standard) signal.SIGALRM instead, and added some more debug output. 11 August 2006, 03:49:10 UTC
0857477 test_PyThreadState_SetAsyncExc(): This is failing on some 64-bit boxes. I have no idea what the ctypes docs mean by "integers", and blind-guessing here that it intended to mean the signed C "int" type, in which case perhaps I can repair this by feeding the thread id argument to type ctypes.c_long(). Also made the worker thread daemonic, so it doesn't hang Python shutdown if the test continues to fail. 11 August 2006, 00:49:01 UTC
b7ad1eb Whitespace normalization broke test_cgi, because a line of quoted test data relied on preserving a single trailing blank. Changed the string from raw to regular, and forced in the trailing blank via an explicit \x20 escape. 10 August 2006, 23:22:13 UTC
0d9ca9f Whitespace normalization. 10 August 2006, 22:48:45 UTC
4643c2f Followup to bug #1069160. PyThreadState_SetAsyncExc(): internal correctness changes wrt refcount safety and deadlock avoidance. Also added a basic test case (relying on ctypes) and repaired the docs. 10 August 2006, 22:45:34 UTC
789c09d Update dangling references to the 3.2 database to mention that this is UCD 4.1 now. 10 August 2006, 19:04:00 UTC
c69ac25 Fix title -- it's rc1, not beta3. 10 August 2006, 18:09:25 UTC
133f4e4 News item for SF bug 1112549. 10 August 2006, 17:42:50 UTC
9568b73 Chris McDonough's patch to defend against certain DoS attacks on FieldStorage. SF bug #1112549. 10 August 2006, 17:41:07 UTC
back to top