bd79c37 | Raymond Hettinger | 06 October 2002, 02:36:36 UTC | Backport 1.13 documenting impending deprecation in favor of the email module. | 06 October 2002, 02:36:36 UTC |
f66801a | Raymond Hettinger | 06 October 2002, 02:34:15 UTC | Backport 1.3 documenting impending deprecation in favor of the email module. | 06 October 2002, 02:34:15 UTC |
78c27c2 | Raymond Hettinger | 06 October 2002, 02:32:34 UTC | Backport 1.23 documenting impending deprecation in favor to the email package. | 06 October 2002, 02:32:34 UTC |
ca2fefa | Raymond Hettinger | 06 October 2002, 02:29:03 UTC | Backport 1.4 documenting the impending deprecation of xreadlines. | 06 October 2002, 02:29:03 UTC |
658d0ad | Raymond Hettinger | 06 October 2002, 02:24:00 UTC | Backport 1.36 documenting Py2.3's impending deprecation of the non-tuple form. | 06 October 2002, 02:24:00 UTC |
79c78f4 | Raymond Hettinger | 06 October 2002, 02:16:52 UTC | Backport 1.108 documenting Py2.3's impending deprecation of divmod() for complex numbers. | 06 October 2002, 02:16:52 UTC |
d751105 | Raymond Hettinger | 05 October 2002, 21:14:12 UTC | Backport 2.103: Made conversion failure error messages consistent between types. | 05 October 2002, 21:14:12 UTC |
c52a36f | Raymond Hettinger | 05 October 2002, 20:43:43 UTC | Backport 2.63 and 2.60: Call me anal, but there was a particular phrase that was speading to comments everywhere that bugged me: /* Foo is inlined */ instead of /* Inline Foo */. Somehow the "is inlined" phrase always confused me for half a second (thinking, "No it isn't" until I added the missing "here"). The new phrase is hopefully unambiguous. Close SF bug 563740. complex() now finds __complex__() in new style classes. Made conversion failure error messages consistent between types. Added related unittests. | 05 October 2002, 20:43:43 UTC |
ad565a3 | Raymond Hettinger | 05 October 2002, 16:55:11 UTC | Backported Jeremy's documentation of nested scopes, execution frames and such. | 05 October 2002, 16:55:11 UTC |
f45d4fa | Raymond Hettinger | 05 October 2002, 15:52:38 UTC | Typo | 05 October 2002, 15:52:38 UTC |
989aa00 | Raymond Hettinger | 05 October 2002, 15:41:56 UTC | Backport 1.94: Patch 543387. Document deprecation of complex %, //,and divmod(). | 05 October 2002, 15:41:56 UTC |
2d4b27e | Raymond Hettinger | 05 October 2002, 15:38:16 UTC | Backport 1.100: Discussion of Stop Iteration in the Iterator Protocol. | 05 October 2002, 15:38:16 UTC |
216c977 | Raymond Hettinger | 05 October 2002, 15:25:33 UTC | Backport 1.88 and 1.87: Update docs to reflect that \b considers underscore to be part of a word. | 05 October 2002, 15:25:33 UTC |
ad8f9d1 | Raymond Hettinger | 05 October 2002, 15:14:33 UTC | Backport 1.19: Document that the key should not contain null bytes. | 05 October 2002, 15:14:33 UTC |
89c04ae | Raymond Hettinger | 05 October 2002, 15:00:09 UTC | Backport 1.30 and 1.29: Markup adjustments; fix the names of modules referenced in an expression. Deprecated Random.cunifvariate clearing bug 506647. | 05 October 2002, 15:00:09 UTC |
67fe68e | Raymond Hettinger | 05 October 2002, 14:42:52 UTC | Backport 1.33 (omitting the deprecation warning but keeping the deprecation comment): Deprecated Random.cunifvariate clearing bug 506647. Also, added docstrings. | 05 October 2002, 14:42:52 UTC |
98bfbc3 | Raymond Hettinger | 05 October 2002, 06:51:34 UTC | Backport 1.61 (note, the actual deprecation is not backported since it could affect existing code; instead, the documentation of the deprecation is being backported to provide maximum advance notice): Patch 543387. Document deprecation of complex %, //,and divmod(). | 05 October 2002, 06:51:34 UTC |
490561e | Raymond Hettinger | 05 October 2002, 06:40:49 UTC | Backport 1.94: Clarified that the footnote applies to versions 1.5 and after instead of just version 1.5. Closes SF bug 577793. | 05 October 2002, 06:40:49 UTC |
aca53fc | Raymond Hettinger | 05 October 2002, 06:12:08 UTC | Backport 1.54 1.53 1.52 1.51 1.50 and 1.49: Try to improve the explanation of the "raise" statement and how its arguments are interpreted. This closes SF bug #532467. Fix Typo. Reword explanation of global statement since an undeclared global is a free variable and is subject to those rules. Note the sole case in which the ban on "from ... import *" within a function is enforced. Remove the following restriction: Names bound by import statements may not occur in global statements in the same scope. Why not? Note that it is illegal to delete a cell variable. Note that deleteing an unbound local will raise a NameError. | 05 October 2002, 06:12:08 UTC |
66d8b27 | Raymond Hettinger | 05 October 2002, 05:14:19 UTC | Backport 1.160 on looping idioms. Excludes enumerate(), a Py2.3 feature. | 05 October 2002, 05:14:19 UTC |
9efc111 | Raymond Hettinger | 05 October 2002, 05:04:07 UTC | Backport 1.161: Message for NameError has changed. | 05 October 2002, 05:04:07 UTC |
b3e15fe | Raymond Hettinger | 05 October 2002, 03:58:16 UTC | Backport 1.43: Extended IDLE's open module menu item to handle hierarchical module names. Closes SF patch 600152. | 05 October 2002, 03:58:16 UTC |
11b11b5 | Fred Drake | 04 October 2002, 20:40:45 UTC | Version number updates for Python 2.2.2. | 04 October 2002, 20:40:45 UTC |
29a3817 | Fred Drake | 04 October 2002, 19:22:37 UTC | Remove some unnecessary dependencies (minor). | 04 October 2002, 19:22:37 UTC |
d967ba5 | Fred Drake | 04 October 2002, 18:59:36 UTC | Added refcount information for PyObject_GetIter(). | 04 October 2002, 18:59:36 UTC |
850952b | Barry Warsaw | 04 October 2002, 18:00:13 UTC | regrtest expects TestSkipped to come from test_support not test.test_support | 04 October 2002, 18:00:13 UTC |
0f0bcc4 | Barry Warsaw | 04 October 2002, 17:57:27 UTC | Add a note about the backport of email 2.4 | 04 October 2002, 17:57:27 UTC |
5b04140 | Barry Warsaw | 04 October 2002, 17:40:57 UTC | Backporting of email 2.4 from Python 2.3. These are the backported tests and supporting files. | 04 October 2002, 17:40:57 UTC |
18ff795 | Barry Warsaw | 04 October 2002, 17:24:24 UTC | Backporting of email 2.4 from Python 2.3. Many newly added modules, some updated modules, updated documentation, and updated tests. Note that Lib/test/regrtest.py added test_email_codecs to the expected skips for all platforms. Also note that test_email_codecs.py differs slightly from its Python 2.3 counterpart due to the difference in package location for TestSkipped. | 04 October 2002, 17:24:24 UTC |
5b70f66 | cvs2svn | 04 October 2002, 17:24:24 UTC | This commit was manufactured by cvs2svn to create branch 'release22-maint'. | 04 October 2002, 17:24:24 UTC |
b3861ce | Neal Norwitz | 04 October 2002, 12:50:12 UTC | Backport last checkin: SF # 607253, header file problems, reported by Ralf W. Grosse-Kunstleve Don't pollute the namespace when protecting against multiple header inclusion. Prefix with Py_ and use standard naming convention Py_FILENAME_H. | 04 October 2002, 12:50:12 UTC |
ea2b436 | Neal Norwitz | 04 October 2002, 12:35:17 UTC | Backport patch (also pointed out in SF #607253): date: 2002/03/30 08:57:12; author: loewis; Patch #536908: Add missing #include guards/extern "C". | 04 October 2002, 12:35:17 UTC |
067010f | Martin v. Löwis | 04 October 2002, 10:16:27 UTC | Patch #618347: Work around Solaris pthread.h bug. | 04 October 2002, 10:16:27 UTC |
1540409 | Skip Montanaro | 03 October 2002, 15:27:47 UTC | use types.StringTypes instead of (str, unicode) | 03 October 2002, 15:27:47 UTC |
ac2bc27 | Skip Montanaro | 03 October 2002, 14:56:08 UTC | Python 2.2 doesn't have basestring. | 03 October 2002, 14:56:08 UTC |
9c5a508 | Michael W. Hudson | 02 October 2002, 13:13:45 UTC | Fix for the recursion_level bug Armin Rigo reported in sf patch #617312, both on the trunk and the 22-maint branch. Also added a test case, and ported the test_trace I wrote for HEAD to 2.2.2 (with all those horrible extra 'line' events ;-). | 02 October 2002, 13:13:45 UTC |
8b66d77 | Michael W. Hudson | 02 October 2002, 13:13:45 UTC | Fix for the recursion_level bug Armin Rigo reported in sf patch #617312, both on the trunk and the 22-maint branch. Also added a test case, and ported the test_trace I wrote for HEAD to 2.2.2 (with all those horrible extra 'line' events ;-). | 02 October 2002, 13:13:45 UTC |
5f97144 | Martin v. Löwis | 30 September 2002, 16:17:54 UTC | Regenerate. | 30 September 2002, 16:17:54 UTC |
c74deb3 | Martin v. Löwis | 30 September 2002, 16:16:13 UTC | Patch #615069: Fix build problems on SCO Open Server 5. | 30 September 2002, 16:16:13 UTC |
8d92ee8 | Barry Warsaw | 30 September 2002, 14:42:29 UTC | Add "runtime_library_dirs = ssl_libs" to the _socket Extension specification so that the proper runtime ld.so path gets compiled into the extension. This fixes _socket for Solaris systems with libssl and libcrypto in non-standard locations and should be fine for other systems as well. Closes SF bug #565710. Forward port candidate for Python 2.3 (I'll work on that). | 30 September 2002, 14:42:29 UTC |
036f6a8 | Guido van Rossum | 30 September 2002, 13:52:01 UTC | Backport all changes from trunk (all cosmetic). | 30 September 2002, 13:52:01 UTC |
95d9e62 | Martin v. Löwis | 30 September 2002, 11:19:12 UTC | Patch #596576: Always use cc to link on NetBSD. | 30 September 2002, 11:19:12 UTC |
7da5feb | Michael W. Hudson | 30 September 2002, 10:54:15 UTC | Backport loewis' 1.12: Patch #581705: Catch OSError, termios.error in spawn. 2.2 bugfix candidate. | 30 September 2002, 10:54:15 UTC |
7c2778f | Michael W. Hudson | 30 September 2002, 10:52:21 UTC | Backport mhammond's 2.14: Fix bug [ 549731 ] Unicode encoders appears to leak references. Python 2.2.1 bugfix candidate. | 30 September 2002, 10:52:21 UTC |
4600bc0 | Michael W. Hudson | 30 September 2002, 10:31:13 UTC | Backport mhammond's 1.6: Patch 574531/Bug 574570 - allow freeze on windows to use the _winreg extension. | 30 September 2002, 10:31:13 UTC |
40575f1 | Martin v. Löwis | 30 September 2002, 10:10:22 UTC | Patch #615343: Add HAVE_GETADDRINFO to acconfig.h. | 30 September 2002, 10:10:22 UTC |
e931387 | Fred Drake | 27 September 2002, 16:34:30 UTC | Allow internal whitespace in keys. Closes SF bug #583248. | 27 September 2002, 16:34:30 UTC |
dcec3a4 | Michael W. Hudson | 27 September 2002, 08:51:20 UTC | Backport Jack's fix for Jaguar. | 27 September 2002, 08:51:20 UTC |
459a58f | Skip Montanaro | 26 September 2002, 21:50:01 UTC | backport patch resulting from discussion on <http://python.org/sf/612111>. | 26 September 2002, 21:50:01 UTC |
65587a9 | Guido van Rossum | 26 September 2002, 20:08:55 UTC | Backport of 1.15: Oops, must convert hyphens to underscores in keys of aliases dict. | 26 September 2002, 20:08:55 UTC |
08ed38a | Fred Drake | 26 September 2002, 19:37:36 UTC | Previous fix depended on the "code cleanup and general bug fix patch" already being applied. This is portion of that patch that does not add new functionality. | 26 September 2002, 19:37:36 UTC |
37c0f6b | Fred Drake | 26 September 2002, 19:23:31 UTC | has_option(): Use the option name transform consistently. Closes SF bug #561822. | 26 September 2002, 19:23:31 UTC |
6ad9292 | Guido van Rossum | 26 September 2002, 16:53:31 UTC | Backport of 2.18: Patch for the DEC Alpha under Linux, by Lee Busby. | 26 September 2002, 16:53:31 UTC |
12315fd | Martin v. Löwis | 26 September 2002, 16:41:10 UTC | Disable big charsets in UCS-4 builds. Works around #599377. | 26 September 2002, 16:41:10 UTC |
7433ef5 | Martin v. Löwis | 26 September 2002, 16:04:31 UTC | Add encoding in LookupError. Fixes #615013. | 26 September 2002, 16:04:31 UTC |
c2de205 | Fred Drake | 26 September 2002, 15:53:28 UTC | Remove unused output file. | 26 September 2002, 15:53:28 UTC |
2abf167 | Fred Drake | 26 September 2002, 15:52:59 UTC | Backport patches for versions 1.33, 1.35, and 1.36 from the trunk: revision 1.36: If PyXML is installed, there is no Node.allnodes, so that portion of the test should be skipped if that's the case. revision 1.35: Remove duplicate checks of the Node.allnodes variable. revision 1.33: Follow PyXML: Remove all prints from successful tests. This means we can also drop the output file. | 26 September 2002, 15:52:59 UTC |
6a09556 | Fred Drake | 26 September 2002, 15:24:41 UTC | Fix for PyXML bug #563399, as much as we can implement without relying on a specific Expat version. This includes fixing a test that enforced the incorrect result. | 26 September 2002, 15:24:41 UTC |
aa57a20 | Fred Drake | 25 September 2002, 22:31:35 UTC | The Python 2.2.x version of pyexpat needs more changes to avoid type issues with varying versions of Expat; this completes the previous fix for this version. (Not relevant for the trunk.) | 25 September 2002, 22:31:35 UTC |
727bbab | Neal Norwitz | 25 September 2002, 21:40:17 UTC | Backport revision 1.6 by jackjansen; Added include guards and C++ extern "C" {} constructs. Partial fix for #607253. | 25 September 2002, 21:40:17 UTC |
b332cd8 | Neal Norwitz | 25 September 2002, 21:26:01 UTC | Back out part of previous change. Quotes aren't necessary in case statements. Spotted by Neil Schemenauer. | 25 September 2002, 21:26:01 UTC |
979de98 | Neal Norwitz | 25 September 2002, 20:35:57 UTC | Fix SF # 614587, configure.in patch from Tim Rice Need to quote $GCC in case it isn't set. | 25 September 2002, 20:35:57 UTC |
bd1ac01 | Neal Norwitz | 25 September 2002, 19:22:10 UTC | Backport: Fix SF # 591713, Fix "file:" URL to have right no. of /'s, by Bruce Atherton Add a test too. urljoin() would make file:/tmp/foo instead of file:///tmp/foo | 25 September 2002, 19:22:10 UTC |
9622dd5 | Fred Drake | 25 September 2002, 18:06:48 UTC | Fix typo in xreadlines() docstring. This does not apply to the trunk. Closes SF bug #614542. | 25 September 2002, 18:06:48 UTC |
ac3fe23 | Michael W. Hudson | 25 September 2002, 16:53:17 UTC | Dump trunk version of httplib.py onto branch. | 25 September 2002, 16:53:17 UTC |
cf72744 | Guido van Rossum | 25 September 2002, 16:46:22 UTC | Add yet another alias for ASCII found in the field (on BSD?). | 25 September 2002, 16:46:22 UTC |
0dddf30 | Guido van Rossum | 25 September 2002, 15:03:10 UTC | Backport of 1.489: Disable building of the fpectl module -- it's dangerous or useless except in the hands of experts. | 25 September 2002, 15:03:10 UTC |
2c3f443 | Guido van Rossum | 25 September 2002, 15:00:40 UTC | Backport of 1.111: Disable building of the fpectl module -- it's dangerous or useless except in the hands of experts. | 25 September 2002, 15:00:40 UTC |
916675b | Michael W. Hudson | 25 September 2002, 10:32:49 UTC | backport jhylton's checkin of revision 1.32 of urllib2.py Fix from SF patch #527518: proxy config with user+pass authentication. Bug fix candidate. | 25 September 2002, 10:32:49 UTC |
85bcbc3 | Michael W. Hudson | 25 September 2002, 10:25:14 UTC | backport tim_one's checkin of revision 2.36 of binascii.c Another stab at SF 576327: zipfile when sizeof(long) == 8 binascii_crc32(): The previous patch forced this to return the same result across platforms. This patch deals with that, on a 64-bit box, the *entry* value may have "unexpected" bits in the high four bytes. Bugfix candidate. -------- More whitespace cleanup related conflict removal... sigh. | 25 September 2002, 10:25:14 UTC |
f5cdacf | Michael W. Hudson | 25 September 2002, 10:22:50 UTC | backport tim_one's checkin of revision 2.35 of binascii.c Fix for SF bug #576327: zipfile when sizeof(long) == 8 binascii_crc32(): Make this return a signed 4-byte result across platforms. The other way to make this platform-independent would be to make it return an unsigned unbounded int, but the evidence suggests other code out there treats it like a signed 4-byte int (e.g., existing code writing the result with struct.pack "l" format). Bugfix candidate. | 25 September 2002, 10:22:50 UTC |
74f1f76 | Fred Drake | 25 September 2002, 02:33:47 UTC | Ok, read the source this time: PyErr_SetObject() does not steal a reference. | 25 September 2002, 02:33:47 UTC |
3194003 | Fred Drake | 24 September 2002, 21:01:07 UTC | Another try at clarifying what goes into and comes out of Unicode objects. | 24 September 2002, 21:01:07 UTC |
64a9d8a | Guido van Rossum | 24 September 2002, 17:52:05 UTC | Revert Raymond H's checkin. That change depends on a new feature in 2.3, support for source code encodings, so it shouldn't be backported (no matter how attractive the checkin msg sounded). Please, try to *use* IDLE before committing changes! | 24 September 2002, 17:52:05 UTC |
9391943 | Thomas Heller | 24 September 2002, 17:44:40 UTC | backport of the checkin of revision 1.36 of asyncore.py On Windows, select() does not accept empty lists. Patch suggested by Guido, fixes SF item 611464. Bugfix candidate, will backport to release22-maint myself. | 24 September 2002, 17:44:40 UTC |
b36230b | Thomas Heller | 24 September 2002, 17:24:25 UTC | backport of the checkin of revision 2.69 of selectmodule.c On Windows, call WSAGetLastError() to retrieve the error number. Bugfix candidate, will backport to release22-maint myself. | 24 September 2002, 17:24:25 UTC |
8c0645b | Guido van Rossum | 24 September 2002, 17:17:38 UTC | Change version stuff to 2.2.2a0. | 24 September 2002, 17:17:38 UTC |
dff08ea | Guido van Rossum | 24 September 2002, 17:14:19 UTC | Change the version to 2.2.2a0. (Whether we're going to do a 2.2.2 alpha or beta at all isn't clear; but while it's unreleased, I think a0 is the best indicator we've got.) | 24 September 2002, 17:14:19 UTC |
1884af0 | Fred Drake | 24 September 2002, 16:44:56 UTC | Clarify documentation for PyErr_SetObject() to describe the reference count behavior. | 24 September 2002, 16:44:56 UTC |
322815a | Fred Drake | 24 September 2002, 16:25:10 UTC | Be more careful with the type of the xmlhandlersetter; it takes an XML_Parser, which happens to be a pointer type, not an XML_Parser*. This generated warnings when compiled with Expat 1.95.5, which no longer defines XML_Parser to be void*. | 24 September 2002, 16:25:10 UTC |
fb54405 | Tim Peters | 24 September 2002, 16:21:36 UTC | Replaced this with the 2.3 test_mmap, which contains Windows-specific fixes for the "try to resize it" test (Windows grows the underlying file then, and that screws up later tests that assume the underlying file has not changed size, as was true on the box (Linux) the person who changed this test in 2.2 to begin with tried it on). Without this change, test_mmap fails on Windows. Now it passes again. | 24 September 2002, 16:21:36 UTC |
1b3e494 | Tim Peters | 24 September 2002, 15:22:30 UTC | unicode_memchr(): Squashed compiler wng (signed-vs-unsigned comparison). | 24 September 2002, 15:22:30 UTC |
d75b7e1 | Marc-André Lemburg | 24 September 2002, 15:01:01 UTC | Regenerate test_unicodedata output after the change to the UTF-8 codec. | 24 September 2002, 15:01:01 UTC |
1e616dc | Marc-André Lemburg | 24 September 2002, 14:06:55 UTC | Backport the UTF-8 codec from 2.3 and add a work-around to let the UTF-8 decoder accept broken UTF-8 sequences which encode lone high surrogates (the pre-2.2.2 versions forgot to generate the UTF-8 prefix \xed for these). Fixes SF bug #610783: Lone surrogates cause bad .pyc files. | 24 September 2002, 14:06:55 UTC |
6f3c654 | Fred Drake | 24 September 2002, 13:57:32 UTC | Clarify that len() of a Unicode string returns the number of storage units, not abstract characters. | 24 September 2002, 13:57:32 UTC |
44ed841 | Michael W. Hudson | 24 September 2002, 11:56:45 UTC | backport theller's checkin of revision 1.74 of marshal.c Whitespace normalization. | 24 September 2002, 11:56:45 UTC |
e1a31e0 | Michael W. Hudson | 24 September 2002, 11:56:15 UTC | backport theller's checkin of revision 1.3 of test_marshal.py Fix SF 588452: debug build crashes on marshal.dumps([128] * 1000). See there for a description. Added test case. Bugfix candidate for 2.2.x, not sure about previous versions: probably low priority, because virtually no one runs debug builds. | 24 September 2002, 11:56:15 UTC |
78e179c | Michael W. Hudson | 24 September 2002, 11:55:54 UTC | backport theller's checkin of revision 1.73 of marshal.c Fix SF 588452: debug build crashes on marshal.dumps([128] * 1000). See there for a description. Added test case. Bugfix candidate for 2.2.x, not sure about previous versions: probably low priority, because virtually no one runs debug builds. | 24 September 2002, 11:55:54 UTC |
ed9bb76 | Michael W. Hudson | 24 September 2002, 11:53:34 UTC | backport jhylton's checkin of revision 2.87 of cPickle.c Do more robust test of whether global objects are accessible. PyImport_ImportModule() is not guaranteed to return a module object. When another type of object was returned, the PyModule_GetDict() call return NULL and the subsequent GetItem() seg faulted. Bug fix candidate. ---------- Once again, whitespace chances scuppered automatic backporting, so I did this by hand. Review probably wise -- but I have run make test! Also incorporates revision 2.88 which was just removing a now unused declaration. | 24 September 2002, 11:53:34 UTC |
070fe16 | Michael W. Hudson | 24 September 2002, 11:23:05 UTC | backport nowonder's checkin of revision 2.265 of bltinmodule.c date: 2002/08/27 16:58:00; author: nowonder; state: Exp; lines: +1 -1 execfile should call PyErr_SetFromErrnoWithFilename instead of simply PyErr_SetFromErrno This closes bug 599163. | 24 September 2002, 11:23:05 UTC |
a748f06 | Michael W. Hudson | 24 September 2002, 11:22:28 UTC | backport akuchling's checkin of revision 1.12 of config.py Include an empty body when checking for a header file (Bugfix candidate for 2.2, and likely 2.1 as well) | 24 September 2002, 11:22:28 UTC |
81f3317 | Michael W. Hudson | 24 September 2002, 11:19:33 UTC | backport gvanrossum's checkin of revision 1.57 of pdb.py date: 2002/09/10 21:57:14; author: gvanrossum; state: Exp; lines: +7 -1 At Jim Fulton's request, increase the maxstring value of _saferepr to a more reasonable value. Backport candidate. | 24 September 2002, 11:19:33 UTC |
a3a7215 | Michael W. Hudson | 24 September 2002, 11:12:05 UTC | backport effbot's checkin of revision 1.43 of sre_compile.py made the code match the comments (1.5.2 compatibility) | 24 September 2002, 11:12:05 UTC |
378d361 | Michael W. Hudson | 24 September 2002, 11:11:12 UTC | backport theller's checkin of revision 2.102 of abstract.c Better isinstance error message. Closes SF patch # 560250. Bugfix candidate IMO. | 24 September 2002, 11:11:12 UTC |
eab1a0b | Michael W. Hudson | 24 September 2002, 11:08:23 UTC | backport bwarsaw's checkin of revision 2.101 of abstract.c abstract_get_bases(): Clarify exactly what the return values and states can be for this function, and ensure that only AttributeErrors are masked. Any other exception raised via the equivalent of getattr(cls, '__bases__') should be propagated up. abstract_issubclass(): If abstract_get_bases() returns NULL, we must call PyErr_Occurred() to see if an exception is being propagated, and return -1 or 0 as appropriate. This is the specific fix for a problem whereby if getattr(derived, '__bases__') raised an exception, an "undetected error" would occur (under a debug build). This nasty situation was uncovered when writing a security proxy extension type for the Zope3 project, where the security proxy raised a Forbidden exception on getattr of __bases__. PyObject_IsInstance(), PyObject_IsSubclass(): After both calls to abstract_get_bases(), where we're setting the TypeError if the return value is NULL, we must first check to see if an exception occurred, and /not/ mask an existing exception. Neil Schemenauer should double check that these changes don't break his ExtensionClass examples (there aren't any test cases for those examples and abstract_get_bases() was added by him in response to problems with ExtensionClass). Neil, please add test cases if possible! I belive this is a bug fix candidate for Python 2.2.2. ---- Whitespace normalization made this a pest to backport... Did a test case ever get added for this? | 24 September 2002, 11:08:23 UTC |
bd5ba4b | Michael W. Hudson | 24 September 2002, 10:27:28 UTC | Finish up the random fixes that Raymond started yesterday. | 24 September 2002, 10:27:28 UTC |
d722a82 | Michael W. Hudson | 24 September 2002, 09:59:50 UTC | Make test_rfc822 pass again. | 24 September 2002, 09:59:50 UTC |
1b651fc | Marc-André Lemburg | 24 September 2002, 09:29:44 UTC | Fix cast from backport. | 24 September 2002, 09:29:44 UTC |
a69f822 | Guido van Rossum | 24 September 2002, 01:17:41 UTC | Backport 2.48 from trunk: #544265, Remove warnings for passing const to free() | 24 September 2002, 01:17:41 UTC |
2992e13 | Guido van Rossum | 23 September 2002, 21:19:44 UTC | Backported 1.39 and 1.40 from trunk: 1.39: Fix SF bug 610610 (reported by Martijn Pieters, diagnosed by Neal Norwitz). The switch in Exception__str__ didn't clear the error if PySequence_Size() raised an exception. Added a case -1 which clears the error and falls through to the default case. 1.40: Two more cases of switch(PySequence_Size()) without checking for case -1. (Same problem as last checkin for SF bug 610610) Need to clear the error and proceed. | 23 September 2002, 21:19:44 UTC |