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

sort by:
Revision Author Date Message Commit Date
4ebde09 Fix a typo 19 December 2001, 20:44:13 UTC
1c4523f More cygwin news. This section is getting a bit long. Oh well. 19 December 2001, 19:49:58 UTC
500bd03 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 Add test for pickling new-style class with custom metaclass. 19 December 2001, 16:58:54 UTC
f831429 Fix for SF bug #494904: Cannot pickle a class with a metaclass, reported by Dan Parisien. 19 December 2001, 16:57:36 UTC
950dce6 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 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 Add some additional tests that check more proxy behaviors. 19 December 2001, 16:54:23 UTC
2a908f6 proxy_compare(): Make sure that we unwrap both objects being compared if both are proxy objects. 19 December 2001, 16:44:30 UTC
694ed09 Fix the test control support for the pickle & cPickle tests so the tests run under regrtest. 19 December 2001, 16:42:15 UTC
1444f67 The test using class initarg failed, because it was lacking a __safe_for_unpickling__ attribute. 19 December 2001, 16:38:29 UTC
4f5b49f 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 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 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 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 TemporaryFileWrapper: fixed typo in new comment. 18 December 2001, 23:22:01 UTC
8d3ce5a Patch #494384: Disable more Unicode API if Unicode is not used. 18 December 2001, 22:36:40 UTC
a255a72 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 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 Recreated after source changes. 18 December 2001, 21:08:15 UTC
7eb48e3 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 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 Add entry for the pydoc documentation. 18 December 2001, 16:32:30 UTC
96be564 Add documentation for the pydoc module; contributed by Ka-Ping Yee. This closes SF patch #494622. 18 December 2001, 16:31:44 UTC
732299f 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 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 Small change to allow for generation of QuickTime module for Windows. 18 December 2001, 15:48:28 UTC
620a766 Updated to Universal Headers 3.4 18 December 2001, 15:39:38 UTC
f30c3ad Added missing docstring 18 December 2001, 12:53:47 UTC
66d78bf Added support for tab controls and initial (incomplete) support for DataBrowser controls. 18 December 2001, 12:47:47 UTC
8208676 Patch #494553 by Donovan Preston: initial implementation for GetEventParameter(). 18 December 2001, 12:35:57 UTC
4befff9 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 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 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 - 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 Don't use Latex \code{...} in docstrings. 17 December 2001, 16:07:06 UTC
6e1c576 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 There's a new include file AEInteraction.h which contains AESend and friends. 17 December 2001, 11:47:27 UTC
ec982e2 TickCount moved to a different header file. We manually added it back in here, for conveninece. 17 December 2001, 11:46:50 UTC
564980b Portability fix: Not every compiler implements the extension of unescaped newlines in strings. 17 December 2001, 11:39:56 UTC
ca9aaf3 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 SF patch #493452: docstrings for staticmethod/classmethod (Skip Montanaro) (With minor adjustments.) 17 December 2001, 02:53:53 UTC
dd5c05f 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 Adapted for Universal Headers 3.4 16 December 2001, 20:18:40 UTC
b519638 _PyEval_SliceIndex(): explain why a NULL argument is allowed (thanks to Guido for the revelation). 16 December 2001, 19:44:20 UTC
cb479e7 _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 Mark the mpz module deprecated as of Python 2.2. 16 December 2001, 01:54:55 UTC
fc1a7ce Update the example Windows extension to 2.2 (was hardcoded to 2.1). 15 December 2001, 22:27:01 UTC
b9c0ef5 Update to reflect recently added markup. 15 December 2001, 22:24:06 UTC
1422e9d 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 Add a link to the mxNumber package. 15 December 2001, 20:37:40 UTC
b40501b Add link to the gmpy project. 15 December 2001, 18:37:24 UTC
796e1e0 Don't call resetwarnings(). Be more restrictive in what we filter out instead. 15 December 2001, 18:04:10 UTC
2b8235e SF bug #493561: incorrect format string descrobject.c (Neal Norwitz) %300s should be %.300s, twice. 15 December 2001, 05:00:30 UTC
6943444 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 Post-release fiddling -- prep for 2.2 final. 14 December 2001, 23:16:18 UTC
2c39115 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 Quick patch to allow building with Universal Headers 3.4. 14 December 2001, 23:03:07 UTC
1b8bd94 The import of the scanner can also fail, cater for that. 14 December 2001, 23:01:34 UTC
28f1401 We have strdup(), but not its prototype:-( 14 December 2001, 22:58:11 UTC
031b779 Use getcwd(), not silly old getwd(). 14 December 2001, 22:57:34 UTC
08d752c Update to use the notice environment so a multi-paragraph note can be appropriately marked. 14 December 2001, 22:55:14 UTC
75401a0 Updated for CW7 14 December 2001, 22:53:16 UTC
591dd8f 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 Updated to CodeWarrior Pro 7. 14 December 2001, 22:50:26 UTC
6ca3377 Add a new environment for whole-paragraph (or longer) notes & warnings. 14 December 2001, 22:50:06 UTC
615e250 Many of the new calls are Carbon-only. Flagged them as such. 14 December 2001, 22:47:19 UTC
f839c27 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 Add a missing "cycle". 14 December 2001, 21:19:08 UTC
0655745 Merge last minute 2.2c1 changes from branch to trunk. 14 December 2001, 20:47:12 UTC
7675097 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 As usual, bump the version number. 14 December 2001, 20:30:23 UTC
6c01e25 Note the tighter complex() parameter checking. 14 December 2001, 17:08:12 UTC
b062cb2 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 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 Bump version numbers for the trunk. 14 December 2001, 16:45:04 UTC
7b82271 Reflect change of Digital Creations to Zope Corporation. 14 December 2001, 16:42:56 UTC
2a05bc7 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 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 (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 - "manage" controls created by CreateXxxXxxControl() functions. - FindControlUnderMouse() returns an existing control, not a new one. 13 December 2001, 21:24:37 UTC
f36cfef Undo inadvertent change to test_scope in previous checkin 13 December 2001, 20:00:26 UTC
68773e7 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 For the exec-free var bug. 13 December 2001, 19:53:26 UTC
526c7a0 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 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 Update output generated by test_scope 13 December 2001, 19:47:51 UTC
12ce485 Add helper macro to get the number of free variables for a PyCodeObject. 13 December 2001, 19:47:02 UTC
ccae837 Add test for SF bug [ #492403 ] exec() segfaults on closure's func_code 13 December 2001, 19:45:04 UTC
6272dfd Update Windows buildno for 2.2c1. Update 2.2c1 release data in NEWS. 13 December 2001, 19:34:00 UTC
5f29319 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 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 build CoreGraphics under darwin 13 December 2001, 13:41:36 UTC
4f6c058 include the proper header for Mach-O 13 December 2001, 13:40:04 UTC
663dd79 added CoreGraphics to build list 13 December 2001, 13:22:46 UTC
11ccf3c added non-support for CoreGraphics... 13 December 2001, 13:21:38 UTC
d7fdba3 project file for CoreGraphics 13 December 2001, 13:20:00 UTC
79e71f7 second CoreGraphics batch 13 December 2001, 13:17:20 UTC
c97eefc first checkin for CoreGraphics 13 December 2001, 13:15:28 UTC
d16199a fixed typo in my email address 13 December 2001, 12:58:09 UTC
back to top