Staging
v0.5.1
swh:1:snp:635f4099902912592851108bcac178ff574f7c5f

sort by:
Revision Author Date Message Commit Date
c927c8a Backport from trunk: property_traverse() should also traverse into prop_doc -- there's no typecheck that guarantees it's a string, and BTW string subclasses could hide references. 09 April 2003, 17:06:31 UTC
8998a81 Fixed the gc-vs-__del__ bugs for new-style classes. That's it for this one. 08 April 2003, 20:33:05 UTC
1ac3849 Backporting new gc-vs-__del__ tests. These pass, but are restricted to old-style classes. New-style classes remain vulnerable in 2.2. 08 April 2003, 19:32:53 UTC
539afe0 More backporting of gc-vs-__del__ fixes. It should be fixed for instances of classic classes now. Alas, new-style classes are still a problem, and didn't need to be fixed in 2.3 (they were already immune in 2.3 due to the new-in-2.3 tp_del slot). 08 April 2003, 19:13:14 UTC
82550d5 Added private API function _PyInstance_Lookup(). This is part of backporting fixes so that garbage collection doesn't have to trigger execution of arbitrary Python code just to figure out whether an object has a __del__ method. 08 April 2003, 19:02:34 UTC
71e300e Added example of using positional and keyword args with atexit.register(). Based on a suggestion from a reader. 08 April 2003, 17:46:33 UTC
d900425 Backporting: typed_subpart_iterator(): Fix these to use non-deprecated APIs, i.e. get_content_maintype() and get_content_subtype(). 04 April 2003, 02:48:18 UTC
27a93d7 Backporting email 2.5.1 patches. 04 April 2003, 02:47:07 UTC
4a1d0f5 Backporting: revision 1.27 date: 2003/03/30 20:46:47; author: bwarsaw; state: Exp; lines: +3 -3 __unicode__(): Fix the logic for calculating whether to add a separating space or not between encoded chunks. Closes SF bug #710498. 04 April 2003, 02:46:38 UTC
f953500 Fix memory corruption in garbage collection. The move_finalizers() routine checks each object in the unreachable list to see if it has a finalizer. If it does, it is moved to the finalizers list. The collector checks by calling, effectively, hasattr(obj, "__del__"). The hasattr() call can result in an arbitrary amount of Python code being run, because it will invoke getattr hooks on obj. If a getattr() hook is run from move_finalizers(), it may end up resurrecting or deallocating objects in the unreachable list. In fact, it's possible that the hook causes the next object in the list to be deallocated. That is, the object pointed to by gc->gc.gc_next may be freed before has_finalizer() returns. The problem with the previous revision is that it followed gc->gc.gc_next before calling has_finalizer(). If has_finalizer() gc->happened to deallocate the object FROM_GC(gc->gc.gc_next), then the next time through the loop gc would point to freed memory. The fix is to always follow the next pointer after calling has_finalizer(). Note that Python 2.3 does not have this problem, because has_finalizer() checks the tp_del slot and never runs Python code. Tim, Barry, and I peed away the better part of two days tracking this down. 03 April 2003, 23:02:29 UTC
62ed948 Remove trailing newline. 01 April 2003, 15:40:07 UTC
44198f0 This was failing on Windows, due to various attempts to delete files that were still open. Made the tail end of the test look more like the CVS head version. 31 March 2003, 22:48:29 UTC
bc12473 note test_locale skip 31 March 2003, 22:12:37 UTC
18711bc backport test skip for test_locale on Mac OS X 31 March 2003, 22:11:45 UTC
8c451a7 note test_largefile restriction on Mac OS X 31 March 2003, 21:59:05 UTC
ddf625b backport largefile resource requirement for Mac OSX 31 March 2003, 17:42:52 UTC
fb5d378 Match some of the markup changes from the trunk. 31 March 2003, 16:45:22 UTC
b9ea876 Fix symbol in grammar; this should fix some hyperlinking in the HTML version. 31 March 2003, 14:54:18 UTC
3c5173c Patch #710576: Implement per-interpreter-state codec registries. 30 March 2003, 20:57:31 UTC
31ec28b SF patch #706338, Fix a few broken links in pydoc by Greg Chapman 30 March 2003, 20:31:49 UTC
342c42b Backport Patch 659834 checked in by GvR on 2002/12/30 16:25:38 Check for readline 2.2 features. This should make it possible to compile readline.c again with GNU readline versions 2.0 or 2.1; this ability was removed in readline.c rev. 2.49. Apparently the older versions are still in widespread deployment on older Solaris installations. With an older readline, completion behavior is subtly different (a space is always added). 30 March 2003, 19:26:50 UTC
fa8b672 Patch #695250: Suppress COPYRIGHT if site.py is not read. Fixes #672614. 30 March 2003, 17:00:58 UTC
80288f4 Backport Patch 659834 checked in by GvR on 2002/12/30 16:25:38 Check for readline 2.2 features. This should make it possible to compile readline.c again with GNU readline versions 2.0 or 2.1; this ability was removed in readline.c rev. 2.49. Apparently the older versions are still in widespread deployment on older Solaris installations. With an older readline, completion behavior is subtly different (a space is always added). 29 March 2003, 22:25:18 UTC
a43f281 Patch #707701: Expect '??' in events. Fixes #698517. 29 March 2003, 09:48:12 UTC
4c9fefc backport fix for missing altsep in nt (bug 709428) 28 March 2003, 22:31:41 UTC
0dc63d4 Backport Tim's checkin 2.218: slot_sq_contains(): This leaked a reference to the result of calling __contains__(). 23 March 2003, 14:36:50 UTC
1d92ed9 Backport 2.220, SF patch #708201, unchecked return value in import.c by Jason Harper 23 March 2003, 14:32:56 UTC
36d69d9 Synch the Windows installer with changes in the email package. 22 March 2003, 02:08:30 UTC
31643ee Backporting docs for email 2.5 21 March 2003, 21:24:27 UTC
caf2f51 Backporting email 2.5 to Python 2.2 maint branch. 21 March 2003, 21:09:32 UTC
bdd096a - added example of using a comparison function with list.sort(), and explained the construction of a [(key, value), ...] list as an alternative - backport additional notes on list use from Python 2.3 documentation; mostly warnings about what not to rely on 20 March 2003, 22:20:43 UTC
58d23ae SF bug 705836: struct.pack of floats in non-native endian order pack_float, pack_double, save_float: All the routines for creating IEEE-format packed representations of floats and doubles simply ignored that rounding can (in rare cases) propagate out of a long string of 1 bits. At worst, the end-off carry can (by mistake) interfere with the exponent value, and then unpacking yields a result wrong by a factor of 2. In less severe cases, it can end up losing more low-order bits than intended, or fail to catch overflow *caused* by rounding. 20 March 2003, 18:31:20 UTC
38d0ccf - backport portions of SF patch #700798: fixes and cleanups for descriptor info - use a TeX "tie" to prevent word-wrapping in "section x.y"-like text 20 March 2003, 18:22:50 UTC
158303a - explain what a UNC path is in the makedirs() description, since they're actually mentioned there 20 March 2003, 17:42:48 UTC
1a5727f This commit was manufactured by cvs2svn to create branch 'release22-maint'. 17 March 2003, 18:35:42 UTC
c5f7778 binascii_a2b_base64: Properly return an empty string if the input was all invalid, rather than returning a string of random garbage of the estimated result length. Closes SF patch #703471 by Hye-Shik Chang. Backport from 2.3. 17 March 2003, 11:34:43 UTC
903eff4 Add some more Distutil changes 12 March 2003, 14:28:21 UTC
2c35140 Add item 12 March 2003, 14:17:38 UTC
ae77a60 [Backport patch #649762] Fix for asynchat endless loop When the null string is used as the terminator, it used to be the same as None, meaning "collect all the data". In the current code, however, it falls into an endless loop; this change reverts to the old behavior. 12 March 2003, 14:11:00 UTC
2c3d827 Backport patch from revision 2.80: Fix memory leak: free memory storing the content model passed to the ElementDeclHandler by Expat. Fixes SF bug #676990. 06 March 2003, 16:27:58 UTC
614479d SF bug #697220, string.strip implementation/doc mismatch 04 March 2003, 17:44:34 UTC
fac559c Backported fix to [521782] unreliable file.read() error handling. 04 March 2003, 00:50:24 UTC
5eb8227 get_completer() takes no args 01 March 2003, 15:19:49 UTC
e0cf013 - Backported SF patch #676342: after using pdb, the readline command completion was botched. 01 March 2003, 02:14:53 UTC
4e48224 Backport rev. 1.73: Translate spaces in the machine name to underscores 26 February 2003, 22:26:03 UTC
427ee3b Partial backport of 2.11: better error messages on import failures. Fixes #652590. 25 February 2003, 14:20:44 UTC
11450a4 Removed debug output. Fixes #635570 25 February 2003, 14:19:07 UTC
3046177 Backport: Fix from SF patch #633359 by Greg Chapman for SF bug #610299: The problem is in sre_compile.py: the call to _compile_charset near the end of _compile_info forgets to pass in the flags, so that the info charset is not compiled with re.U. (The info charset is used when searching to find the first character at which a match could start; it is not generated for patterns beginning with a repeat like '\w{1}'.) 24 February 2003, 01:23:03 UTC
7df6d3d Fix SF bug #691793, Python 2.3a2 build fails on Tru64 23 February 2003, 23:45:16 UTC
1d443bd Backport relevant portions of: Fix SF bug #691793, Python 2.3a2 build fails on Tru64 Need to make sure that preprocessor directives start in first column. This means we can't indent code which has preprocessor directives, nor have a space between [ #include for example. 23 February 2003, 23:34:37 UTC
763603d Patch #491107: Cygwin setup.py import workaround patch Back patched to the 2.2.x branch. 21 February 2003, 12:18:17 UTC
ae60b9e Backport 1.38: Fix an old bug in poll(). When a signal is handled while we're blocked in select(), this will raise select.error with errno set to EINTR. The except clauses correctly ignores this error, but the rest of the logic will then call read() for all objects in select's *input* list of read file descriptors. Then when an object's read_handler() is naive, it will call recv() on its socket, which will raise an IOError, and then asyncore decides to close the socket. To fix this, we simply return in this case. Backport candidate. Backport 1.40: Fix spelling error 21 February 2003, 07:16:37 UTC
83e9e32 Spelling error 21 February 2003, 06:59:07 UTC
a4ecf11 Typo 21 February 2003, 06:05:45 UTC
f5908e1 Backport libtime.tex 1.53: Fixed longstanding bug in the description of strftime's %W code. 21 February 2003, 05:59:16 UTC
8b563c4 Backport 1.7: Clarify when a read-only object is created. 21 February 2003, 04:22:47 UTC
b78e3dd Backport 1.45: Failed module import was dumping to the console instead of creating a nice dialog window. 21 February 2003, 04:18:32 UTC
07f3867 SF bug #685775: turtle circle() documentation error 21 February 2003, 03:42:28 UTC
841569f Backport of rev 2.199 from trunk. PyObject_Generic{Get,Set}Attr: Don't access tp_descr_{get,set} of a descriptor without checking the flag bits of the descriptor's type. While we know that the main type (the type of the object whose attribute is being accessed) has all the right flag bits (or else PyObject_Generic{Get,Set}Attr wouldn't be called), we don't know that for its class attributes! 19 February 2003, 03:52:47 UTC
2f3fe91 Backport of rev 2.199 from trunk. PyObject_Generic{Get,Set}Attr: Don't access tp_descr_{get,set} of a descriptor without checking the flag bits of the descriptor's type. While we know that the main type (the type of the object whose attribute is being accessed) has all the right flag bits (or else PyObject_Generic{Get,Set}Attr wouldn't be called), we don't know that for its class attributes! 19 February 2003, 03:21:21 UTC
e6c6163 Fix SF bug #687655, String formatting conversions misleading 17 February 2003, 18:59:54 UTC
32d4793 backporting Fred's doc fix. 14 February 2003, 06:46:24 UTC
dd2cffe add missing description of os.extsep 14 February 2003, 05:46:52 UTC
466a3a7 Backport 2.217 and 2.218: Provide access to the import lock, fixing SF bug #580952. This is mostly from SF patch #683257, but I had to change unlock_import() to return an error value to avoid fatal error. 13 February 2003, 17:06:02 UTC
3281062 Backport SF #660455 fix. 12 February 2003, 19:09:45 UTC
9aa5027 Backport: Add more missing PyErr_NoMemory() after failled memory allocs 11 February 2003, 23:19:35 UTC
ea57ec8 SF bug 684667: Modules/selectmodule.c returns NULL without exception set. Backport of fix from head. 11 February 2003, 18:05:44 UTC
b94120c Backport 1.16: Fix printing plural (s or ""). 10 February 2003, 20:48:19 UTC
c31c0df Partial backport for changes to fix SF bug #678518 (assert & global). 10 February 2003, 01:57:51 UTC
17ed4ac Fix SF bug #642168, help() fails for some builtin topics Fix pydoc when doing help for: and, or, not, UNICODE. 07 February 2003, 20:51:20 UTC
909be5a SF patch #682514, mmapmodule.c write fix for LP64 executables Make length an int so we get the right value from PyArg_ParseTuple(args, "s#", &str, &length) 07 February 2003, 19:46:44 UTC
e370fb1 BUILDEXE setting in out-of-tree builds 07 February 2003, 15:59:28 UTC
a13a822 backport of a tiny part of patch 557719 - just enough to allow the BUILDEXE Makefile variable to be set properly when doing out-of-tree builds. 07 February 2003, 15:54:52 UTC
372d65b Fix SF bug #675259, os.environ leaks under FreeBSD and Mac OS X Even with the extra work to cleanup the env, *BSD still leaks. Add a note. 07 February 2003, 02:29:01 UTC
e19d309 Update to better reflect the usage of struct_time instances throughout; continuing to call these "time tuples" is misleading at best. Closes SF bug #671731; backported from rev 1.55. 04 February 2003, 15:13:25 UTC
e8c4f94 backport: revision 2.196 date: 2002/12/07 21:39:16; author: tim_one; state: Exp; lines: +27 -28 slot_nb_nonzero(): Another leak uncovered by the sandbox datetime tests. I found the logic too confusing to follow here, so rewrote more than was likely absolutely necessary. 02 February 2003, 19:59:59 UTC
5a245e4 backport: revision 1.10 date: 2002/10/29 19:08:29; author: gvanrossum; state: Exp; lines: +27 -0 Added test for this fix to classobject.c: Since properties are supported here, is possible that instance_getattr2() raises an exception. Fix all code that made this assumption. 02 February 2003, 19:38:19 UTC
9499547 backport: revision 2.164 date: 2002/10/29 18:36:40; author: gvanrossum; state: Exp; lines: +12 -13 Since properties are supported here, is possible that instance_getattr2() raises an exception. Fix all code that made this assumption. 02 February 2003, 19:37:32 UTC
025a0c6 backport: revision 1.14 date: 2003/01/29 14:20:23; author: mwh; state: Exp; lines: +5 -0 Teach the parsermodule about floor division. Fixes [ 676521 ] parser module validation failure 02 February 2003, 19:34:40 UTC
887ed5e backport: revision 2.75 date: 2003/01/29 14:20:22; author: mwh; state: Exp; lines: +2 -0 Teach the parsermodule about floor division. Fixes [ 676521 ] parser module validation failure 02 February 2003, 19:34:14 UTC
4215359 backport: revision 1.14 date: 2003/01/15 23:38:15; author: mhammond; state: Exp; lines: +1 -1 Correct docstring for SetValueEx() revision 1.13 date: 2002/12/20 20:13:35; author: theller; state: Exp; lines: +1 -1 Fix an error message in the _winreg module. The error message referred to a constant in the 'win32con' module, but this constant is also defined in the _winreg module itself. 02 February 2003, 19:26:25 UTC
6b5140f backport: revision 1.11 date: 2002/12/18 23:20:39; author: nnorwitz; state: Exp; lines: +6 -2 SF # 654974, fix unchecked return values in structseq Check return values after memory allocation. 02 February 2003, 19:25:22 UTC
a9adbff backport: revision 1.29 date: 2002/11/21 21:08:39; author: gvanrossum; state: Exp; lines: +14 -8 The _Event class should be more careful with releasing its lock when interrupted. A try/finally will do nicely. Maybe other classes need this too, but since they manipulate more state it's less clear that that is always the right thing, and I'm in a hurry. 02 February 2003, 19:24:38 UTC
a21ddb7 Backport: revision 1.44 date: 2003/01/15 22:45:48; author: jackjansen; state: Exp; lines: +5 -0 Added ismount(). Fixes #661762, bugfix candidate. 02 February 2003, 19:23:13 UTC
2184968 backports: revision 1.127 date: 2003/01/04 02:16:22; author: rhettinger; state: Exp; lines: +1 -1 SF bug #655271: Slightly modify locals() doc Clarify the operation of locals(). revision 1.125 date: 2002/12/17 01:08:06; author: nnorwitz; state: Exp; lines: +6 -1 Fix SF # 641111, Undocumented side effect of eval Try to clear up confusion about the current globals being copied into a globals dict passed to eval(). This wording (more or less) was suggested in bug report. It should probably be made clearer. revision 1.124 date: 2002/12/17 01:02:57; author: nnorwitz; state: Exp; lines: +78 -0 Fix SF #642742, property() builtin not documented Added doc for functions new to 2.2: classmethod property staticmethod super Taken from docstrings. Could use review. Hope there wasn't a reason why these shouldn't have been added. 02 February 2003, 19:08:58 UTC
613e70b backport: revision 1.4 date: 2002/12/17 00:40:38; author: nnorwitz; state: Exp; lines: +8 -3 Fix SF # 626275, missing DECREF's in embedding example Tested w/valgrind, all paths except the return on PyInt_AsLong() failure I think I got all of these right. 02 February 2003, 19:07:01 UTC
a9cbb79 Backport: date: 2002/12/06 22:42:13; author: theller; Typo: propogate -> propagate 02 February 2003, 19:06:04 UTC
975472b Remove references to pages that don't exist anymore. 31 January 2003, 14:07:31 UTC
89d08cb backport: Fix SF bug# 676155, RuntimeWarning with tp_compare Check return value of PyLong_AsDouble(), it can return an error. 28 January 2003, 19:40:35 UTC
5784a78 Fix typo reported to python-docs. 25 January 2003, 03:48:12 UTC
f744179 Partial backport from Python 2.3. Be sure to install the email and email/test directories. 20 January 2003, 02:13:45 UTC
583b86b Backport SF # 669553, fix memory (ref) leaks 19 January 2003, 15:48:38 UTC
55e040e Backport SF patch #634866: Alex Martelli's corrections to the ref manual. 19 January 2003, 14:54:08 UTC
28f35a2 Backport 1.40 and 1.41 so that inspect isn't fooled by single line definitions, pass statements, and lambdas. 19 January 2003, 14:16:19 UTC
4e4f830 Backport 1.33 from trunk: Duh. cmdqueue should be an instance variable, not a class variable. This was introduced in 1998 in rev. 1.13, where I imported extensive patches that, I am sad to say, I didn't review as carefully as I should have. 13 January 2003, 21:21:00 UTC
5238d59 Backport 1.60 from trunk: Duh. The do_EOF() implementation was bogus. Make it more like do_quit() -- but print a blank line first. 13 January 2003, 21:16:24 UTC
fbaaab9 Backport: Fix SF bug #667147, Segmentation fault printing str subclass Fix infinite recursion which occurred when printing an object whose __str__() returned self. 13 January 2003, 20:17:22 UTC
c695e8f supports_unicode_filenames should not have been backported, test___all__ now passed 13 January 2003, 19:29:38 UTC
e4b5729 Backport Guido's checkins which disabled the bastion tests 13 January 2003, 19:24:05 UTC
3432961 Get the test to pass again by backporting Guido's checkin 1.173: Disable the rexec test now that rexec is out of grace. 13 January 2003, 19:22:44 UTC
back to top