4ebde09 | Neal Norwitz | 19 December 2001, 20:44:13 UTC | Fix a typo | 19 December 2001, 20:44:13 UTC |
1c4523f | Michael W. Hudson | 19 December 2001, 19:49:58 UTC | More cygwin news. This section is getting a bit long. Oh well. | 19 December 2001, 19:49:58 UTC |
500bd03 | Tim Peters | 19 December 2001, 19:05:01 UTC | SF bug #495021: Crash calling os.stat with a trailing backslash Patch from Mark Hammond, plus code rearrangement and comments from me. posix_do_stat(): Windows-specific code could try to free() stack memory in some cases when a path ending with a forward or backward slash was passed to os.stat(). | 19 December 2001, 19:05:01 UTC |
04a8661 | Guido van Rossum | 19 December 2001, 16:58:54 UTC | Add test for pickling new-style class with custom metaclass. | 19 December 2001, 16:58:54 UTC |
f831429 | Guido van Rossum | 19 December 2001, 16:57:36 UTC | Fix for SF bug #494904: Cannot pickle a class with a metaclass, reported by Dan Parisien. | 19 December 2001, 16:57:36 UTC |
950dce6 | Guido van Rossum | 19 December 2001, 16:56:54 UTC | save(): Fix for SF bug #494904: Cannot pickle a class with a metaclass, reported by Dan Parisien. Objects that are instances of custom metaclasses, i.e. whose ob_type is a subclass of PyType_Type, should be pickled the same as new-style classes (objects whose ob_type is PyType_Type). This can't be done through the existing dispatch switches, and the __reduce__ trick doesn't work for these, since it finds the unbound __reduce__ for instances of the class (inherited from PyBaseObject_Type). So check explicitly using PyType_IsSubtype(). | 19 December 2001, 16:56:54 UTC |
f048a8f | Guido van Rossum | 19 December 2001, 16:55:02 UTC | Pickler.save(): Fix for SF bug #494904: Cannot pickle a class with a metaclass, reported by Dan Parisien. Objects that are instances of custom metaclasses, i.e. whose class is a subclass of 'type', should be pickled the same as new-style classes (objects whose class is 'type'). This can't be done through a dispatch table entry, and the __reduce__ trick doesn't work for these, since it finds the unbound __reduce__ for instances of the class (inherited from 'object'). So check explicitly using issubclass(). | 19 December 2001, 16:55:02 UTC |
5935ff0 | Fred Drake | 19 December 2001, 16:54:23 UTC | Add some additional tests that check more proxy behaviors. | 19 December 2001, 16:54:23 UTC |
2a908f6 | Fred Drake | 19 December 2001, 16:44:30 UTC | proxy_compare(): Make sure that we unwrap both objects being compared if both are proxy objects. | 19 December 2001, 16:44:30 UTC |
694ed09 | Fred Drake | 19 December 2001, 16:42:15 UTC | Fix the test control support for the pickle & cPickle tests so the tests run under regrtest. | 19 December 2001, 16:42:15 UTC |
1444f67 | Guido van Rossum | 19 December 2001, 16:38:29 UTC | The test using class initarg failed, because it was lacking a __safe_for_unpickling__ attribute. | 19 December 2001, 16:38:29 UTC |
4f5b49f | Fred Drake | 19 December 2001, 14:27:41 UTC | Make the module docstring agree with reality: the module prvides the "handler()" function, not the "handle()" function. | 19 December 2001, 14:27:41 UTC |
0d15366 | Jack Jansen | 19 December 2001, 09:24:40 UTC | When running regen for the plat directories we should use the BUILDEXT extension, not the EXT one, as regen uses the python binary in the build directory. Fixes #493959. | 19 December 2001, 09:24:40 UTC |
1fbb577 | Tim Peters | 19 December 2001, 04:41:35 UTC | SF bug #494738: binascii_b2a_base64 overwrites memory. binascii_b2a_base64(): We didn't allocate enough buffer space for very short inputs (e.g., a 1-byte input can produce a 5-byte output, but we only allocated 2 bytes). I expect that malloc overheads absorbed the overrun in practice, but computing a correct upper bound is a very simple change. | 19 December 2001, 04:41:35 UTC |
b6d14da | Tim Peters | 19 December 2001, 04:11:07 UTC | SF bug #494668: PUSH() should assert-fail on overflow. eval_frame(): Added asserts to the top of the eval loop, to verify that the eval stack pointer is in bounds, plus some comments. | 19 December 2001, 04:11:07 UTC |
81b61bd | Tim Peters | 18 December 2001, 23:22:01 UTC | TemporaryFileWrapper: fixed typo in new comment. | 18 December 2001, 23:22:01 UTC |
8d3ce5a | Martin v. Löwis | 18 December 2001, 22:36:40 UTC | Patch #494384: Disable more Unicode API if Unicode is not used. | 18 December 2001, 22:36:40 UTC |
a255a72 | Tim Peters | 18 December 2001, 22:32:40 UTC | TemporaryFileWrapper: cache the value of os.unlink for use by __del__, to prevent mysterious errors at shutdown due to "os.unlink" turning into "None.unlink". | 18 December 2001, 22:32:40 UTC |
99d2fbb | Guido van Rossum | 18 December 2001, 22:22:25 UTC | Move the helper class _closedsocket *into* the _socketobject class. This way, when a socket object is deleted after the socket module has already been zapped by module shutdown, we don't get annoying warnings about exceptions in __del__ methods. | 18 December 2001, 22:22:25 UTC |
f499b03 | Thomas Heller | 18 December 2001, 21:08:15 UTC | Recreated after source changes. | 18 December 2001, 21:08:15 UTC |
7eb48e3 | Just van Rossum | 18 December 2001, 20:15:27 UTC | Moved a bunch of routines from "blacklisted" to "graylisted", as they _are_ available in OSX (mach-o) but not in CarbonLib (neither on OSX or OS9). | 18 December 2001, 20:15:27 UTC |
c7cb9ed | Thomas Heller | 18 December 2001, 20:13:40 UTC | Second part of fix for bug [#483982] Python 2.2b2 bdist_wininst crashes. If no external zip-utility is found, the archive is created by the zipfile module, which behaves different now than in 2.1: if the zip-file is created in the root directory if the distribution, it will contain an (empty) version of itself. This triggered the above bug - so it's better to create the zip-file far away in the TMP directory. | 18 December 2001, 20:13:40 UTC |
4b1b3bf | Fred Drake | 18 December 2001, 16:32:30 UTC | Add entry for the pydoc documentation. | 18 December 2001, 16:32:30 UTC |
96be564 | Fred Drake | 18 December 2001, 16:31:44 UTC | Add documentation for the pydoc module; contributed by Ka-Ping Yee. This closes SF patch #494622. | 18 December 2001, 16:31:44 UTC |
732299f | Fred Drake | 18 December 2001, 16:31:08 UTC | Add documentation for the help() built-in; contributed by Ka-Ping Yee. This is part of SF patch #494622. | 18 December 2001, 16:31:08 UTC |
e088970 | Fred Drake | 18 December 2001, 15:51:55 UTC | Merge in Ping's changes to the cgitb documentation, and add a version annotation as well. This closes SF patch #494582. | 18 December 2001, 15:51:55 UTC |
6f4f8c7 | Jack Jansen | 18 December 2001, 15:48:28 UTC | Small change to allow for generation of QuickTime module for Windows. | 18 December 2001, 15:48:28 UTC |
620a766 | Jack Jansen | 18 December 2001, 15:39:38 UTC | Updated to Universal Headers 3.4 | 18 December 2001, 15:39:38 UTC |
f30c3ad | Just van Rossum | 18 December 2001, 12:53:47 UTC | Added missing docstring | 18 December 2001, 12:53:47 UTC |
66d78bf | Just van Rossum | 18 December 2001, 12:47:47 UTC | Added support for tab controls and initial (incomplete) support for DataBrowser controls. | 18 December 2001, 12:47:47 UTC |
8208676 | Just van Rossum | 18 December 2001, 12:35:57 UTC | Patch #494553 by Donovan Preston: initial implementation for GetEventParameter(). | 18 December 2001, 12:35:57 UTC |
4befff9 | Tim Peters | 17 December 2001, 18:26:19 UTC | initxxsubtype(): Add a comment to make the magic clearer; I doubt it's obvious to anyone except PyType_Ready's author <0.9 wink>. | 17 December 2001, 18:26:19 UTC |
a7b9b3c | Guido van Rossum | 17 December 2001, 17:25:53 UTC | Use PyType_Ready() for initialization of the ob_type field of our types (the tp_base field must be initialized prior to that call). | 17 December 2001, 17:25:53 UTC |
8efd6ce | Guido van Rossum | 17 December 2001, 17:24:43 UTC | Update comments about mpz, pointing to gmpy and mxNumber rather than to the non-existing pympz (did that ever exist?). | 17 December 2001, 17:24:43 UTC |
f884b74 | Guido van Rossum | 17 December 2001, 17:14:22 UTC | - PyType_Ready(): Initialize the ob_type field to &PyType_Type if it's NULL, so that you can call PyType_Ready() to initialize a type that is to be separately compiled with C on Windows. inherit_special(): Add a long comment explaining that you have to set tp_new if your base class is PyBaseObject_Type. | 17 December 2001, 17:14:22 UTC |
facf24b | Guido van Rossum | 17 December 2001, 16:07:06 UTC | Don't use Latex \code{...} in docstrings. | 17 December 2001, 16:07:06 UTC |
6e1c576 | Barry Warsaw | 17 December 2001, 15:40:24 UTC | Get rid of the stupid backslash in front of the column zero open paren. This was there to worm around a stupid XEmacs bug, but since I can't tickle the bug in newer XEmacsen (just tried w/21.4.5) it's possible the problem has been fixed. We shouldn't have to be working around editor bugs anyway. If it crops up again, I'll report it (again) to the XEmacs crowd. | 17 December 2001, 15:40:24 UTC |
086f7c3 | Jack Jansen | 17 December 2001, 11:47:27 UTC | There's a new include file AEInteraction.h which contains AESend and friends. | 17 December 2001, 11:47:27 UTC |
ec982e2 | Jack Jansen | 17 December 2001, 11:46:50 UTC | TickCount moved to a different header file. We manually added it back in here, for conveninece. | 17 December 2001, 11:46:50 UTC |
564980b | Sjoerd Mullender | 17 December 2001, 11:39:56 UTC | Portability fix: Not every compiler implements the extension of unescaped newlines in strings. | 17 December 2001, 11:39:56 UTC |
ca9aaf3 | Steve Purcell | 17 December 2001, 10:13:17 UTC | Synch with pyunit CVS: - Adds Fred's patch 487662: "Better error message for assertEqual" - Removed small portion of code unused after Guido's patch 490119: "Don't treat ^C as error" | 17 December 2001, 10:13:17 UTC |
33c1a88 | Guido van Rossum | 17 December 2001, 02:53:53 UTC | SF patch #493452: docstrings for staticmethod/classmethod (Skip Montanaro) (With minor adjustments.) | 17 December 2001, 02:53:53 UTC |
dd5c05f | Tim Peters | 17 December 2001, 01:27:01 UTC | David Abrahams tried to compile this as a separate DLL under MSVC, and got a barrage of compile errors that didn't make sense to the C++ brain: MSVC does not allow C (but does allow C++) initializers to contain data addresses supplied by other DLLs. So changed the initializers here to use dummy nulls, and changed module init to plug in the foreign addresses at runtime (manually simulating what C++ does by magic). Tested on Windows, and Guido tested on Linux (thanks!). BTW, the *point* is that people are going to use this module as a template for writing their own subtypes, and it's unusual for extension authors to build their extensions into Python directly (separate DLLs are the norm on Windows); so it's better if we give them a template that works <wink>. | 17 December 2001, 01:27:01 UTC |
2168e9d | Jack Jansen | 16 December 2001, 20:18:40 UTC | Adapted for Universal Headers 3.4 | 16 December 2001, 20:18:40 UTC |
b519638 | Tim Peters | 16 December 2001, 19:44:20 UTC | _PyEval_SliceIndex(): explain why a NULL argument is allowed (thanks to Guido for the revelation). | 16 December 2001, 19:44:20 UTC |
cb479e7 | Tim Peters | 16 December 2001, 19:11:44 UTC | _PyEval_SliceIndex(): Repaired the comments, and added XXX comments about its dubious treatment of NULL (also opened a bug report on that, but don't want to risk changing it this late in the 2.2 game). | 16 December 2001, 19:11:44 UTC |
0c0b530 | Fred Drake | 16 December 2001, 01:54:55 UTC | Mark the mpz module deprecated as of Python 2.2. | 16 December 2001, 01:54:55 UTC |
fc1a7ce | Tim Peters | 15 December 2001, 22:27:01 UTC | Update the example Windows extension to 2.2 (was hardcoded to 2.1). | 15 December 2001, 22:27:01 UTC |
b9c0ef5 | Fred Drake | 15 December 2001, 22:24:06 UTC | Update to reflect recently added markup. | 15 December 2001, 22:24:06 UTC |
1422e9d | Tim Peters | 15 December 2001, 22:12:47 UTC | SF patch 493739 2 Bugfixes for 2.2c1 (RISC OS specific), from Dietmar Schwertberger. Bugfix candidate. """ RISCOS/Modules/getpath_riscos.c: Include trailing '\0' when using strncpy [copy strlen(...)+1 characters]. Lib/plat-riscos/riscospath.py: Use riscosmodule.expand for os.path.abspath. [fixes problems with site.py where abspath("<Python$Dir>") returned join(os.getcwd(), "<Python$Dir>") as e.g. "SCSI::SCSI4.$.<Python$Dir>" because "<Python$Dir>" wasn't recognised as an absolute path.] """ | 15 December 2001, 22:12:47 UTC |
c577728 | Fred Drake | 15 December 2001, 20:37:40 UTC | Add a link to the mxNumber package. | 15 December 2001, 20:37:40 UTC |
b40501b | Fred Drake | 15 December 2001, 18:37:24 UTC | Add link to the gmpy project. | 15 December 2001, 18:37:24 UTC |
796e1e0 | Guido van Rossum | 15 December 2001, 18:04:10 UTC | Don't call resetwarnings(). Be more restrictive in what we filter out instead. | 15 December 2001, 18:04:10 UTC |
2b8235e | Guido van Rossum | 15 December 2001, 05:00:30 UTC | SF bug #493561: incorrect format string descrobject.c (Neal Norwitz) %300s should be %.300s, twice. | 15 December 2001, 05:00:30 UTC |
6943444 | Jack Jansen | 15 December 2001, 00:23:35 UTC | Finally CW7 allows me to replace the continually-in-need-of-updating exports files with one 6-line anti-export-file. Yeah! (Thanks Alex, for reminding me:-) | 15 December 2001, 00:23:35 UTC |
909c091 | Tim Peters | 14 December 2001, 23:16:18 UTC | Post-release fiddling -- prep for 2.2 final. | 14 December 2001, 23:16:18 UTC |
2c39115 | Just van Rossum | 14 December 2001, 23:16:04 UTC | Made event callbacks more rubust: keep an actual reference to the python callback, and do RemoveEventHandler() upon deallocation. | 14 December 2001, 23:16:04 UTC |
9635f33 | Jack Jansen | 14 December 2001, 23:03:07 UTC | Quick patch to allow building with Universal Headers 3.4. | 14 December 2001, 23:03:07 UTC |
1b8bd94 | Jack Jansen | 14 December 2001, 23:01:34 UTC | The import of the scanner can also fail, cater for that. | 14 December 2001, 23:01:34 UTC |
28f1401 | Jack Jansen | 14 December 2001, 22:58:11 UTC | We have strdup(), but not its prototype:-( | 14 December 2001, 22:58:11 UTC |
031b779 | Jack Jansen | 14 December 2001, 22:57:34 UTC | Use getcwd(), not silly old getwd(). | 14 December 2001, 22:57:34 UTC |
08d752c | Fred Drake | 14 December 2001, 22:55:14 UTC | Update to use the notice environment so a multi-paragraph note can be appropriately marked. | 14 December 2001, 22:55:14 UTC |
75401a0 | Jack Jansen | 14 December 2001, 22:53:16 UTC | Updated for CW7 | 14 December 2001, 22:53:16 UTC |
591dd8f | Fred Drake | 14 December 2001, 22:52:41 UTC | Update information about __del__() & reference cycles for CPython. This partially fixes SF bug #492619. Fix a typo & use the new notice environment instead of (ab)using the \note and \warning macros. | 14 December 2001, 22:52:41 UTC |
8493771 | Jack Jansen | 14 December 2001, 22:50:26 UTC | Updated to CodeWarrior Pro 7. | 14 December 2001, 22:50:26 UTC |
6ca3377 | Fred Drake | 14 December 2001, 22:50:06 UTC | Add a new environment for whole-paragraph (or longer) notes & warnings. | 14 December 2001, 22:50:06 UTC |
615e250 | Jack Jansen | 14 December 2001, 22:47:19 UTC | Many of the new calls are Carbon-only. Flagged them as such. | 14 December 2001, 22:47:19 UTC |
f839c27 | Jack Jansen | 14 December 2001, 21:28:53 UTC | Added test_socketserver and test_unicode_file to tests expected to be skipped on Mac OS X. Not sure yet about test_locale.py: this may be due to my copy of Mac OS X (although it talks english fine enough). | 14 December 2001, 21:28:53 UTC |
dda7dcb | Fred Drake | 14 December 2001, 21:19:08 UTC | Add a missing "cycle". | 14 December 2001, 21:19:08 UTC |
0655745 | Barry Warsaw | 14 December 2001, 20:47:12 UTC | Merge last minute 2.2c1 changes from branch to trunk. | 14 December 2001, 20:47:12 UTC |
7675097 | Barry Warsaw | 14 December 2001, 20:34:20 UTC | send(), ehlo(): Integrate patch #487310 by Fazal Majid. Consistently call self.close() just before raising SMTPServerDisconnected. This allows you to, e.g. reconnect after a server timeout. Merged from the 2.2c1 branch. | 14 December 2001, 20:34:20 UTC |
19554f6 | Barry Warsaw | 14 December 2001, 20:30:23 UTC | As usual, bump the version number. | 14 December 2001, 20:30:23 UTC |
6c01e25 | Fred Drake | 14 December 2001, 17:08:12 UTC | Note the tighter complex() parameter checking. | 14 December 2001, 17:08:12 UTC |
b062cb2 | Fred Drake | 14 December 2001, 16:57:31 UTC | Work around the problem of spaces after a "}" being dropped by LaTeX2HTML if they were represented by newlines in the document source. Partially fixes SF bug #493243. | 14 December 2001, 16:57:31 UTC |
e27f868 | Fred Drake | 14 December 2001, 16:54:53 UTC | The valign attribute to control the vertical alignment of a table cell should be on the <tr> element, not the <table> element. Partially fixes SF bug #493243. | 14 December 2001, 16:54:53 UTC |
e6965cd | Fred Drake | 14 December 2001, 16:45:04 UTC | Bump version numbers for the trunk. | 14 December 2001, 16:45:04 UTC |
7b82271 | Fred Drake | 14 December 2001, 16:42:56 UTC | Reflect change of Digital Creations to Zope Corporation. | 14 December 2001, 16:42:56 UTC |
2a05bc7 | Jeremy Hylton | 14 December 2001, 16:15:11 UTC | Partial fix for problem in SF buf #487458 Rev 1.20 introduced a call to getpeername() in the dispatcher constructor. This only works for a connected socket. Apparently earlier versions of the code worked with un-connected sockets, e.g. a listening socket. It's not clear that the code is supposed to accept these sockets, because it sets self.connected = 1 when passed a socket. But it's also not clear that it should be a fatal error to pass a listening socket. The solution, for now, is to put a try/except around the getpeername() call and continue if it fails. The self.addr attribute is used primarily (only?) to produce a nice repr for the object, so it hardly matters. If there is a real error on a connected socket, it's likely that subsequent calls will fail too. | 14 December 2001, 16:15:11 UTC |
81feb6c | Jack Jansen | 14 December 2001, 14:31:15 UTC | Add default values for options in the class init routine, not in the convenience wrapper function: distutils uses the class directly. Fixes bug #492665. | 14 December 2001, 14:31:15 UTC |
e54616c | Guido van Rossum | 14 December 2001, 04:19:56 UTC | (Merge into trunk.) Fix for SF bug #492345. (I could've sworn I checked this in, but apparently I didn't!) This code: class Classic: pass class New(Classic): __metaclass__ = type attempts to create a new-style class with only classic bases -- but it doesn't work right. Attempts to fix it so it works caused problems elsewhere, so I'm now raising a TypeError in this case. | 14 December 2001, 04:19:56 UTC |
7ec1c85 | Just van Rossum | 13 December 2001, 21:24:37 UTC | - "manage" controls created by CreateXxxXxxControl() functions. - FindControlUnderMouse() returns an existing control, not a new one. | 13 December 2001, 21:24:37 UTC |
f36cfef | Jeremy Hylton | 13 December 2001, 20:00:26 UTC | Undo inadvertent change to test_scope in previous checkin | 13 December 2001, 20:00:26 UTC |
68773e7 | Fred Drake | 13 December 2001, 19:57:53 UTC | Add a comment explaining what these tests are for, and where to look for tests of complex(). | 13 December 2001, 19:57:53 UTC |
61f649d | Jeremy Hylton | 13 December 2001, 19:53:26 UTC | For the exec-free var bug. | 13 December 2001, 19:53:26 UTC |
526c7a0 | Fred Drake | 13 December 2001, 19:52:22 UTC | Ensure that complex() only accepts a string argument as the first arg, and only if there is no second arg. This closes SF patch #479551. | 13 December 2001, 19:52:22 UTC |
733c893 | Jeremy Hylton | 13 December 2001, 19:51:56 UTC | Fix for SF bug [ #492403 ] exec() segfaults on closure's func_code Based on the patch from Danny Yoo. The fix is in exec_statement() in ceval.c. There are also changes to introduce use of PyCode_GetNumFree() in several places. | 13 December 2001, 19:51:56 UTC |
3095a4c | Jeremy Hylton | 13 December 2001, 19:47:51 UTC | Update output generated by test_scope | 13 December 2001, 19:47:51 UTC |
12ce485 | Jeremy Hylton | 13 December 2001, 19:47:02 UTC | Add helper macro to get the number of free variables for a PyCodeObject. | 13 December 2001, 19:47:02 UTC |
ccae837 | Jeremy Hylton | 13 December 2001, 19:45:04 UTC | Add test for SF bug [ #492403 ] exec() segfaults on closure's func_code | 13 December 2001, 19:45:04 UTC |
6272dfd | Tim Peters | 13 December 2001, 19:34:00 UTC | Update Windows buildno for 2.2c1. Update 2.2c1 release data in NEWS. | 13 December 2001, 19:34:00 UTC |
5f29319 | Fred Drake | 13 December 2001, 17:20:32 UTC | Replace the "Cookbook approach" with the approach documented in PC/example_nt/readme.txt; this one does not rely on any external scripts. This "fixes" SF bug #221671 and most of SF bug #225003. | 13 December 2001, 17:20:32 UTC |
0441dbf | Just van Rossum | 13 December 2001, 17:11:21 UTC | OSX workaround: don't crash if the extentions folder can't be found. Not sure how to properly solve this. | 13 December 2001, 17:11:21 UTC |
e9039b1 | Just van Rossum | 13 December 2001, 13:41:36 UTC | build CoreGraphics under darwin | 13 December 2001, 13:41:36 UTC |
4f6c058 | Just van Rossum | 13 December 2001, 13:40:04 UTC | include the proper header for Mach-O | 13 December 2001, 13:40:04 UTC |
663dd79 | Just van Rossum | 13 December 2001, 13:22:46 UTC | added CoreGraphics to build list | 13 December 2001, 13:22:46 UTC |
11ccf3c | Just van Rossum | 13 December 2001, 13:21:38 UTC | added non-support for CoreGraphics... | 13 December 2001, 13:21:38 UTC |
d7fdba3 | Just van Rossum | 13 December 2001, 13:20:00 UTC | project file for CoreGraphics | 13 December 2001, 13:20:00 UTC |
79e71f7 | Just van Rossum | 13 December 2001, 13:17:20 UTC | second CoreGraphics batch | 13 December 2001, 13:17:20 UTC |
c97eefc | Just van Rossum | 13 December 2001, 13:15:28 UTC | first checkin for CoreGraphics | 13 December 2001, 13:15:28 UTC |
d16199a | Just van Rossum | 13 December 2001, 12:58:09 UTC | fixed typo in my email address | 13 December 2001, 12:58:09 UTC |