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

sort by:
Revision Author Date Message Commit Date
50d9fb2 Backport Fred's checkin 2.29: Correct the sense of a couple of conditional compilations -- used #ifndef when #ifdef was needed. This closes (reallu!) SF bug #417418. 23 May 2001, 11:32:06 UTC
cfe4df1 Add a list of mapping interface methods which are not supported by rfc822.Message (per Barry's comments). 22 May 2001, 15:17:12 UTC
47237c7 Add some clarifications about the mapping interface presented by rfc822.Message objects, based on comments from Barry. 22 May 2001, 14:37:18 UTC
ecf8ca8 Update output to reflect additional precision produced by the repr() of floating point numbers in an interactive example. This closes SF bug #419434. 21 May 2001, 17:02:57 UTC
634f45a Add documentation for Py_Main() and PyThreadState_GetDict(). 21 May 2001, 15:58:54 UTC
cd2f28d Typo: "that" --> "than" This closes SF bug #425320. 21 May 2001, 15:04:28 UTC
38665ca Fix bug in smtplib example: the prompt said to end the message with ^D, but doing so raised EOFError. This makes it work as advertised and converts to string methods where reasonable. This closes SF bug #424776. 20 May 2001, 13:35:45 UTC
964aa1d Make sure we include all of Python's numeric types in the data model description, so that the introduction of complex is not a surprise. This closes SF bug #423429. 14 May 2001, 16:04:57 UTC
db669a9 the usual... 11 May 2001, 16:35:03 UTC
6963b15 Migrate the last few revisions from the head to the bugfix branch -- these have all been portability fixes and improving the consistency of how file descriptors and file objects are handled. 11 May 2001, 16:34:23 UTC
1135d3d Add a check for sys/modem.h, needed by termios on HP-UX. 11 May 2001, 16:21:06 UTC
cd7d2d0 Fix typo in weakref.proxy() documentation. This closes SF bug #423087. 10 May 2001, 17:23:10 UTC
90fe272 Remove all mentions of the strop module -- it has been pronounced Evil. (The string "strop" is found in the rexec documentation, but that should not be changed until strop is actually removed or rexec no longer allows it.) 10 May 2001, 15:13:39 UTC
879040a Fix typo reported by David Goodger. This closes SF patch #422383. 10 May 2001, 15:10:17 UTC
8ee94e6 Itamar Shtull-Trauring <python@itamarst.org>: Updates zipfile.ZipFile docs to mention the fact that you can create a ZipFile instance from an arbitrary file-like object. This closes patch #418011. 09 May 2001, 19:57:50 UTC
62648d1 Three uses of makesockaddr() used sockaddr buffers that had not be cleared; this could cause invalid paths to be returned for AF_UNIX sockets on some platforms (including FreeBSD 4.2-RELEASE), appearantly because there is no assurance that the address will be nul-terminated when filled in by the kernel. This closes SF bug #416573. 09 May 2001, 19:13:40 UTC
2db09cc Update build notes for Mac OS X 10.0. This closes SF bug #416530. 09 May 2001, 18:13:29 UTC
4a64db9 Fix the operator precedence table: exponentiation binds tighter than negation. This closes SF bug #421999. 09 May 2001, 16:53:19 UTC
cf26a46 Update the directory names to match changes at SourceForge. 09 May 2001, 16:26:36 UTC
b1c3c9e Work around limitations of the module synopsis table generation to avoid leaking LaTeX2HTML's internal string munging. This fixes SF bug #420399. 09 May 2001, 15:52:56 UTC
ecf6f59 Job.build_html(): Be more robust in ensuring about.html exists; copying the right HTML file to the name about.html is needed even if the --numeric option was not given -- some other name may have been assigned due to some non-determinism in the algorithm use to perform name allocation. ;-( This closes the "About..." portion of SF bug #420216. 09 May 2001, 04:04:11 UTC
c117d1a There is no IMAP class in the imaplib module; the class is IMAP4. There is no imap module; refer to imaplib instead, since it exists. Move the "See Also:" section in front of the sub-sections, for consistency with other portions of the library reference. This closes the library reference portion of SF bug #420216. 09 May 2001, 03:57:01 UTC
c6cddfa Note that when inplace=1 existing backup files will be removed silently. Closes SF bug #420230. 09 May 2001, 03:26:11 UTC
f45d8c8 Make the license GPL-compatible. 04 May 2001, 18:55:39 UTC
41a3966 The weakref support in PyObject_InitVar() as well; this should have come out at the same time as it did from PyObject_Init() . 03 May 2001, 20:04:49 UTC
03d8554 Remove unnecessary intialization for the case of weakly-referencable objects; the code necessary to accomplish this is simpler and faster if confined to the object implementations, so we only do this there. This causes no behaviorial changes beyond a (very slight) speedup. 03 May 2001, 19:45:34 UTC
1541e78 Correct two floating-point representations printed by the interpreter in interactive examples. Error noted by Dinu Gherman. 25 April 2001, 20:59:47 UTC
e9ecb6f Update publish-to-SourceForge scripts to automatically determine if the branch is the head (development) branch or a maintenance brach, and use the appropriate target directory for each. 22 April 2001, 06:19:29 UTC
1d0b183 Only document <file>.xreadlines() once; added version annotation. This closes SF bug #417943 (in the maintenance branch). 22 April 2001, 01:58:00 UTC
a3d6ad8 Fix a number of minor markup errors. 21 April 2001, 05:56:39 UTC
90a012b The (fairly recent) \textasciicircum is not supported by LaTeX2HTML; add support for it here. 21 April 2001, 05:56:28 UTC
8d84e0d Add versioning notes: many of the signatures changed to allow the time used to be omitted (meaning use the current time) as of Python 2.1. Users who need cross-version portability need to know things like this. 19 April 2001, 04:55:57 UTC
10f039b Cut-&-paste-o noted by Wolfgang Teschner: decompressobj() returns *DE*compression objects, not compression objects! 18 April 2001, 20:17:23 UTC
76aee9f Add description of the "explanation" optional parameter added to the \versionadded macro. I originally thought this should not be merged into the 2.1 maintenance branch, but reconsidered: documentation changes may actually *use* the new version of the markup, so the lack of this markup variant can reasonably be considered a bug. 18 April 2001, 17:32:45 UTC
ad1ecbe \versionadded: Add support for including an explanatory note along with the versioning information, similar to \versionchanged. 18 April 2001, 17:30:26 UTC
a712f02 Added support for optional explanation parameter to the \versionadded macro. Refactored do_cmd_versionadded() and do_cmd_versionchanged() to do most of the work in a helper function, with the do_cmd_*() wrappers just supplying a portion of the replacement text. 18 April 2001, 17:29:14 UTC
41c71e6 Suggestion from Keith Briggs: refer to RE objects consistently instead of introducing a new term ("regex") without defining it. 18 April 2001, 17:27:10 UTC
4d99ab4 Update version numbers for the maintenance branch of the documentation. 18 April 2001, 05:24:30 UTC
6a0df4f Make a number of small clarifications and correct a whole bunch of typos, all reported by Bruce Smith. 18 April 2001, 05:14:32 UTC
d51dd03 Add note about the version in which GetoptError was added -- this can bite people interested in 1.5.2 compatibility. 18 April 2001, 03:27:13 UTC
9e0595e Set the version number to 2.1.1a1. This checkin inaugurates the release21-maint branch. 17 April 2001, 15:19:29 UTC
a839747 This commit was manufactured by cvs2svn to create branch 'release21-maint'. 17 April 2001, 15:19:29 UTC
2fb17ba This commit was manufactured by cvs2svn to create tag 'release21'. 16 April 2001, 18:46:45 UTC
ffe13be Noted what's new in 2.1 (final). Hopefully this is the last checkin for 2.1! 16 April 2001, 18:46:45 UTC
5030cf1 Fix three PyChecker-detected gotchas. Import OPT_ symbols from _symtable. Define has_exec() and has_import_star(). 16 April 2001, 18:43:18 UTC
4345476 Export three optimization (fast locals) flags 16 April 2001, 18:42:13 UTC
dd37dac Update Windows installer & buildno for 2.1 final. 16 April 2001, 18:20:30 UTC
a490d58 In walk(), don't die when os.lstat() raises os.error, e.g. because a file was deleted by a previous call to the visitor function. This used to be the behavior in 1.5.2 and before, but a patch to avoid making two stat() calls accidentally broke this in 2.0. Moshe, this would be a good one for 2.0.1 too! 16 April 2001, 18:12:04 UTC
95f301f Update the version to 2.1final (again :-). 16 April 2001, 17:51:43 UTC
a0a4ab1 Add a test case for Weak*Dictionary.update() that would have caught a recently reported bug; also exposed some other bugs in the implementation. 16 April 2001, 17:37:27 UTC
1d9e4b7 Weak*Dictionary.update(): Fix calls to [].append() to only have one parameter. Weak*Dictionary.get(): Make the second parameter optional. WeakKeyDictionary.has_key(), .keys(): Make these actually work! 16 April 2001, 17:34:48 UTC
67addfe Implement Mark Favas's suggestion. There's a clear bug in _group(): its first return statement returns a single value while its caller always expects it to return a tuple of two items. Fix this by returning (s, 0) instead. This won't make the locale test on Irix succeed, but now it will fail because of a bug in the platform's en_US locale rather than because of a bug in the locale module. 16 April 2001, 16:04:10 UTC
1fcd438 Update document for the actual 2.1rc1 16 April 2001, 02:27:53 UTC
8c83ec6 This commit was manufactured by cvs2svn to create tag 'r21c2'. 16 April 2001, 02:07:08 UTC
16e809e This is (hopefully) last checkin before releasing 2.1c2 -- get rid of trailing whitespace. 16 April 2001, 02:07:08 UTC
5b08f13 Added news for 2.1c2. Greatly updated news for 2.1c1 (!). 16 April 2001, 02:05:23 UTC
b093166 Update Windows installer & build number to 2.1c2 release. 16 April 2001, 01:44:08 UTC
a7a391c We need another release candidate after so many "small" changes. DO NOT CHECK ANYTHHING IN FROM NOW ON WITHOUT ASKING ME. 16 April 2001, 00:33:29 UTC
42f92da Change the test data to ask for class C from module __main__ rather than from module pickletester. Using the latter turned out to cause the test to break when invoked as "import test.test_pickle" or "import test.autotest". 16 April 2001, 00:28:21 UTC
13324e1 Reverting Moshe's EGD patch *and* Martin's patch to make it work with OpenSSL versions beore 0.9.5. This just is too experimental to be worth it, especially since the user would have to do some severe hacking of the Modules/Setup file to even enable the EGD code, and without the EGD code it would always spit out a warning on some systems -- even when socket.ssl() is not used. Fixing that properly is not my job; the EGD patch is clearly not so important that it should hold up the 2.1 release. 16 April 2001, 00:21:33 UTC
e04eaec Tim pointed out a remaining vulnerability in popitem(): the PyTuple_New() could *conceivably* clear the dict, so move the test for an empty dict after the tuple allocation. It means that we waste time allocating and deallocating a 2-tuple when the dict is empty, but who cares. It also means that when the dict is empty *and* there's no memory to allocate a 2-tuple, we raise MemoryError, not KeyError -- but that may actually a good idea: if there's no room for a lousy 2-tuple, what are the chances that there's room for a KeyError instance? 16 April 2001, 00:02:32 UTC
a4dd011 Tentative fix for a problem that Tim discovered at the last moment, and reported to python-dev: because we were calling dict_resize() in PyDict_Next(), and because GC's dict_traverse() uses PyDict_Next(), and because PyTuple_New() can cause GC, and because dict_items() calls PyTuple_New(), it was possible for dict_items() to have the dict resized right under its nose. The solution is convoluted, and touches several places: keys(), values(), items(), popitem(), PyDict_Next(), and PyDict_SetItem(). There are two parts to it. First, we no longer call dict_resize() in PyDict_Next(), which seems to solve the immediate problem. But then PyDict_SetItem() must have a different policy about when *it* calls dict_resize(), because we want to guarantee (e.g. for an algorithm that Jeremy uses in the compiler) that you can loop over a dict using PyDict_Next() and make changes to the dict as long as those changes are only value replacements for existing keys using PyDict_SetItem(). This is done by resizing *after* the insertion instead of before, and by remembering the size before we insert the item, and if the size is still the same, we don't bother to even check if we might need to resize. An additional detail is that if the dict starts out empty, we must still resize it before the insertion. That was the first part. :-) The second part is to make keys(), values(), items(), and popitem() safe against side effects on the dict caused by allocations, under the assumption that if the GC can cause arbitrary Python code to run, it can cause other threads to run, and it's not inconceivable that our dict could be resized -- it would be insane to write code that relies on this, but not all code is sane. Now, I have this nagging feeling that the loops in lookdict probably are blissfully assuming that doing a simple key comparison does not change the dict's size. This is not necessarily true (the keys could be class instances after all). But that's a battle for another day. 15 April 2001, 22:16:26 UTC
0aa30b0 SF bug reporters. 15 April 2001, 20:48:27 UTC
b8bf3be Fix SF bug [ #416231 ] urllib.basejoin fails to apply some ../. Reported by Juan M. Bello Rivas. 15 April 2001, 20:47:33 UTC
9c7eab8 SRE: made "copyright" string static, to avoid potential linking conflicts. 15 April 2001, 19:00:58 UTC
e697091 Patch by Mark Favas to ensure that the zlib we find is 1.1.3 or later. This assumes that zlib.h has a line of the form #define ZLIB_VERSION "1.1.3" This solves the problem where a zlib installation is found but it is an older version -- this would break the build, while a better solution is to simply ignore that zlib installation. 15 April 2001, 15:16:12 UTC
2b5ff07 Get rid of the seek() method on the _Mailbox class. This was a cut-and-paste copy of the seek() method on the _Subfile class, but it didn't make one bit of sense: it sets self.pos, which is not used in this class or its subclasses, and it uses self.start and self.stop, which aren't defined on this class or its subclasses. This is purely my own fault -- I added this in rev 1.4 and apparently never tried to use it. Since it's not documented, and of very questionable use given that there's no tell(), I'm ripping it out. This resolves SF bug 416199 by Andrew Dalke: mailbox.py seek problems. 15 April 2001, 13:32:27 UTC
fc34986 In order to make this test work on Windows, the test locale has to be set to 'en' there -- Windows does not understand the 'en_US' locale. The test succeeds there. 15 April 2001, 13:15:56 UTC
2d996c0 Fix typo (missing "req." prefix on error_302_dict) found by Neil Norwitz's PyChecker. 15 April 2001, 13:08:01 UTC
b8b45ea Fix typo in exception name (UnimplementedError should be NotImplementedError) found by Neil Norwitz's PyChecker. 15 April 2001, 13:06:04 UTC
74cde5b Fix typo in exception name (SGMLParserError should be SGMLParseError) found by Neil Norwitz's PyChecker. 15 April 2001, 13:01:41 UTC
815bee4 Fix typo in attribute name (file should be filename) found by Neil Norwitz's PyChecker. 15 April 2001, 12:51:42 UTC
0d1b7ea Fix typo in attribute name (chunk_size should be chunksize) found by Neil Norwitz's PyChecker. 15 April 2001, 12:40:13 UTC
ab0648f - Typo in message for TestCase.failIfEqual() - Removed unused variable 'opts' in TestProgram.__init__ (thanks to PyChecker) 15 April 2001, 09:18:32 UTC
f3ee46b Set the SO_REUSEADDR socket option in the server thread -- this seems needed on some platforms (e.g. Solaris 8) when the test is run twice in quick succession. 15 April 2001, 00:42:13 UTC
3fee304 Bump version number and set date. 14 April 2001, 18:36:03 UTC
cd0ed97 Remove shared libraries as part of "make clean" rather than in "make clobber". This is done so that after a "make clean", setup.py will also recompile all extensions. 14 April 2001, 17:57:07 UTC
6b356e7 Make one more private symbol static. 14 April 2001, 17:55:41 UTC
f68d8e5 Make some private symbols static. 14 April 2001, 17:55:09 UTC
f85af61 Mark Favas points out that there's an 'self.fp.flush()' call in the ZipFile.close() method that should be part of the preceding 'if' block. On some platforms (Mark noticed this on FreeBSD 4.2) doing a flush() on a file open for reading is not allowed. 14 April 2001, 16:45:14 UTC
3024bb6 Another ACK. 14 April 2001, 16:17:31 UTC
b61914d Pete Shinners discovered that zipfile.ZipFile() is called with mode argument "wb", while the only valid modes are "r", "w" or "a". Fix this by changing the mode to "w". 14 April 2001, 16:17:00 UTC
3c1858a Should resolve [ #416039 ] pstats browser crashes. 14 April 2001, 15:16:05 UTC
9df3eab Add "import thread" at the top of the module; this prevents us from failing later when Python is compiled without threading but a failing 'threading' module can be imported due to an earlier (caught) attempt. 14 April 2001, 14:35:43 UTC
7be8ca0 Add more general warning against the SGI optimizer. 14 April 2001, 13:09:53 UTC
b891891 If the sunaudiodev module is available but we cannot find an audio device to use, skip this test instead of allowing an error to occur when we attempt to play sound on the absent device. Verified by Mark Favas. 14 April 2001, 03:10:12 UTC
9cb9857 Import readline when possible to make the commaninterpreter UI nicer. 14 April 2001, 01:48:41 UTC
00833d5 This commit was manufactured by cvs2svn to create tag 'r21c1'. 13 April 2001, 19:41:28 UTC
859d9b5 Tim convinced me to augment the PSF license with a final clause just like the one in the BeOpen license (and similar to the one in the CNRI license, but with the "click-to-accept" part elided). 13 April 2001, 19:41:28 UTC
b0e51b2 Clean up the unsightly mess around the readline header files. We now always: - #undef HAVE_CONFIG_H (because otherwise chardefs.h tries to include strings.h) - #include readline.h and history.h and we never declare any readline function prototypes ourselves. This makes it compile with readline 4.2, albeit with a few warnings. Some of the remaining warnings are about completion_matches(), which is renamed to rl_completion_matches(). I've tested it with various other versions, from 2.0 up, and they all seem to work (some with warnings) -- but only on Red Hat Linux 6.2. Fixing the warnings for readline 4.2 would break compatibility with 3.0 (and maybe even earlier versions), and readline doesn't seem to have a way to test for its version at compile time, so I'd rather leave the warnings in than break compilation with older versions. 13 April 2001, 18:14:27 UTC
fc4ee0a Add convenience targets that build all archive types for single formatting versions. 13 April 2001, 18:00:23 UTC
8d00a0f Michael Hudson: Update docs for PyDict_Next() based on the most recent changes to the dictionary code. This closes SF patch #409864. 13 April 2001, 17:55:02 UTC
058dae3 I am TENTATIVELY checking in Martin von Loewis's patch for the SSL problem reported by Neil Schemenauer on python-dev on 4/12/01, wth subject "Problem with SSL and socketmodule on Debian Potato?". It's tentative because Moshe objected, but Martin rebutted, and Moshe seems unavailable for comments. (Note that with OpenSSL 0.9.6a, I get a lot of compilation warnings for socketmodule.c -- I'm assuming I can safely ignore these until 2.1 is released.) 13 April 2001, 17:54:04 UTC
37832f0 split long line 13 April 2001, 17:50:20 UTC
0c4d468 Fixup some platform annotations. 13 April 2001, 17:37:00 UTC
2441366 Work around the conversion of ">>" and "<<" to guillemets. Reported by Ping. 13 April 2001, 17:32:49 UTC
c054c75 Work around the conversion of ">>" and "<<" to guillemets. Reported by Ping. 13 April 2001, 17:25:38 UTC
705088e Added regression test for SF bug #415660 (failure to invalidate all references to an object before calling registered callbacks). Change last uses of verify() to self.assert_(). 13 April 2001, 17:18:15 UTC
2a5a5ca cleanup_helper(): Make sure we invalidate all reference objects before calling any callbacks. This is important since the callback objects only look at themselves to determine that they are invalide. This change avoids a segfault when callbacks use a different reference to an object in the process of being deallocated. This fixes SF bug #415660. 13 April 2001, 17:15:47 UTC
eb0d992 Slight adaptation of Michael Hudson's patch to test PyDict_Next() (with modification of existing dict elements!). This is part of SF patch #409864: lazy fix for Pings bizarre scoping crash. The adaptation I made to Michael's patch was to change the error handling to avoid masking other errors (moving the specific error message to inside test_dict_inner()), and to insert a test for dict==NULL at the start. 13 April 2001, 17:08:15 UTC
back to top