https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
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
361c535 Fix typo in comment (the module is now called _testcapi, not _test). 13 April 2001, 17:03:04 UTC
c76770c Change error message raised when free variable is not yet bound. It now raises NameError instead of UnboundLocalError, because the var in question is definitely not local. (This affects test_scope.py) Also update the recent fix by Ping using get_func_name(). Replace tests of get_func_name() return value with call to get_func_desc() to match all the other uses. 13 April 2001, 16:51:46 UTC
62effc1 Work around the conversion of ">>" and "<<" to guillemets. Reported by Ping. 13 April 2001, 15:55:25 UTC
fb8ffe6 Work around the conversion of ">>" and "<<" to guillemets. Reported by Ping. Wrap some long lines and fix some markup nits. 13 April 2001, 15:54:41 UTC
d9994e0 Patch by Ping (SF bug 415879, Exception.__init__() causes segfault): Calling an unbound method on a C extension class without providing an instance can yield a segfault. Try "Exception.__init__()" or "ValueError.__init__()". This is a simple fix. The error-reporting bits in call_method mistakenly treat the misleadingly-named variable "func" as a function, when in fact it is a method. If we let get_func_name take care of the work, all is fine. 13 April 2001, 15:42:40 UTC
d03f8fe One-character style change to appease Netscape stylesheets. 13 April 2001, 15:04:32 UTC
575d7f3 Oops. Need an extra blank line after the PSF license. 13 April 2001, 15:04:31 UTC
9ea60c5 - Inserted the (tentative) PSF license. - Removed the subsection numbering in section B (each time a new license is inserted in the front, the others have to be renumbered). - Changed the words in the intro to avoid implying that 1.6.1 is GPL-compatible. 13 April 2001, 15:04:00 UTC
6191a23 Use nturl2path to generate a file: URL to source files in Windows. 13 April 2001, 15:00:27 UTC
79fa2b6 Add test for SF bug #405427 13 April 2001, 14:57:44 UTC
23d4047 SF patch #405845 by Martin von Löwis Fixes SF bug #405427. If an http response has a bogus return code, e.g. 400.100, raise BadStatusLine. 13 April 2001, 14:57:08 UTC
3bee2f6 Update to reflect new tokenize_test.py 13 April 2001, 14:55:18 UTC
d20d8b3 Work around the conversion of ">>" and "<<" to guillemets. Reported by Ping. 13 April 2001, 14:52:39 UTC
a4553c0 There's no need for the tokenize tests to include a SyntaxError. 13 April 2001, 14:36:51 UTC
a3e56a6 Minor markup adjustments. Turn reference to the cmd module into a hyperlink. 13 April 2001, 14:34:58 UTC
022171f Clean up isroutine(). 13 April 2001, 14:04:02 UTC
9bc576b Use inspect.stack()[1][3] to tell if Helper.__repr__ is called interactively. 13 April 2001, 13:57:31 UTC
eca15c1 Add inode checks to detect circular symbolic links (so that the Tools/idle/idlelib link doesn't cause an infinite loop -- aack!) 13 April 2001, 13:53:07 UTC
59685c5 Small style change to accommodate Netscape. 13 April 2001, 12:11:19 UTC
c99e0f1 Robustify getfile() against classes that lie about their __module__s (such as the exceptions in _weakref and _locale!) 13 April 2001, 12:10:40 UTC
da79389 Word-wrap the list of cross-references. 13 April 2001, 11:02:51 UTC
79c009d Another pass through the topic table to fill in cross references. Restore Helper.__repr__ for now. 13 April 2001, 10:53:25 UTC
dec96e9 Make force-loading optional; don't force-load in interactive mode. Make synopsis() load modules as '__temp__' so they don't clobber anything. Change "constants" section to "data" section. Don't show __builtins__ or __doc__ in "data" section. For Bob Weiner: don't boldface text in Emacs shells or dumb terminals. Remove Helper.__repr__ (it really belongs in site.py, and should be guarded by a check for len(inspect.stack) <= 2). 13 April 2001, 09:55:49 UTC
202c99b Remove duplicate type objects from isroutine() and isbuiltin(). Make getmodule() on a module return the module itself. 13 April 2001, 09:15:08 UTC
88ad12a Patch #415777: new grouping strategy. fixes bug #414940, and redoes the fix for #129417 in a different way. It also fixes a number of other problems with locale-specific formatting: If there is leading or trailing spaces, then no grouping should be applied in the spaces, and the total length of the string should not be changed due to grouping. Also added test case which works only if the en_US locale is available. 13 April 2001, 08:09:50 UTC
613b222 Whitespace normalization. 13 April 2001, 05:37:27 UTC
e1f3ed6 Update the helper scripts that push development docs to SourceForge; this version avoids having to build a separate authenticated connection to push the update-docs.sh script to SF. 13 April 2001, 05:13:55 UTC
3de3369 Add entry for ColorPicker documentation as well. 13 April 2001, 04:50:01 UTC
b6bdcb2 Documentation for Just's ColorPicker module, so the Mac OS guys get something out of this documentation release as well. ;-) 13 April 2001, 04:49:30 UTC
4fb6036 Note additions to pydoc and pstats. 13 April 2001, 00:46:14 UTC
4f3980d Added a test main to the pstats library that can help you browse profile dumps. 13 April 2001, 00:23:01 UTC
f4e5bd9 _synthesize(): Helper function: when the users passes a specific value for the 'using' parameter of the get() function or the BROWSER environment variable, if the thing passed in is a path (as seems to be the case with KDE) instead of a short name, examine the available controllers to see if we can synthesize one based on a pre-registered controller that shares the same base name. get(): If the user specifies a browser we don't know about, use _synthesize() to attempt to create a usable controller. Some small adjustments were needed in some of the browser classes to support this. 12 April 2001, 22:07:27 UTC
bb0bae6 Pop loop off the loop stack before handling the loop's else clause. Otherwise, continue/break will attempt to affect the wrong loop. A few more fiddles to get the SET_LINENOs consistent across compilers. 12 April 2001, 21:54:41 UTC
13d7094 Use new _implicitNameOp() to generate name op code for list comprehensions. Always emit a SET_LINENO 0 at the beginning of the module. The builtin compiler does this, and it's much easier to compare bytecode generated by the two compilers if they both do. Move the SET_LINENO inside the FOR_LOOP block for list comprehensions. Also for compat. with builtin compiler. 12 April 2001, 21:04:43 UTC
23f7aed Because this code was derived from Python 1.6.1 (amongst others), the CNRI copyright should be updated to include 2001. 12 April 2001, 20:53:31 UTC
b7a4830 Fix linking to classes (in class tree, and add links on unbound methods). 12 April 2001, 20:39:14 UTC
6dcfa38 Fix call to ModuleScanner from GUI search interface. Fix handling of unbound top-level methods. 12 April 2001, 20:27:31 UTC
47f11ce Added warning that FancyURLopener prompts the user on the terminal when basic authentication is needed. Added documentation for FancyURLopener.prompt_user_passwd(), explaining that subclasses should provide more appropriate behavior for the hosting environment. 12 April 2001, 20:26:49 UTC
614e87f Add support for visitAssAttr to findOp(). 12 April 2001, 20:24:26 UTC
542b11a pyassem.py: Fix annoying bugs in flow graph layout code. In some cases the implicit control transfers weren't honored. In other cases, JUMP_FORWARD instructions jumped backwards. Remove unused arg from nextBlock(). pycodegen.py Add optional force kwarg to set_lineno() that will emit a SET_LINENO even if it is the same as the previous lineno. Use explicit LOAD_FAST and STORE_FAST to access list comp implicit variables. (The symbol table doesn't know about them.) 12 April 2001, 20:21:39 UTC
35cf0a3 Added a big new Helper class to provide interactive help! 12 April 2001, 19:53:52 UTC
62a2669 Added module synopsis for the chapter summary. Added documentation for TestCase.assertRaises(). Added text for "Mapping concepts to classes", and merged it into the front matter instead of separating it into a new section. Removed use of "assert" in examples. Update the descriptions to reflect further changes from discussions on the pyunit-interest list. Added documentation for the defaultTestLoader object and the TestLoader methods. Added the assert*() names for the TestCase helper methods. 12 April 2001, 19:34:38 UTC
fff5325 Bug 415514 reported that e.g. "%#x" % 0 blew up, at heart because C sprintf supplies a base marker if and only if the value is not 0. I then fixed that, by tolerating C's inconsistency when it does %#x, and taking away that *Python* produced 0x0 when formatting 0L (the "long" flavor of 0) under %#x itself. But after talking with Guido, we agreed it would be better to supply 0x for the short int case too, despite that it's inconsistent with C, because C is inconsistent with itself and with Python's hex(0) (plus, while "%#x" % 0 didn't work before, "%#x" % 0L *did*, and returned "0x0"). Similarly for %#X conversion. 12 April 2001, 18:38:48 UTC
bfb0cf8 Revise handling of tuple arguments so that the variables names match those used by compile.c. (test_grammar now depends on the names) 12 April 2001, 17:33:34 UTC
e20bd19 Convert several \seetext references to \seerfc and \seetitle versions. These format somewhat better and include more semantic information in the source. 12 April 2001, 16:47:17 UTC
1312162 Give up trying to keep dynamically loaded extensions up to date: the import.c machinery has soundly defeated my every attempt. 12 April 2001, 13:37:39 UTC
b910efe Robustify getcomments() so it doesn't crash on empty files. 12 April 2001, 13:17:17 UTC
fd54069 Remove forking. Doesn't work in Windows. 12 April 2001, 12:54:36 UTC
24e7a29 Work around the conversion of ">>" and "<<" to guillemets. Reported by Ping on the Doc-SIG mailing list. 12 April 2001, 12:37:03 UTC
ce260d5 Update copyright to PSF. 12 April 2001, 12:27:34 UTC
6624696 Typo fixes and small touches. 12 April 2001, 11:59:50 UTC
9aa0d90 Properly qualify methods inherited from classes in other modules. Fix so that docother() doesn't blow up. Eliminate man() function since doc() and man() did nearly the same thing. Various other code cleanup and refactoring to reduce duplication. Simplify and rewrite freshimport() so modules are always up to date, even within packages (where reload() doesn't work). Add finalization callback to the server (so that if the server fails to start for some reason, the main thread isn't left hanging). 12 April 2001, 10:50:23 UTC
15d8927 - New fail*() methods, and comprehensive set of assert*() synonyms - TestCase.failureException defines the exception that indicates a test failure - Docstrings for TestLoader class - Added exc_info() hack back in 12 April 2001, 09:05:01 UTC
5c9aad6 Only treat an AugAssign as def if its the target is a Name. Fixes last bug found with test_scope.py. 12 April 2001, 07:06:25 UTC
3f76b7e Fix unpackSequence() to use _nameOp() rather than LOAD_FAST 12 April 2001, 06:52:27 UTC
660cc77 Inside a class scope always use LOAD_NAME, STORE_NAME, DEL_NAME 12 April 2001, 06:49:00 UTC
364f9b9 Preliminary support for nested scopes XXX Still doesn't work right for classes XXX Still doesn't do sufficient error checking 12 April 2001, 06:40:42 UTC
53ee2a9 Define constants for types of scopes 12 April 2001, 06:39:24 UTC
0056a42 Added a lot of text from Steve Purcell's HTML documentation. Updated reference material substantially based on discussions on the pyunit-interest mailing list (not all changes are in the code in CVS yet). 12 April 2001, 04:50:06 UTC
c790e08 Use "2.1c1" since that is what Guido used for the Python version number. 12 April 2001, 04:34:26 UTC
0c14961 Update to reflect the new string repr -- \n instead of \012. This is the only documentation file that appears to be affected by the change! 12 April 2001, 04:26:24 UTC
bfedde8 Prepare for release candidate 1... aka 2.1c1. 12 April 2001, 04:11:51 UTC
9ad526f Markup nit: use \envvar to mark environment variables. 12 April 2001, 04:11:21 UTC
e0197bf When forming the <A> tag for a \seepep or \seerfc, make sure we strip HTML markup from the string used as the title in the TITLE attribute. This fixes formatting in the "What's New in Python 2.1" document. 12 April 2001, 04:03:22 UTC
fd09e86 Update Windows build # and installer for 2.1c1. 12 April 2001, 04:01:39 UTC
db7657d Explain popitem() Add Unixware 7 port Ready for RC1 Minor rewrites 12 April 2001, 03:37:19 UTC
c993272 Note that __debug__ assignments are legal again. 12 April 2001, 02:31:27 UTC
711088d Fix for SF bug #415514: "%#x" % 0 caused assertion failure/abort. http://sourceforge.net/tracker/index.php?func=detail&aid=415514&group_id=5470&atid=105470 For short ints, Python defers to the platform C library to figure out what %#x should do. The code asserted that the platform C returned a string beginning with "0x". However, that's not true when-- and only when --the *value* being formatted is 0. Changed the code to live with C's inconsistency here. In the meantime, the problem does not arise if you format a long 0 (0L) instead. However, that's because the code *we* wrote to do %#x conversions on longs produces a leading "0x" regardless of value. That's probably wrong too: we should drop leading "0x", for consistency with C, when (& only when) formatting 0L. So I changed the long formatting code to do that too. 12 April 2001, 00:35:51 UTC
4642cb9 Reverting the "unixware7" patch: atan2(0, 1) should be 0, regardless of platform. If it returns pi on the unixware7 platform, they have a bug in their libm atan2. 12 April 2001, 00:24:41 UTC
ac6985f SOCKET.py and TERMIOS.py are no longer used in this release. 11 April 2001, 23:43:09 UTC
c8c1a5b (py-pdbtrack-track-stack-file): On Ken's suggestion, add "pdbtrack:" prefix to the message lines. 11 April 2001, 22:27:41 UTC
b942c2f Fixed bug in example. This closes SF bug #415522. Also fix markup error in text following the example. 11 April 2001, 21:33:47 UTC
34d37dc Noted the improved RISCOS port and the new Unixware 7 port. 11 April 2001, 21:03:32 UTC
2242f2f Unixware 7 support by Billy G. Allie (SF patch 413011) 11 April 2001, 20:58:20 UTC
11e89c7 Added news about the updated python-mode.el 11 April 2001, 20:37:57 UTC
420d0f7 Bumping to version 4.0 since we now support only XEmacs 21.1 and Emacs 20.7, although not all of the compatibility code for older Emacsen has been removed. Specifically, the old "make sure we have a current custom.el library" stuff is removed, as is the hack-around for an NTEmacs 19.34.6 make-temp-name bug. Updated much of the Commentary section in the initial comments. Much more importantly, I've integrated Ken Manheimer's pdbtrack stuff, which is way cool. When enabled (as by default), this turns on the overlay arrow when pdb is entered, either in the shell buffer or in the *Python* buffer. Specifically: (py-mode-map): Added C-c C-d to toggle pdb tracking. (py-pdbtrack-do-tracking-p): New user customizable variable to control whether overlay arrow tracking is enabled or not. This variable is buffer local and is turned on by default. (py-pdbtrack-minor-mode-string): The string that's added to the minor mode alist when actually doing pdb overlay arrow tracking. User customizable. (py-pdbtrack-toggle-stack-tracking, turn-on-pdbtrack, turn-off-pdbtrack): New commands to control pdb tracking. (py-pdbtrack-is-tracking-p): Helper variable used to control the display of py-pdbtrack-minor-mode-string. Set to true when the overlay arrow is enabled, and false when it's disabled. (py-pdbtrack-stack-entry-regexp, py-pdbtrack-input-prompt, py-pdbtrack-track-range): Inherited from pdbtrack.el and renamed. (py-pdbtrack-overlay-arrow, py-pdbtrack-track-stack-file): New functions which actually do the tracking. (py-shell): Add py-pdbtrack-track-stack-file to comint-output-filter-functions. Finally, add py-pdbtrack-track-stack-file to comint-output-filter-functions at the file level. This and the py-shell addition should ensure that pdb tracking is installed regardless of the order of operation. Also, add py-pdbtrack-minor-mode-string to minor-mode-alist. 11 April 2001, 20:23:24 UTC
4f577d2 intermediate 11 April 2001, 20:23:17 UTC
c3cbbaf Added some additional documentation describing how BabylMailbox actually works (it returns a message containing the visible headers, not the original headers). Doc change approved by Fred; closes SF bug #412230. 11 April 2001, 20:12:33 UTC
eedf985 Include a synopsis for the chapter overview. 11 April 2001, 19:17:11 UTC
84ec1f9 typo 11 April 2001, 16:43:13 UTC
01d1293 [finishing fix from earlier checkins] Call set_lineno() in visitDiscard(), which will generate linenos for discard statements, e.g. the statement "1/0" Fixes SF bug #409587 11 April 2001, 16:36:25 UTC
d91bbba Add support for extra (*) arguments to preorder. Change default dispatch to use extended call syntax in place of apply. 11 April 2001, 16:26:05 UTC
9ab019b Generate docstrings. Fixes SF buf #217004 Add method fixDocstring() to CodeGenerator. It converts the Discard node containing the docstring into an assignment to __doc__. 11 April 2001, 16:24:30 UTC
4c1f427 Add lineno attributes to Discard nodes 11 April 2001, 16:22:26 UTC
5af105e Make sure the docstring is always entered as the first element in the consts, even if it is None. Simplify _lookupName() by removing lots of redundant tests. 11 April 2001, 16:21:51 UTC
ceccc3c Test cases for examples of ext call error handling. Fix to SF bug #414743 based on Michael Hudson's patch #414750. 11 April 2001, 13:53:35 UTC
512a237 Fix exception handling for non-PyFunction objects, SF bug 414743. Fix based on patch #414750 by Michael Hudson. New functions get_func_name() and get_func_desc() return reasonable names and descriptions for all objects. XXX Even objects that aren't actually callable. 11 April 2001, 13:52:29 UTC
back to top