From guido@cnri.reston.va.us Tue Jun 1 14:57:16 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 09:57:16 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib/lib-tk Tkinter.py Message-ID: <199906011357.JAA00627@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib/lib-tk In directory eric:/projects/python/develop/guido/src/Lib/lib-tk Modified Files: Tkinter.py Log Message: Greg McFarlane writes: Tkinter.Text.tag_add should take multiple arguments. [Slightly changed from submitted patch.] From guido@cnri.reston.va.us Tue Jun 1 15:36:57 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 10:36:57 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib macurl2path.py Message-ID: <199906011436.KAA00916@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: macurl2path.py Log Message: Jack Jansen's patch to support file:///path/file/name URL syntax. From guido@cnri.reston.va.us Tue Jun 1 16:03:31 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 11:03:31 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle AutoIndent.py Message-ID: <199906011503.LAA01137@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: AutoIndent.py Log Message: New version by Tim Peters improves block opening test. From guido@cnri.reston.va.us Tue Jun 1 16:04:08 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 11:04:08 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle/Icons - New directory Message-ID: <199906011504.LAA01154@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle/Icons In directory eric:/projects/python/develop/guido/src/Tools/idle/Icons Log Message: Directory /projects/cvsroot/python/dist/src/Tools/idle/Icons added to the repository From guido@cnri.reston.va.us Tue Jun 1 16:04:52 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 11:04:52 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle/Icons folder.gif openfolder.gif python.gif tk.gif Message-ID: <199906011504.LAA01176@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle/Icons In directory eric:/projects/python/develop/guido/src/Tools/idle/Icons Added Files: folder.gif openfolder.gif python.gif tk.gif Log Message: A few icons used by ../TreeWidget.py and its callers. From fdrake@weyr.cnri.reston.va.us Tue Jun 1 18:55:54 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 1 Jun 1999 13:55:54 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libpopen2.tex Message-ID: <199906011755.NAA07144@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libpopen2.tex Log Message: Fix availability clause; mention availability of similar functionality for Windows using win32pipe. From guido@cnri.reston.va.us Tue Jun 1 19:17:03 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 14:17:03 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle ZoomHeight.py Message-ID: <199906011817.OAA02057@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: ZoomHeight.py Log Message: Move zoom height functionality to separate function. From guido@cnri.reston.va.us Tue Jun 1 19:18:28 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 14:18:28 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle ScriptBinding.py Message-ID: <199906011818.OAA02082@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: ScriptBinding.py Log Message: Ensure sys.argv[0] is the script name on Run Script. From guido@cnri.reston.va.us Tue Jun 1 19:19:03 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 14:19:03 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle ToolTip.py Message-ID: <199906011819.OAA02107@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Added Files: ToolTip.py Log Message: As yet unused code for tool tips. From guido@cnri.reston.va.us Tue Jun 1 19:19:18 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 14:19:18 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle TreeWidget.py Message-ID: <199906011819.OAA02124@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Added Files: TreeWidget.py Log Message: Tree widget done right. From guido@cnri.reston.va.us Tue Jun 1 19:20:57 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 14:20:57 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle ObjectBrowser.py Message-ID: <199906011820.OAA02144@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Added Files: ObjectBrowser.py Log Message: Object browser, based on TreeWidget.py. From guido@cnri.reston.va.us Tue Jun 1 19:21:31 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 14:21:31 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle ClassBrowser.py PathBrowser.py Message-ID: <199906011821.OAA02164@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: ClassBrowser.py PathBrowser.py Log Message: Rewritten based on TreeWidget.py From guido@cnri.reston.va.us Tue Jun 1 19:23:20 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 14:23:20 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle/Icons minusnode.gif plusnode.gif Message-ID: <199906011823.OAA02193@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle/Icons In directory eric:/projects/python/develop/guido/src/Tools/idle/Icons Added Files: minusnode.gif plusnode.gif Log Message: Missed a few. From guido@cnri.reston.va.us Tue Jun 1 19:27:14 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 14:27:14 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle EditorWindow.py Message-ID: <199906011827.OAA02215@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: EditorWindow.py Log Message: 1. Catch NameError on import (could be raised by case mismatch on Windows). 2. No longer need to reset pyclbr cache and show watch cursor when calling ClassBrowser -- the ClassBrowser takes care of pyclbr and the TreeWidget takes care of the watch cursor. 3. Reset the focus to the current window after error message about class browser on buffer without filename. From guido@cnri.reston.va.us Tue Jun 1 19:55:37 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 14:55:37 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib tempfile.py Message-ID: <199906011855.OAA02270@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: tempfile.py Log Message: In class TemporaryFileWrapper, don't cache attributes of tpye int -- these happen to be 'closed' and 'softspace', which may change! Noted by Dave Ascher (with slightly different solution). From guido@cnri.reston.va.us Tue Jun 1 19:58:35 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 14:58:35 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib SocketServer.py Message-ID: <199906011858.OAA02312@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: SocketServer.py Log Message: Andy Dustman notes that I patched the close() call in the wrong place. Here's the correct patch! From guido@cnri.reston.va.us Tue Jun 1 20:47:57 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 15:47:57 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle AutoIndent.py Message-ID: <199906011947.PAA02682@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: AutoIndent.py Log Message: Tim Peters keeps revising this module (more to come): Removed "New tabwidth" menu binding. Added "a tab means how many spaces?" dialog to block tabify and untabify. I think prompting for this is good now: they're usually at-most-once-per-file commands, and IDLE can't let them change tabwidth from the Tk default anymore, so IDLE can no longer presume to have any idea what a tab means. Irony: for the purpose of keeping comments aligned via tabs, Tk's non-default approach is much nicer than the Emacs/Notepad/Codewright/vi/etc approach. From guido@cnri.reston.va.us Tue Jun 1 20:49:22 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 15:49:22 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle PyParse.py Message-ID: <199906011949.PAA02707@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Added Files: PyParse.py Log Message: New file by Tim Peters: One new file in the attached, PyParse.py. The LineStudier (whatever it was called ) class was removed from AutoIndent; PyParse subsumes its functionality. From guido@cnri.reston.va.us Tue Jun 1 20:52:34 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 15:52:34 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle AutoIndent.py Message-ID: <199906011952.PAA02727@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: AutoIndent.py Log Message: Tim Peters again: [Tim, after adding some bracket smarts to AutoIndent.py] > ... > What it can't possibly do without reparsing large gobs of text is > suggest a reasonable indent level after you've *closed* a bracket > left open on some previous line. > ... The attached can, and actually fast enough to use -- most of the time. The code is tricky beyond belief to achieve that, but it works so far; e.g., return len(string.expandtabs(str[self.stmt_start : ^ indents to caret i], ^ indents to caret self.tabwidth)) + 1 ^ indents to caret It's about as smart as pymode now, wrt both bracket and backslash continuation rules. It does require reparsing large gobs of text, and if it happens to find something that looks like a "def" or "class" or sys.ps1 buried in a multiline string, but didn't suck up enough preceding text to see the start of the string, it's completely hosed. I can't repair that -- it's just too slow to reparse from the start of the file all the time. AutoIndent has grown a new num_context_lines tuple attribute that controls how far to look back, and-- like other params --this could/should be made user-overridable at startup and per-file on the fly. From guido@cnri.reston.va.us Tue Jun 1 20:55:35 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 15:55:35 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle AutoIndent.py PyParse.py PyShell.py Message-ID: <199906011955.PAA02766@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: AutoIndent.py PyParse.py PyShell.py Log Message: Tim Peters again: The new version (attached) is fast enough all the time in every real module I have . You can make it slow by, e.g., creating an open list with 5,000 90-character identifiers (+ trailing comma) each on its own line, then adding an item to the end -- but that still consumes less than a second on my P5-166. Response time in real code appears instantaneous. Fixed some bugs. New feature: when hitting ENTER and the cursor is beyond the line's leading indentation, whitespace is removed on both sides of the cursor; before whitespace was removed only on the left; e.g., assuming the cursor is between the comma and the space: def something(arg1, arg2): ^ cursor to the left of here, and hit ENTER arg2): # new line used to end up here arg2): # but now lines up the way you expect New hack: AutoIndent has grown a context_use_ps1 Boolean config option, defaulting to 0 (false) and set to 1 (only) by PyShell. Reason: handling the fancy stuff requires looking backward for a parsing synch point; ps1 lines are the only sensible thing to look for in a shell window, but are a bad thing to look for in a file window (ps1 lines show up in my module docstrings often). PythonWin's shell should set this true too. Persistent problem: strings containing def/class can still screw things up completely. No improvement. Simplest workaround is on the user's head, and consists of inserting e.g. def _(): pass (or any other def/class) after the end of the multiline string that's screwing them up. This is especially irksome because IDLE's syntax coloring is *not* confused, so when this happens the colors don't match the indentation behavior they see. From guido@cnri.reston.va.us Tue Jun 1 21:06:45 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 16:06:45 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle AutoIndent.py Message-ID: <199906012006.QAA02842@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: AutoIndent.py Log Message: Hah! A fix of my own to Tim's code! Unix bindings for <> and <> were missing, and somehow that meant the events were never generated, even though they were in the menu. The new Unix bindings are now the same as the Windows bindings (M-t and M-u). From guido@cnri.reston.va.us Wed Jun 2 12:04:30 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 2 Jun 1999 07:04:30 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle EditorWindow.py Message-ID: <199906021104.HAA03888@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: EditorWindow.py Log Message: Change by Mark Hammond to allow using IDLE extensions in PythonWin as well: make three dialog routines instance variables. From guido@cnri.reston.va.us Wed Jun 2 12:05:19 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 2 Jun 1999 07:05:19 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle AutoIndent.py Message-ID: <199906021105.HAA03907@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: AutoIndent.py Log Message: Changes by Mark Hammond to allow using IDLE extensions in PythonWin as well: make three dialog routines instance variables. From guido@cnri.reston.va.us Wed Jun 2 13:06:48 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 2 Jun 1999 08:06:48 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle IdleHistory.py Message-ID: <199906021206.IAA04091@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: IdleHistory.py Log Message: Changes by Mark Hammond: (1) support optional output_sep argument to the constructor so he can eliminate the sys.ps2 that PythonWin leaves in the source; (2) remove duplicate history items. From guido@cnri.reston.va.us Wed Jun 2 17:10:19 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 2 Jun 1999 12:10:19 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle CallTipWindow.py CallTips.py Message-ID: <199906021610.MAA05130@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Added Files: CallTipWindow.py CallTips.py Log Message: Call tips by Mark Hammond (plus tiny fix by me.) From guido@cnri.reston.va.us Wed Jun 2 19:12:56 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 2 Jun 1999 14:12:56 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle CallTips.py Message-ID: <199906021812.OAA05592@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: CallTips.py Log Message: A version that Mark Hammond posted to the newsgroup. Has some newer stuff for getting the tip. Had to fix the Key-( and Key-) events for Unix. Will have to re-apply my patch for catching KeyRelease and ButtonRelease events. From guido@cnri.reston.va.us Wed Jun 2 19:18:58 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 2 Jun 1999 14:18:58 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle CallTips.py Message-ID: <199906021818.OAA05616@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: CallTips.py Log Message: My fix to Mark's code: restore the universal check on . Always cancel on or . From guido@cnri.reston.va.us Wed Jun 2 19:44:23 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 2 Jun 1999 14:44:23 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib cgi.py Message-ID: <199906021844.OAA05852@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: cgi.py Log Message: At Jim Fulton's request (actually, as a compromise :-), default the content-type to application/x-www-form-urlencoded only when the method is POST. Ditto for when the content-type is unrecognized -- only fall back to urlencoded with POST. From guido@cnri.reston.va.us Thu Jun 3 13:07:51 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Thu, 3 Jun 1999 08:07:51 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle CallTips.py Message-ID: <199906031207.IAA06775@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: CallTips.py Log Message: Mark Hammond fixed some comments and improved the way the tip text is constructed. From guido@cnri.reston.va.us Thu Jun 3 15:25:49 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Thu, 3 Jun 1999 10:25:49 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle GrepDialog.py Message-ID: <199906031425.KAA06955@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: GrepDialog.py Log Message: Enclose pattern in quotes in status message. From guido@cnri.reston.va.us Thu Jun 3 15:32:17 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Thu, 3 Jun 1999 10:32:17 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle AutoIndent.py EditorWindow.py PyParse.py Message-ID: <199906031432.KAA06994@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: AutoIndent.py EditorWindow.py PyParse.py Log Message: New offerings by Tim Peters; he writes: IDLE is now the first Python editor in the Universe not confused by my doctest.py . As threatened, this defines IDLE's is_char_in_string function as a method of EditorWindow. You just need to define one similarly in whatever it is you pass as editwin to AutoIndent; looking at the EditorWindow.py part of the patch should make this clear. From bwarsaw@cnri.reston.va.us Thu Jun 3 23:18:59 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Thu, 3 Jun 1999 18:18:59 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Misc python-mode.el Message-ID: <199906032218.SAA02552@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Misc In directory anthem:/projects/python/develop/bwarsaw/src/Misc Modified Files: python-mode.el Log Message: (py-statement-closes-block-p): py-goto-initial-line could leave us in the line's whitespace. back-to-indentation should /follow/ this call. From guido@cnri.reston.va.us Fri Jun 4 18:54:40 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Fri, 4 Jun 1999 13:54:40 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib cgi.py Message-ID: <199906041754.NAA09424@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: cgi.py Log Message: Patch by Jim Fulton: new function parse_qsl(), which is like parse_qs() but returns a list of (name, value) pairs -- which is actually more correct. Use this where it makes sense. From guido@cnri.reston.va.us Fri Jun 4 20:21:20 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Fri, 4 Jun 1999 15:21:20 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle extend.py Message-ID: <199906041921.PAA09911@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: extend.py Log Message: Might as well enable CallTips by default. If there are too many complaints I'll remove it again or fix it. From guido@cnri.reston.va.us Mon Jun 7 15:28:15 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Mon, 7 Jun 1999 10:28:15 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle PyParse.py Message-ID: <199906071428.KAA11915@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: PyParse.py Log Message: Tim Peters: Smarter logic for finding a parse synch point. Does a half to a fifth the work in normal cases; don't notice the speedup, but makes more breathing room for other extensions. Speeds terrible cases by at least a factor of 10. "Terrible" == e.g. you put """ at the start of Tkinter.py, undo it, zoom to the bottom, and start typing in code. Used to take about 8 seconds for ENTER to respond, now some large fraction of a second. The new code gets indented correctly, despite that it all remains "string colored" until the colorizer catches up (after which, ENTER appears instantaneous again). From guido@cnri.reston.va.us Mon Jun 7 16:12:33 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Mon, 7 Jun 1999 11:12:33 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Objects stringobject.c Message-ID: <199906071512.LAA12210@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Objects In directory eric:/projects/python/develop/guido/src/Objects Modified Files: stringobject.c Log Message: Fix bug discovered by John W. Shipman -- when the width of a format specifier came from an int expression instead of a constant in the format, a negative width was truncated to zero instead of taken to mean the same as that negative constant plugged into the format. E.g. "(%*s)" % (-5, "foo") yielded "(foo)" while "(%-5s)" yields "(foo )". Now both yield the latter -- like sprintf() in C. From guido@cnri.reston.va.us Mon Jun 7 16:25:19 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Mon, 7 Jun 1999 11:25:19 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib pyclbr.py Message-ID: <199906071525.LAA12353@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: pyclbr.py Log Message: Experimental speedup patch by Tim Peters (please test!): It wasn't hard to speed pyclbr by a factor of 3, and I'll attach an experimental patch for that (experimental because barely tested). Uncomment the new "String" stuff and it will deal with strings correctly (pyclbr currently ignores the possibility), but that slows it down a lot. Still faster in the end than current pyclbr, but-- frankly --I'd rather have the dramatic speedup! From guido@cnri.reston.va.us Mon Jun 7 16:38:40 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Mon, 7 Jun 1999 11:38:40 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle ObjectBrowser.py TreeWidget.py Message-ID: <199906071538.LAA12411@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: ObjectBrowser.py TreeWidget.py Log Message: Remove unnecessary reference to pyclbr from test() code. From guido@cnri.reston.va.us Tue Jun 8 13:53:22 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 8 Jun 1999 08:53:22 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib pyclbr.py Message-ID: <199906081253.IAA14359@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: pyclbr.py Log Message: Tim Peters: Taught it more "real Python" rules without slowing it appreciably. Triple-quoted strings no longer confuse it, nor nested classes or defs, nor comments starting in column 1. Chews thru Tkinter.py in < 3 seconds for me; doctest.py no longer confuses it; no longer missing methods in PyShell.py; etc. Also captures defs starting in column 1 now, but ignores them; an interface should be added so that IDLE's class browser can show the top-level functions too. From guido@cnri.reston.va.us Tue Jun 8 13:54:23 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 8 Jun 1999 08:54:23 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle AutoIndent.py Message-ID: <199906081254.IAA14379@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: AutoIndent.py Log Message: Tim Peters: + Set usetabs=1. Editing pyclbr.py was driving me nuts <0.6 wink>. usetabs=1 is the Emacs pymode default too, and thanks to indentwidth != tabwidth magical usetabs disabling, new files are still created with tabs turned off. The only implication is that if you open a file whose first indent is a single tab, IDLE will now magically use tabs for that file (and set indentwidth to 8). Note that the whole scheme doesn't work right for PythonWin, though, since Windows users typically set tabwidth to 4; Mark probably has to hide the IDLE algorithm from them (which he already knows). + Changed comment_region_event to stick "##" in front of every line. The "holes" previously left on blank lines were visually confusing (made it needlessly hard to figure out what to uncomment later). From guido@cnri.reston.va.us Tue Jun 8 13:54:57 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 8 Jun 1999 08:54:57 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle ReplaceDialog.py Message-ID: <199906081254.IAA14397@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: ReplaceDialog.py Log Message: Tim Peters: made replacement atomic for undo/redo. From guido@cnri.reston.va.us Tue Jun 8 14:06:07 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 8 Jun 1999 09:06:07 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle ReplaceDialog.py Message-ID: <199906081306.JAA14421@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: ReplaceDialog.py Log Message: Hmm... Tim didn't turn "replace all" into a single undo block. I think I like it better if it os, so here. From guido@cnri.reston.va.us Tue Jun 8 14:13:17 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 8 Jun 1999 09:13:17 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib whichdb.py Message-ID: <199906081313.JAA14475@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: whichdb.py Log Message: Skip Montanaro: I guess in 1.5.2 a new module, whichdb, was added that attempts to divine the nature of a database file. This module doesn't know anything about Berkeley DB v2 files. In v2, Sleepycat added a 12-byte null pad in front of the old magic numbers (at least for hash and btree files). I've been using v2 for awhile and upgrading to 1.5.2 broke all my anydbm.open calls. I believe the following patch corrects the problem. From guido@cnri.reston.va.us Tue Jun 8 14:20:06 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 8 Jun 1999 09:20:06 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib asynchat.py asyncore.py Message-ID: <199906081320.JAA14534@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: asynchat.py asyncore.py Log Message: Sam's latest versions From guido@cnri.reston.va.us Tue Jun 8 22:23:28 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 8 Jun 1999 17:23:28 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib xmllib.py Message-ID: <199906082123.RAA22657@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: xmllib.py Log Message: Fix (sanctioned by Sjoerd) for a problem reported by Andreas Faerber: all processing instruction target names containing 'xml' were rejected, instead (as the standard rejects) only the name 'xml' itself (or case variants thereof). From guido@cnri.reston.va.us Wed Jun 9 14:32:30 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 9 Jun 1999 09:32:30 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib chunk.py aifc.py Message-ID: <199906091332.JAA23559@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: aifc.py Added Files: chunk.py Log Message: Patch/new code by Sjoerd Mullender: Separate the Chunk class out of the aifc module into a new "chunk" module. From guido@cnri.reston.va.us Wed Jun 9 14:41:18 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 9 Jun 1999 09:41:18 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib chunk.py Message-ID: <199906091341.JAA23617@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: chunk.py Log Message: Oops, Sjoerd was in a hurry. This patch from him fixes some length math in the Chunk class. From guido@cnri.reston.va.us Wed Jun 9 16:05:48 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 9 Jun 1999 11:05:48 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib BaseHTTPServer.py Message-ID: <199906091505.LAA23924@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: BaseHTTPServer.py Log Message: Don't just die if gethostbyaddr() fails -- as it can when DNS is unreachable -- but fall back to using whatever hostname we have. From guido@cnri.reston.va.us Wed Jun 9 16:11:59 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 9 Jun 1999 11:11:59 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libcalendar.tex Message-ID: <199906091511.LAA23976@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory eric:/projects/python/develop/guido/Doc/lib Modified Files: libcalendar.tex Log Message: Add doc for timegm(). From guido@cnri.reston.va.us Wed Jun 9 16:13:11 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 9 Jun 1999 11:13:11 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib smtplib.py Message-ID: <199906091513.LAA24001@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: smtplib.py Log Message: Patch by Per Cederqvist: I've found two places where smtplib.py sends an extra trailing space on command lines to the SMTP server. I don't know if this ever causes any problems, but I'd prefer to be on the safe side. The enclosed patch removes the extra space. From guido@cnri.reston.va.us Wed Jun 9 16:14:50 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 9 Jun 1999 11:14:50 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib urllib.py Message-ID: <199906091514.LAA24023@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: urllib.py Log Message: Updated lagging version#. Also added some comments about how quote() and quote_plus() can be optimized tenfold. From guido@cnri.reston.va.us Wed Jun 9 16:16:19 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 9 Jun 1999 11:16:19 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Include patchlevel.h Message-ID: <199906091516.LAA24044@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Include In directory eric:/projects/python/develop/guido/src/Include Modified Files: patchlevel.h Log Message: Set PATCHLEVEL and PY_VERSION (string version only) to 1.5.2+ to indicate to those that are using the CVS access that they are using a newer-than-1.2.5 version, without committing to a particular version number or patch level. From guido@cnri.reston.va.us Wed Jun 9 16:19:35 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 9 Jun 1999 11:19:35 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Objects listobject.c Message-ID: <199906091519.LAA24075@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Objects In directory eric:/projects/python/develop/guido/src/Objects Modified Files: listobject.c Log Message: When deallocating a list, DECREF the items from the end back to the start. From guido@cnri.reston.va.us Wed Jun 9 16:07:39 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 9 Jun 1999 11:07:39 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib calendar.py Message-ID: <199906091507.LAA23951@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: calendar.py Log Message: Add unrelated but handy function: timegm(), to calculate Unix timestamp from GMT tuple. From guido@cnri.reston.va.us Wed Jun 9 16:23:32 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 9 Jun 1999 11:23:32 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Modules cPickle.c Message-ID: <199906091523.LAA24127@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Modules In directory eric:/projects/python/develop/guido/src/Modules Modified Files: cPickle.c Log Message: Jim Fulton writes: I've updated cPickle.c to use class exceptions: Changed pickle error types to classes: PickleError PicklingError UnpickleableError UnpicklingError And change the handling of unpickleable objects so that an UnpickleableError is raised with the unpickleable object as the argument. UnpickleableError has a reasonable string representation and provides access to the problem object, which is useful during debugging. [I'm still waiting for patches to do the same to pickle.py.] From guido@cnri.reston.va.us Wed Jun 9 16:36:38 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 9 Jun 1999 11:36:38 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/PC config.h Message-ID: <199906091536.LAA24210@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/PC In directory eric:/projects/python/develop/guido/src/PC Modified Files: config.h Log Message: Set the max recursion limit to 5000 -- rather conservative (this uses 0.5 MB of the 1 MB available by default for stack on Win32 platforms). From guido@cnri.reston.va.us Wed Jun 9 16:49:10 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 9 Jun 1999 11:49:10 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib pyclbr.py Message-ID: <199906091549.LAA24273@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: pyclbr.py Log Message: Fix by Sjoerd for a package related bug: If you have a non-empy __init__.py it isn't read. (Sjoerd just came up with this, so it's not heavily tested.) Other (yet unsolved) package problems noted by Sjoerd: - If you have a package and a module inside that or another package with the same name, module caching doesn't work properly since the key is the base name of the module/package. - The only entry that is returned when you readmodule a package is a __path__ whose value is a list which confuses certain class browsers that I wrote. (Hm, this could be construed as a feature.) From guido@cnri.reston.va.us Wed Jun 9 20:07:23 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 9 Jun 1999 15:07:23 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Demo/scripts makedir.py Message-ID: <199906091907.PAA28495@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Demo/scripts In directory eric:/projects/python/develop/guido/src/Demo/scripts Modified Files: makedir.py Log Message: Fix bug discovered by Klaus-Juergen Wolf -- it runs into infinite recursion! From guido@cnri.reston.va.us Wed Jun 9 21:34:58 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 9 Jun 1999 16:34:58 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle CallTips.py Message-ID: <199906092034.QAA28809@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: CallTips.py Log Message: Append "..." if the appropriate flag (for varargs) in co_flags is set. Ditto "***" for kwargs. From guido@cnri.reston.va.us Thu Jun 10 04:11:42 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 9 Jun 1999 23:11:42 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libcgi.tex Message-ID: <199906100311.XAA29334@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory eric:/projects/python/develop/guido/Doc/lib Modified Files: libcgi.tex Log Message: Patch by Jim Fulton to document the new parse_qls(). From guido@cnri.reston.va.us Thu Jun 10 15:19:48 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Thu, 10 Jun 1999 10:19:48 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle CallTipWindow.py Message-ID: <199906101419.KAA00016@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: CallTipWindow.py Log Message: Mark Hammond writes: Tim's suggestion of copying the font for the CallTipWindow from the text control makes sense, and actually makes the control look better IMO. From guido@cnri.reston.va.us Thu Jun 10 15:20:27 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Thu, 10 Jun 1999 10:20:27 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle CallTips.py Message-ID: <199906101420.KAA00036@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: CallTips.py Log Message: Mark Hammond writes: Here is another change that allows it to work for class creation - tries to locate an __init__ function. Also updated the test code to reflect your new "***" change. From guido@cnri.reston.va.us Thu Jun 10 15:39:40 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Thu, 10 Jun 1999 10:39:40 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib pyclbr.py Message-ID: <199906101439.KAA00097@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: pyclbr.py Log Message: Co-production with Tim Peters, implementing a suggestion by Mark Hammond: record top-level functions (as Function instances, a simple subclass of Class). You must use the new interface readmodule_ex() to get these, though. From guido@cnri.reston.va.us Thu Jun 10 15:44:49 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Thu, 10 Jun 1999 10:44:49 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle AutoIndent.py Message-ID: <199906101444.KAA00131@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: AutoIndent.py Log Message: Fix off-by-one error in Tim's recent change to comment_region(): the list of lines returned by get_region() contains an empty line at the end representing the start of the next line, and this shouldn't be commented out! From fdrake@weyr.cnri.reston.va.us Thu Jun 10 16:07:05 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 10 Jun 1999 11:07:05 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libos.tex Message-ID: <199906101507.LAA04812@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libos.tex Log Message: At David Ascher's request, clarify that os.system() always returns 0 on Win95 & Win98. From fdrake@weyr.cnri.reston.va.us Thu Jun 10 16:03:08 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 10 Jun 1999 11:03:08 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib librfc822.tex Message-ID: <199906101503.LAA04777@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: librfc822.tex Log Message: Fix typo reported by Robert Kern . From guido@cnri.reston.va.us Thu Jun 10 16:19:15 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Thu, 10 Jun 1999 11:19:15 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle ClassBrowser.py Message-ID: <199906101519.LAA00224@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: ClassBrowser.py Log Message: Adapt to the new pyclbr's support of listing top-level functions. If this functionality is not present (e.g. when used with a vintage Python 1.5.2 installation) top-level functions are not listed. (Hmm... Any distribution of IDLE 0.5 should probably include a copy of the new pyclbr.py!) From fdrake@weyr.cnri.reston.va.us Thu Jun 10 16:30:22 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 10 Jun 1999 11:30:22 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/tut tut.tex Message-ID: <199906101530.LAA05010@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/tut In directory weyr:/home/fdrake/projects/python/Doc/tut Modified Files: tut.tex Log Message: Fixed typo reported by Bennett Benson . From guido@cnri.reston.va.us Thu Jun 10 18:43:18 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Thu, 10 Jun 1999 13:43:18 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle EditorWindow.py Message-ID: <199906101743.NAA00497@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: EditorWindow.py Log Message: Added abstraction get_selection_index() (Mark Hammond). Also reformatted some comment blocks to show off a cool feature I'm about to check in next. From guido@cnri.reston.va.us Thu Jun 10 18:48:03 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Thu, 10 Jun 1999 13:48:03 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle FormatParagraph.py Message-ID: <199906101748.NAA00525@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: FormatParagraph.py Log Message: Code by Mark Hammond to format paragraphs embedded in comments. Read the comments (which I reformatted using the new feature :-) for some limitations. From guido@cnri.reston.va.us Thu Jun 10 20:05:55 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Thu, 10 Jun 1999 15:05:55 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib pyclbr.py Message-ID: <199906101905.PAA00710@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: pyclbr.py Log Message: Added a few more bugs to the doc string; reformatted existing bugs. From fdrake@weyr.cnri.reston.va.us Thu Jun 10 22:17:13 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 10 Jun 1999 17:17:13 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libundoc.tex Message-ID: <199906102117.RAA06463@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libundoc.tex Log Message: Declare the "util" module obsolete. From fdrake@weyr.cnri.reston.va.us Thu Jun 10 22:18:03 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 10 Jun 1999 17:18:03 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib util.py Message-ID: <199906102118.RAA06591@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory weyr:/home/fdrake/projects/python/Lib Removed Files: util.py Log Message: Relocating file to Lib/lib-old. From fdrake@weyr.cnri.reston.va.us Thu Jun 10 22:23:32 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 10 Jun 1999 17:23:32 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libfnmatch.tex Message-ID: <199906102123.RAA06628@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libfnmatch.tex Log Message: Work around latex2html problem; reported by Gerrit Holl . From fdrake@weyr.cnri.reston.va.us Thu Jun 10 23:08:18 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 10 Jun 1999 18:08:18 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libimp.tex Message-ID: <199906102208.SAA07219@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libimp.tex Log Message: Improve index entry for "import"; responding to comments by Stefan Franke . From fdrake@weyr.cnri.reston.va.us Thu Jun 10 23:09:21 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 10 Jun 1999 18:09:21 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libfuncs.tex Message-ID: <199906102209.SAA07242@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libfuncs.tex Log Message: Adjust indexing for __import__(); based on comments by Stefan Franke . From bwarsaw@cnri.reston.va.us Thu Jun 10 23:30:33 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Thu, 10 Jun 1999 18:30:33 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Include floatobject.h Message-ID: <199906102230.SAA27385@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Include In directory anthem:/projects/python/develop/bwarsaw/src/Include Modified Files: Tag: string_methods floatobject.h Log Message: PyFloat_FromString(): New function which converts a string to a float, also returning the character position at the end of the representation. (this checkin also tests the new string_methods branch) From fdrake@weyr.cnri.reston.va.us Thu Jun 10 23:37:35 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 10 Jun 1999 18:37:35 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libstdtypes.tex Message-ID: <199906102237.SAA07556@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libstdtypes.tex Log Message: Some clarifications on operations for mapping types, based on comments from Gerry Weiner . From bwarsaw@cnri.reston.va.us Thu Jun 10 23:43:26 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Thu, 10 Jun 1999 18:43:26 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Objects stringobject.c Message-ID: <199906102243.SAA27417@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Objects In directory anthem:/projects/python/develop/bwarsaw/src/Objects Modified Files: Tag: string_methods stringobject.c Log Message: Strings objects now have methods, a la JPython. The following methods have been added: capitalize count endswith find index lstrip lower replace rfind rindex rstrip split/splitfields startswith strip swapcase translate upper Code which used to be written "import string; string.lower(s)" can now be written s.lower() to return a new lowercased string. All string module methods have similar translations. Methods startswith and endwith are new -- no string module equivalents, but they are the same as with Java strings s.startswith(t [, offset]) returns 1 if s starts with the prefix t, otherwise 0. Optional offset starts the comparison at that position within the string. s.endswith(t) returns 1 if s ends with the suffix t, otherwise 0 From bwarsaw@cnri.reston.va.us Thu Jun 10 23:51:38 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Thu, 10 Jun 1999 18:51:38 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib string.py Message-ID: <199906102251.SAA27438@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory anthem:/projects/python/develop/bwarsaw/src/Lib Modified Files: Tag: string_methods string.py Log Message: Change most string module functions to be wrappers around method calls on their first argument (must be a string object). This maintains the public (and documented) interface for the string module but allows for future expansion when Unicode string objects are added. strop module is now more or less obsolete, but should still work. All existing code that uses the string module should continue to work unchanged. These functions have no equivalent string object methods: ljust rjust center zfill expandtabs capwords maketrans startswith() and endswith() are new string module functions. From bwarsaw@cnri.reston.va.us Thu Jun 10 23:53:11 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Thu, 10 Jun 1999 18:53:11 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib/test test_string.py Message-ID: <199906102253.SAA27464@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib/test In directory anthem:/projects/python/develop/bwarsaw/src/Lib/test Added Files: test_string.py Log Message: Regression test for the new string methods. From bwarsaw@cnri.reston.va.us Thu Jun 10 23:53:24 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Thu, 10 Jun 1999 18:53:24 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib/test/output test_string Message-ID: <199906102253.SAA27476@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib/test/output In directory anthem:/projects/python/develop/bwarsaw/src/Lib/test/output Added Files: test_string Log Message: Output for the regression test of the new string methods. From bwarsaw@cnri.reston.va.us Thu Jun 10 23:56:56 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Thu, 10 Jun 1999 18:56:56 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Include intobject.h Message-ID: <199906102256.SAA27509@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Include In directory anthem:/projects/python/develop/bwarsaw/src/Include Modified Files: Tag: string_methods intobject.h Log Message: PyInt_FromString(): New function which converts a string to an integer in a given base, also returning the character position at the end of the representation. From bwarsaw@cnri.reston.va.us Fri Jun 11 00:02:33 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Thu, 10 Jun 1999 19:02:33 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Objects intobject.c Message-ID: <199906102302.TAA27534@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Objects In directory anthem:/projects/python/develop/bwarsaw/src/Objects Modified Files: Tag: string_methods intobject.c Log Message: PyInt_FromString(): New API function which converts a string (char*) into a PyInteger. Arguments are the character string, a char** and the integer base. base==0 means choose the default base depending on the leading characters of the string (after stripping the sign), a la string.atoi(). The second argument returns the character position of the end of the conversion. This method encapsulates all the string->int conversions in Python, in an API that can be used by string.atoi() and int(). From bwarsaw@cnri.reston.va.us Fri Jun 11 00:04:23 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Thu, 10 Jun 1999 19:04:23 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Objects floatobject.c Message-ID: <199906102304.TAA27552@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Objects In directory anthem:/projects/python/develop/bwarsaw/src/Objects Modified Files: Tag: string_methods floatobject.c Log Message: PyFloat_FromString(): New API function which converts a string (char*) into a PyFloat. Arguments are the character string, and a char**. The second argument returns the character position of the end of the conversion. This method encapsulates all the string->float conversions in Python, in an API that can be used by string.atof() and float(). From bwarsaw@cnri.reston.va.us Fri Jun 11 00:11:24 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Thu, 10 Jun 1999 19:11:24 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Objects abstract.c Message-ID: <199906102311.TAA27605@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Objects In directory anthem:/projects/python/develop/bwarsaw/src/Objects Modified Files: Tag: string_methods abstract.c Log Message: int_from_string(): Removed. PyNumber_Int() now uses PyInt_FromString(). float_from_string(): Removed. PyNumber_Float() now uses PyFloat_FromString(). long_from_string(): Changes are best described by the comment above the function /* There are two C API functions for converting a string to a long, * PyNumber_Long() and PyLong_FromString(). Both are used in builtin_long, * reachable from Python with the built-in function long(). * * The difference is this: PyNumber_Long will raise an exception when the * string cannot be converted to a long. The most common situation is * where a float string is passed in; this raises a ValueError. * PyLong_FromString does not raise an exception; it silently truncates the * float to an integer. * * You can see the different behavior from Python with the following: * * long('9.5') * => ValueError: invalid literal for long(): 9.5 * * long('9.5', 10) * => 9L * * The first example ends up calling PyNumber_Long(), while the second one * calls PyLong_FromString(). */ The fact that builtin long takes an optional base is a new feature to make it more compatible with string.atol(). From bwarsaw@cnri.reston.va.us Fri Jun 11 00:16:58 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Thu, 10 Jun 1999 19:16:58 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Python bltinmodule.c Message-ID: <199906102316.TAA27629@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Python In directory anthem:/projects/python/develop/bwarsaw/src/Python Modified Files: Tag: string_methods bltinmodule.c Log Message: float(): also supports string.atof() functionality int(): supports string.atoi()'s ability to convert a string to an optional base long(): supports string.atol()'s ability to convert a string to an optional base From bwarsaw@cnri.reston.va.us Fri Jun 11 00:37:16 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Thu, 10 Jun 1999 19:37:16 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Objects stringobject.c Message-ID: <199906102337.TAA27806@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Objects In directory anthem:/projects/python/develop/bwarsaw/src/Objects Modified Files: Tag: string_methods stringobject.c Log Message: string_atol(): removed, this was an artifact of an earlier modification. From guido@cnri.reston.va.us Fri Jun 11 02:37:28 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Thu, 10 Jun 1999 21:37:28 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib os.py Message-ID: <199906110137.VAA02155@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: os.py Log Message: Mark Hammond: patch for Windows/CE. From fdrake@weyr.cnri.reston.va.us Fri Jun 11 15:25:46 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Fri, 11 Jun 1999 10:25:46 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/doc doc.tex Message-ID: <199906111425.KAA09634@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/doc In directory weyr:/home/fdrake/projects/python/Doc/doc Modified Files: doc.tex Log Message: Last night's scribbles: - Revise abstract based on Guido's comments from way back. - Point out that LaTeX is a structured system & we're using it that way. - Add a small section on marking up code examples. From guido@cnri.reston.va.us Fri Jun 11 16:03:01 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Fri, 11 Jun 1999 11:03:01 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle AutoIndent.py EditorWindow.py FormatParagraph.py Message-ID: <199906111503.LAA03160@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: AutoIndent.py EditorWindow.py FormatParagraph.py Log Message: Tim Peters smart.patch: EditorWindow.py: + Added get_tabwidth & set_tabwidth "virtual text" methods, that get/set the widget's view of what a tab means. + Moved TK_TABWIDTH_DEFAULT here from AutoIndent. + Renamed Mark's get_selection_index to get_selection_indices (sorry, Mark, but the name was plain wrong ). FormatParagraph.py: renamed use of get_selection_index. AutoIndent.py: + Moved TK_TABWIDTH_DEFAULT to EditorWindow. + Rewrote set_indentation_params to use new VTW get/set_tabwidth methods. + Changed smart_backspace_event to delete whitespace back to closest preceding virtual tab stop or real character (note that this may require inserting characters if backspacing over a tab!). + Nuked almost references to the selection tag, in favor of using get_selection_indices. The sole exception is in set_region, for which no "set_selection" abstraction has yet been agreed upon. + Had too much fun using the spiffy new features of the format-paragraph cmd. From bwarsaw@cnri.reston.va.us Fri Jun 11 18:47:08 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Fri, 11 Jun 1999 13:47:08 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib string.py Message-ID: <199906111747.NAA29958@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory anthem:/projects/python/develop/bwarsaw/src/Lib Modified Files: Tag: string_methods string.py Log Message: startswith(), endswith(): Remove these from the module. They are only accessible from the string objects. From bwarsaw@cnri.reston.va.us Fri Jun 11 18:48:07 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Fri, 11 Jun 1999 13:48:07 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib/test test_string.py Message-ID: <199906111748.NAA29996@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib/test In directory anthem:/projects/python/develop/bwarsaw/src/Lib/test Modified Files: test_string.py Log Message: Harness can now test object methods directly, if they aren't available in the string module. Add a bunch of new tests for extended startswith/endswith arguments. From bwarsaw@cnri.reston.va.us Fri Jun 11 18:51:13 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Fri, 11 Jun 1999 13:51:13 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib/test test_string.py Message-ID: <199906111751.NAA00023@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib/test In directory anthem:/projects/python/develop/bwarsaw/src/Lib/test Modified Files: test_string.py Log Message: Two extra startswith tests From bwarsaw@cnri.reston.va.us Fri Jun 11 18:53:07 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Fri, 11 Jun 1999 13:53:07 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Objects stringobject.c Message-ID: <199906111753.NAA00041@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Objects In directory anthem:/projects/python/develop/bwarsaw/src/Objects Modified Files: Tag: string_methods stringobject.c Log Message: Get rid of splitfields as a method on string objects (only split is supported as a method, splitfields still exists in the string module). startswith(), endswith(): extended optional arguments start and end delineates the substring to compare. From guido@cnri.reston.va.us Fri Jun 11 19:26:10 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Fri, 11 Jun 1999 14:26:10 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib cgi.py Message-ID: <199906111826.OAA04031@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: cgi.py Log Message: After more discussion with Jim, change the behavior so that only a *missing* content-type at the outer level of a POST defaults to urlencoded. In all other circumstances, the default is read_singe(). From fdrake@weyr.cnri.reston.va.us Fri Jun 11 19:28:39 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Fri, 11 Jun 1999 14:28:39 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libos.tex Message-ID: <199906111828.OAA12956@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libos.tex Log Message: Added 'ce' to the list of "registered" values for os.name. Make references to the posix module hyperlinks. From fdrake@weyr.cnri.reston.va.us Fri Jun 11 19:31:02 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Fri, 11 Jun 1999 14:31:02 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libfpformat.tex Message-ID: <199906111831.OAA12999@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Added Files: libfpformat.tex Log Message: Documentation for the fpformat module by Moshe Zadka . From fdrake@weyr.cnri.reston.va.us Fri Jun 11 19:32:53 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Fri, 11 Jun 1999 14:32:53 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib lib.tex Message-ID: <199906111832.OAA13029@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: lib.tex Log Message: Add entry for the fpformat module. From fdrake@weyr.cnri.reston.va.us Fri Jun 11 19:36:43 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Fri, 11 Jun 1999 14:36:43 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc Makefile.deps Message-ID: <199906111836.OAA13080@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc In directory weyr:/home/fdrake/projects/python/Doc Modified Files: Makefile.deps Log Message: Add entry for the fpformat module. From fdrake@weyr.cnri.reston.va.us Mon Jun 14 16:40:25 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Mon, 14 Jun 1999 11:40:25 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib rfc822.py Message-ID: <199906141540.LAA20012@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory weyr:/home/fdrake/projects/python/Lib Modified Files: rfc822.py Log Message: Message.getheaders(): If there are no matching headers, return an empty list instead of None. (Guido's request.) From bwarsaw@cnri.reston.va.us Mon Jun 14 19:25:27 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Mon, 14 Jun 1999 14:25:27 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Objects stringobject.c Message-ID: <199906141825.OAA10846@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Objects In directory anthem:/projects/python/develop/bwarsaw/src/Objects Modified Files: Tag: string_methods stringobject.c Log Message: string_startswith(): fix potential array bounds read by making sure the end of the compare region doesn't go past the end of the target string. string_join(): Implements new sep.join(sequence) method. string_methods: Leave placeholders for ljust, rjust, center, zfill, expandtabs, capwords. From bwarsaw@cnri.reston.va.us Mon Jun 14 19:25:58 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Mon, 14 Jun 1999 14:25:58 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib string.py Message-ID: <199906141825.OAA10861@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory anthem:/projects/python/develop/bwarsaw/src/Lib Modified Files: Tag: string_methods string.py Log Message: join(): Use the new sep.join() string method. From bwarsaw@cnri.reston.va.us Mon Jun 14 19:38:16 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Mon, 14 Jun 1999 14:38:16 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib string.py Message-ID: <199906141838.OAA10899@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory anthem:/projects/python/develop/bwarsaw/src/Lib Modified Files: Tag: string_methods string.py Log Message: Don't get join/joinfields from strop anymore From bwarsaw@cnri.reston.va.us Mon Jun 14 19:38:42 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Mon, 14 Jun 1999 14:38:42 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib/test test_string.py Message-ID: <199906141838.OAA10914@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib/test In directory anthem:/projects/python/develop/bwarsaw/src/Lib/test Modified Files: test_string.py Log Message: Added more tests of join From fdrake@weyr.cnri.reston.va.us Mon Jun 14 20:47:48 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Mon, 14 Jun 1999 15:47:48 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libcgihttp.tex libsimplehttp.tex liblinecache.tex Message-ID: <199906141947.PAA23078@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Added Files: libcgihttp.tex libsimplehttp.tex liblinecache.tex Log Message: New sections from Moshe Zadka . These document CGIHTTPServer, SimpleHTTPServer, and linecache. From fdrake@weyr.cnri.reston.va.us Mon Jun 14 20:49:51 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Mon, 14 Jun 1999 15:49:51 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib lib.tex libbasehttp.tex libundoc.tex Message-ID: <199906141949.PAA23116@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: lib.tex libbasehttp.tex libundoc.tex Log Message: Misc. changes related to the new sections. From fdrake@weyr.cnri.reston.va.us Mon Jun 14 20:52:10 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Mon, 14 Jun 1999 15:52:10 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc Makefile.deps Message-ID: <199906141952.PAA23157@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc In directory weyr:/home/fdrake/projects/python/Doc Modified Files: Makefile.deps Log Message: Added entries for new sections from Moshe. From guido@cnri.reston.va.us Tue Jun 15 15:35:48 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 15 Jun 1999 10:35:48 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Modules cStringIO.c Message-ID: <199906151435.KAA03250@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Modules In directory eric:/projects/python/develop/guido/src/Modules Modified Files: cStringIO.c Log Message: New version from Jim: don't call Py_FatalError() when initialization fails. From guido@cnri.reston.va.us Tue Jun 15 15:36:59 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 15 Jun 1999 10:36:59 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Modules cPickle.c Message-ID: <199906151436.KAA03270@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Modules In directory eric:/projects/python/develop/guido/src/Modules Modified Files: cPickle.c Log Message: New version from Jim: - Don't call Py_FatalError() when initialization fails. - Fix bogus use of return value from PyRun_String(). - Fix misc. compiler errors on some platforms. From bwarsaw@cnri.reston.va.us Tue Jun 15 17:49:11 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Tue, 15 Jun 1999 12:49:11 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib/test test_string.py Message-ID: <199906151649.MAA05408@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib/test In directory anthem:/projects/python/develop/bwarsaw/src/Lib/test Modified Files: test_string.py Log Message: Added a couple of endswith test cases for bugs reported by Timbot. Also added a short circuit for the regression test suite since CVS insisted on putting this file in the main branch. :( From fdrake@weyr.cnri.reston.va.us Tue Jun 15 18:31:01 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 15 Jun 1999 13:31:01 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libcfgparser.tex Message-ID: <199906151731.NAA00503@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libcfgparser.tex Log Message: Several new index entries to make find this easier. Noted that name=value is allowed in addition to name: value. From guido@cnri.reston.va.us Tue Jun 15 19:06:21 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 15 Jun 1999 14:06:21 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib rfc822.py Message-ID: <199906151806.OAA04078@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: rfc822.py Log Message: Barry Scott writes: Problem: rfc822.py in 1.5.2 final loses the quotes around quoted local-part names. The fix is to preserve the quotes around a local-part name in an address. Test: import rfc822 a = rfc822.AddrlistClass('(Comment stuff) "Quoted name"@somewhere.com') a.getaddrlist() The correct result is: [('Comment stuff', '"Quoted name"@somewhere.com')] From guido@cnri.reston.va.us Tue Jun 15 19:56:47 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 15 Jun 1999 14:56:47 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib/test test_rfc822.py Message-ID: <199906151856.OAA04136@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib/test In directory eric:/projects/python/develop/guido/src/Lib/test Modified Files: test_rfc822.py Log Message: Add the test case provided by Barry Scott for his patch. From bwarsaw@cnri.reston.va.us Tue Jun 15 20:47:34 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Tue, 15 Jun 1999 15:47:34 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Objects intobject.c Message-ID: <199906151947.PAA09682@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Objects In directory anthem:/projects/python/develop/bwarsaw/src/Objects Modified Files: Tag: string_methods intobject.c Log Message: Added #include to make compilers happy. From bwarsaw@cnri.reston.va.us Tue Jun 15 21:01:15 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Tue, 15 Jun 1999 16:01:15 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Objects stringobject.c Message-ID: <199906152001.QAA09823@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Objects In directory anthem:/projects/python/develop/bwarsaw/src/Objects Modified Files: Tag: string_methods stringobject.c Log Message: (join__doc__): fix typo found by Tim string_endswith(): Fixed end case bug found by Tim. From fdrake@weyr.cnri.reston.va.us Tue Jun 15 21:56:42 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 15 Jun 1999 16:56:42 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib liboperator.tex Message-ID: <199906152056.QAA01159@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: liboperator.tex Log Message: Added note to __not__() description that this operation is defined only by the interpreter core and is not overridable by objects. Based on comment from David Ascher on the list. From bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Tue Jun 15 22:53:13 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) (Barry A. Warsaw) Date: Tue, 15 Jun 1999 17:53:13 -0400 (EDT) Subject: [Python-checkins] String methods... finally Message-ID: <14182.52041.160634.77558@anthem.cnri.reston.va.us> I've finally checked my string methods changes into the Python source tree, albeit on a CVS branch (see below). These changes are outgrowths of discussions we've had on the string-sig and other forums, with Greg Stein giving lots of very useful early feedback. I call these changes controversial (hence the branch) because Guido hasn't had much opportunity to play with them yet. Now that he -- and you -- can check them out, I'm sure I'll get lots more feedback! First, to check them out you need to switch to the string_methods CVS branch. On Un*x: cvs update -r string_methods You might want to do this in a separate tree because this will sticky tag your tree to this branch. If so, try cvs checkout -r string_methods python General information on the Python CVS tree is available at http://www.python.org/download/cvs.html Here's a brief summary of the changes... Strings now have as methods most of the functions that were previously only in the string module. If you've played with JPython, you've already had this feature for a while. So you can do: Python 1.5.2+ (#1, Jun 10 1999, 18:22:14) [GCC 2.8.1] on sunos5 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> s = 'Hello There Devheads' >>> s.lower() 'hello there devheads' >>> s.upper() 'HELLO THERE DEVHEADS' >>> s.split() ['Hello', 'There', 'Devheads'] >>> 'hello'.upper() 'HELLO' that sort of thing. Not all of the string.py functions have been added as methods, although most of the missing ones (e.g. ljust, rjust, center, zfill, expandtabs, capwords) will probably be added at some point. Two new methods startswith and endswith act like their Java cousins. join has interesting new semantics thanks to Tim Peters. Use it as a method on the separator string: >>> '-!-'.join(['hello', 'string', 'SIG' ]) 'hello-!-string-!-SIG' which reads naturally if you assign the separator to a meaningful variable: >>> space = ' ' >>> empty = '' >>> dash = '-' >>> space.join(['that', 'seems', 'natural']) 'that seems natural' >>> empty.join(['that', 'seems', 'natural']) 'thatseemsnatural' >>> dash.join(['that', 'seems', 'natural']) 'that-seems-natural' The string module has been rewritten to be backwards compatible. No code should break, though some small performance degradation is possible. Guido and I decided that was acceptable. What else? Some cleaning up of the internals based on Greg's suggestions. A couple of new C API additions. Builtin int(), long(), and float() have grown a few new features. I believe they are essentially interchangable with string.atoi(), string.atol(), and string.float() now. Still to do: - add the string.py functions that never had a C implementation - synchronize CPython and JPython - document this stuff - integrate Unicode (waiting to see what /F and MarkH come up with) Enjoy, -Barry From guido@cnri.reston.va.us Tue Jun 15 23:25:33 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 15 Jun 1999 18:25:33 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib SocketServer.py Message-ID: <199906152225.SAA04997@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: SocketServer.py Log Message: Laurence Tratt notes that the accept() call in get_request() can fail, and suggests putting a try/except around the get_request() call in handle_request(). (All in class TCPServer.) From guido@cnri.reston.va.us Wed Jun 16 13:25:35 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 16 Jun 1999 08:25:35 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib chunk.py Message-ID: <199906161225.IAA05840@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: chunk.py Log Message: Sjoerd Mullender: Added support for unseekable files. (I use unqualified excepts since we don't know why the seek/tell might fail. In my case it was because of an AttributeError.) From guido@cnri.reston.va.us Wed Jun 16 13:28:13 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 16 Jun 1999 08:28:13 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib pyclbr.py Message-ID: <199906161228.IAA05873@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: pyclbr.py Log Message: Suppress warning print statements about modules not found, they are confusing to end users of IDEs. From guido@cnri.reston.va.us Wed Jun 16 18:28:38 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 16 Jun 1999 13:28:38 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Python bltinmodule.c Message-ID: <199906161728.NAA06572@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Python In directory eric:/projects/python/develop/guido/src/Python Modified Files: bltinmodule.c Log Message: Patch by Jim Fulton (code style tweaked a bit) to support ExtensionClasses in isinstance() and issubclass(). - abstract instance and class protocols are used *only* in those cases that would generate errors before the patch. That is, there's no penalty for the normal case. - instance protocol: an object smells like an instance if it has a __class__ attribute that smells like a class. - class protocol: an object smells like a class if it has a __bases__ attribute that is a tuple with elements that smell like classes (although not all elements may actually get sniffed ;). From fdrake@weyr.cnri.reston.va.us Thu Jun 17 16:11:36 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 17 Jun 1999 11:11:36 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libcmp.tex libcmpcache.tex libdircache.tex libnew.tex libstatcache.tex libwave.tex Message-ID: <199906171511.LAA10711@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Added Files: libcmp.tex libcmpcache.tex libdircache.tex libnew.tex libstatcache.tex libwave.tex Log Message: New module documentation sections from Moshe Zadka ! From fdrake@weyr.cnri.reston.va.us Thu Jun 17 16:12:17 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 17 Jun 1999 11:12:17 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib lib.tex libundoc.tex Message-ID: <199906171512.LAA10742@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: lib.tex libundoc.tex Log Message: Add/remove entries due to additional sections from Moshe. From fdrake@weyr.cnri.reston.va.us Thu Jun 17 16:12:51 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 17 Jun 1999 11:12:51 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc Makefile.deps Message-ID: <199906171512.LAA10770@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc In directory weyr:/home/fdrake/projects/python/Doc Modified Files: Makefile.deps Log Message: Add entries due to additional sections from Moshe. From fdrake@weyr.cnri.reston.va.us Thu Jun 17 16:18:49 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 17 Jun 1999 11:18:49 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib wave.py Message-ID: <199906171518.LAA10930@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory weyr:/home/fdrake/projects/python/Lib Modified Files: wave.py Log Message: open(): Make the mode parameter optional; if omitted or None, use the mode attribute of the file object (if it has one), otherwise use 'rb'. The documentation should still show this as required until there's a new release. From fdrake@weyr.cnri.reston.va.us Thu Jun 17 16:20:46 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 17 Jun 1999 11:20:46 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc TODO Message-ID: <199906171520.LAA11044@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc In directory weyr:/home/fdrake/projects/python/Doc Modified Files: TODO Log Message: Add reminder that wave.open() documentation should be updated for the next Python release. From guido@cnri.reston.va.us Thu Jun 17 16:41:34 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Thu, 17 Jun 1999 11:41:34 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib SocketServer.py Message-ID: <199906171541.LAA09396@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: SocketServer.py Log Message: In collect_children(), put a try-except around os.waitpid() because it may raise an exception (when there are no children). Reported by Andy Dustman. From fdrake@weyr.cnri.reston.va.us Thu Jun 17 17:10:41 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 17 Jun 1999 12:10:41 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libwave.tex Message-ID: <199906171610.MAA11295@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libwave.tex Log Message: Small markup and English usage nits. From fdrake@weyr.cnri.reston.va.us Thu Jun 17 17:38:20 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 17 Jun 1999 12:38:20 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib liblinecache.tex Message-ID: <199906171638.MAA11721@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: liblinecache.tex Log Message: Small English usage nits. From fdrake@weyr.cnri.reston.va.us Thu Jun 17 18:09:25 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 17 Jun 1999 13:09:25 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libstatcache.tex Message-ID: <199906171709.NAA11840@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libstatcache.tex Log Message: Minor markup nits. From fdrake@weyr.cnri.reston.va.us Thu Jun 17 18:40:53 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 17 Jun 1999 13:40:53 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libcmpcache.tex Message-ID: <199906171740.NAA12302@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libcmpcache.tex Log Message: Updated version from Moshe, with a re-written warning about the side-effect of cmpcache.cmp() using statcache.stat() internally. From fdrake@weyr.cnri.reston.va.us Thu Jun 17 19:15:08 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 17 Jun 1999 14:15:08 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libnew.tex Message-ID: <199906171815.OAA12576@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libnew.tex Log Message: Correction: the parameters of new.instance() are type-checked. Edited several of the descriptions for English usage and more consistent style. From guido@cnri.reston.va.us Thu Jun 17 19:41:42 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Thu, 17 Jun 1999 14:41:42 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib ConfigParser.py Message-ID: <199906171841.OAA09907@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: ConfigParser.py Log Message: Patch suggested (and partially provided) by Lars Damerow: instead of always lowercasing the option name, call a method optionxform() which can be overridden. Also make the regexps SECTRE and OPTRE non-private variables so they can also be overridden. From fdrake@weyr.cnri.reston.va.us Thu Jun 17 19:49:19 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 17 Jun 1999 14:49:19 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/tools listmodules Message-ID: <199906171849.OAA12952@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/tools In directory weyr:/home/fdrake/projects/python/Doc/tools Modified Files: listmodules Log Message: When looking for things that might be modules, include *module.c from the Modules/ directory. Most of the remaining undocumented modules seem to be living there. From fdrake@weyr.cnri.reston.va.us Thu Jun 17 19:58:04 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 17 Jun 1999 14:58:04 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libnew.tex Message-ID: <199906171858.OAA13021@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libnew.tex Log Message: Small markup & usage adjustments. From guido@cnri.reston.va.us Thu Jun 17 20:12:40 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Thu, 17 Jun 1999 15:12:40 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Python bltinmodule.c Message-ID: <199906171912.PAA10052@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Python In directory eric:/projects/python/develop/guido/src/Python Modified Files: bltinmodule.c Log Message: # Darn! Local variable l declared but not used in abstract_issubclass(). From guido@CNRI.Reston.VA.US Fri Jun 18 15:55:45 1999 From: guido@CNRI.Reston.VA.US (Guido van Rossum) Date: Fri, 18 Jun 1999 10:55:45 -0400 Subject: [Python-checkins] Re: [Python-Dev] cvs problems In-Reply-To: Your message of "Fri, 18 Jun 1999 10:56:47 +0200." <001d01beb968$7fd47540$f29b12c2@pythonware.com> References: <015601beb964$f37a4fa0$0801a8c0@bobcat> <001d01beb968$7fd47540$f29b12c2@pythonware.com> Message-ID: <199906181455.KAA11564@eric.cnri.reston.va.us> > maybe not the right forum, but I suppose everyone > here is using CVS, so... > > ...could anyone explain why I keep getting this error? > > $ cvs -z6 up -P -d > ... > cvs server: Updating dist/src/Tools/ht2html > cvs [server aborted]: cannot open directory /projects/cvsroot/python/dist/src/Tools/ht2html: No such > file or directory > > it used to work... EXPLANATION: For some reason that directory existed on the mirror server but not in the master CVS tree repository. It was created once but quickly deleted -- not quickly enough apparently to prevent it to leak to the slave. Then we did a global resync from the master to the mirror and that wiped out the mirror version. Good riddance. FIX: Edit Tools/CVS/Entries and delete the line that mentions ht2html, then do another cvs update. --Guido van Rossum (home page: http://www.python.org/~guido/) From fdrake@weyr.cnri.reston.va.us Fri Jun 18 16:21:27 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Fri, 18 Jun 1999 11:21:27 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libundoc.tex Message-ID: <199906181521.LAA16826@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libundoc.tex Log Message: fpformat has been documented for at least a week now! From guido@CNRI.Reston.VA.US Fri Jun 18 16:54:56 1999 From: guido@CNRI.Reston.VA.US (Guido van Rossum) Date: Fri, 18 Jun 1999 11:54:56 -0400 Subject: [Python-checkins] CVS: python/dist/src/Python pystate.c Message-ID: <199906181554.LAA11705@eric.cnri.reston.va.us> Resending -- this bounced due to an unknown glitch... --Guido van Rossum (home page: http://www.python.org/~guido/) Update of /projects/cvsroot/python/dist/src/Python In directory eric:/projects/python/develop/guido/src/Python Modified Files: pystate.c Log Message: CRITICAL PATCH! We occasionally received reports from people getting "invalid tstate" crashes (this is a fatal error in PyThreadState_Delete()). Finally several people were able to reproduce it reliably and Tim Peters discovered that there is a race condition when multiple threads are calling this function without holding the global interpreter lock (the function may be called without holding that). Solved the race condition by adding a lock around the mutating uses of interp->tstate_head. Tim and Jonathan Giddy have run tests that make it likely that this fixes the crashes -- although Tim hasn't heard from the person who reported the original problem. From fdrake@weyr.cnri.reston.va.us Fri Jun 18 18:12:16 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Fri, 18 Jun 1999 13:12:16 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libundoc.tex Message-ID: <199906181712.NAA17586@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libundoc.tex Log Message: Re-categorize the dump module as obsolete. From fdrake@weyr.cnri.reston.va.us Fri Jun 18 18:12:36 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Fri, 18 Jun 1999 13:12:36 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib dump.py Message-ID: <199906181712.NAA17613@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory weyr:/home/fdrake/projects/python/Lib Removed Files: dump.py Log Message: Relocating file to Lib/lib-old. From fdrake@weyr.cnri.reston.va.us Fri Jun 18 20:11:26 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Fri, 18 Jun 1999 15:11:26 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libos.tex Message-ID: <199906181911.PAA18251@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libos.tex Log Message: Further clarfication of the system-dependence of the system() return value, based on comments from Tim Peters. From fdrake@weyr.cnri.reston.va.us Fri Jun 18 20:17:30 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Fri, 18 Jun 1999 15:17:30 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/ext ext.tex Message-ID: <199906181917.PAA18286@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/ext In directory weyr:/home/fdrake/projects/python/Doc/ext Modified Files: ext.tex Log Message: Added paragraph about potential re-initialization of extension modules; responding to suggestion by Robin Boerdijk . From fdrake@weyr.cnri.reston.va.us Fri Jun 18 20:59:00 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Fri, 18 Jun 1999 15:59:00 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libundoc.tex Message-ID: <199906181959.PAA18983@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libundoc.tex Log Message: Added a few minor comments, mostly to discourage documentation of really old modules that may become obsolete. From guido@CNRI.Reston.VA.US Mon Jun 21 18:30:46 1999 From: guido@CNRI.Reston.VA.US (Guido van Rossum) Date: Mon, 21 Jun 1999 13:30:46 -0400 Subject: [Python-checkins] CVS: python/dist/src/Lib/lib-tk Tkinter.py Message-ID: <199906211730.NAA14718@eric.cnri.reston.va.us> [Another resend] Update of /projects/cvsroot/python/dist/src/Lib/lib-tk In directory eric:/projects/python/develop/guido/src/Lib/lib-tk Modified Files: Tkinter.py Log Message: Greg McFarlane submitted two missing Text methods: mark_next() and mark_previous(). From fdrake@weyr.cnri.reston.va.us Mon Jun 21 19:25:50 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Mon, 21 Jun 1999 14:25:50 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libpipes.tex librlcompleter.tex libstatvfs.tex lib.tex Message-ID: <199906211825.OAA25263@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: lib.tex Added Files: libpipes.tex librlcompleter.tex libstatvfs.tex Log Message: Three more modules documented by Moshe! From fdrake@weyr.cnri.reston.va.us Mon Jun 21 19:36:12 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Mon, 21 Jun 1999 14:36:12 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libpipes.tex Message-ID: <199906211836.OAA25582@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libpipes.tex Log Message: Fix a markup error. From fdrake@weyr.cnri.reston.va.us Mon Jun 21 22:14:31 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Mon, 21 Jun 1999 17:14:31 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib lib.tex Message-ID: <199906212114.RAA27986@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: lib.tex Log Message: Added entry for curses module. From fdrake@weyr.cnri.reston.va.us Mon Jun 21 22:13:52 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Mon, 21 Jun 1999 17:13:52 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc Makefile.deps Message-ID: <199906212113.RAA27963@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc In directory weyr:/home/fdrake/projects/python/Doc Modified Files: Makefile.deps Log Message: Added entries for four of Moshe's documentation sections. From fdrake@weyr.cnri.reston.va.us Mon Jun 21 22:20:58 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Mon, 21 Jun 1999 17:20:58 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libhtmllib.tex Message-ID: <199906212120.RAA28127@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libhtmllib.tex Log Message: Added some "See also" references to htmllib docs. Documented htmlentitydefs. From fdrake@weyr.cnri.reston.va.us Mon Jun 21 22:13:12 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Mon, 21 Jun 1999 17:13:12 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libcurses.tex Message-ID: <199906212113.RAA27942@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Added Files: libcurses.tex Log Message: Preliminary documentation for the curses module by Moshe Zadka, with lots of markup fixes and some English nits fixed. Still needs real review. Some of the function signatures used in this module are really bad! (Two leading optional parameters? Ugh!) From guido@cnri.reston.va.us Mon Jun 21 21:51:47 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Mon, 21 Jun 1999 16:51:47 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src README Message-ID: <199906212051.QAA18379@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src In directory eric:/projects/python/develop/guido/src Modified Files: README Log Message: Add warning FreeBSD users of a problem with curses and termcap, submitted by Klaus-Juergen Wolf. From guido@cnri.reston.va.us Mon Jun 21 23:36:54 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Mon, 21 Jun 1999 18:36:54 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/freeze winmakemakefile.py Message-ID: <199906212236.SAA18795@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/freeze In directory eric:/projects/python/develop/guido/src/Tools/freeze Modified Files: winmakemakefile.py Log Message: Patch submitted by Toby Dickenson and approved by Mark Hammond. Toby writes: winmakemakefile.py tries to allow for spaces in the python install path, by adding quotes around the appropriate filenames. It doesn't quite get this correct; sometimes the quotes end up in the middle of the path. Microsoft's NMAKE version 6.0 is happy with this (!!!!) unless there is also a space in the name. I guess most users of freeze on windows do not use the same path as the binary distribution. I've tested the following changes on systems with and without a space in the path. From guido@cnri.reston.va.us Tue Jun 22 15:46:44 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 22 Jun 1999 10:46:44 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Include pyerrors.h Message-ID: <199906221446.KAA19880@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Include In directory eric:/projects/python/develop/guido/src/Include Modified Files: pyerrors.h Log Message: Patch by Tim Peters: Introduce a new builtin exception, UnboundLocalError, raised when ceval.c tries to retrieve or delete a local name that isn't bound to a value. Currently raises NameError, which makes this behavior a FAQ since the same error is raised for "missing" global names too: when the user has a global of the same name as the unbound local, NameError makes no sense to them. Even in the absence of shadowing, knowing whether a bogus name is local or global is a real aid to quick understanding. Example: D:\src\PCbuild>type local.py x = 42 def f(): print x x = 13 return x f() D:\src\PCbuild>python local.py Traceback (innermost last): File "local.py", line 8, in ? f() File "local.py", line 4, in f print x UnboundLocalError: x D:\src\PCbuild> Note that UnboundLocalError is a subclass of NameError, for compatibility with existing class-exception code that may be trying to catch this as a NameError. Unfortunately, I see no way to make this wholly compatible with -X (see comments in bltinmodule.c): under -X, [UnboundLocalError is an alias for NameError --GvR]. [The ceval.c patch differs slightly from the second version that Tim submitted; I decided not to raise UnboundLocalError for DELETE_NAME, only for DELETE_LOCAL. DELETE_NAME is only generated at the module level, and since at that level a NameError is raised for referencing an undefined name, it should also be raised for deleting one.] From guido@cnri.reston.va.us Tue Jun 22 15:47:32 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 22 Jun 1999 10:47:32 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib exceptions.py Message-ID: <199906221447.KAA19911@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: exceptions.py Log Message: Patch by Tim Peters: Introduce a new builtin exception, UnboundLocalError, raised when ceval.c tries to retrieve or delete a local name that isn't bound to a value. Currently raises NameError, which makes this behavior a FAQ since the same error is raised for "missing" global names too: when the user has a global of the same name as the unbound local, NameError makes no sense to them. Even in the absence of shadowing, knowing whether a bogus name is local or global is a real aid to quick understanding. Example: D:\src\PCbuild>type local.py x = 42 def f(): print x x = 13 return x f() D:\src\PCbuild>python local.py Traceback (innermost last): File "local.py", line 8, in ? f() File "local.py", line 4, in f print x UnboundLocalError: x D:\src\PCbuild> Note that UnboundLocalError is a subclass of NameError, for compatibility with existing class-exception code that may be trying to catch this as a NameError. Unfortunately, I see no way to make this wholly compatible with -X (see comments in bltinmodule.c): under -X, [UnboundLocalError is an alias for NameError --GvR]. [The ceval.c patch differs slightly from the second version that Tim submitted; I decided not to raise UnboundLocalError for DELETE_NAME, only for DELETE_LOCAL. DELETE_NAME is only generated at the module level, and since at that level a NameError is raised for referencing an undefined name, it should also be raised for deleting one.] From guido@cnri.reston.va.us Tue Jun 22 15:47:33 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 22 Jun 1999 10:47:33 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Python bltinmodule.c ceval.c Message-ID: <199906221447.KAA19922@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Python In directory eric:/projects/python/develop/guido/src/Python Modified Files: bltinmodule.c ceval.c Log Message: Patch by Tim Peters: Introduce a new builtin exception, UnboundLocalError, raised when ceval.c tries to retrieve or delete a local name that isn't bound to a value. Currently raises NameError, which makes this behavior a FAQ since the same error is raised for "missing" global names too: when the user has a global of the same name as the unbound local, NameError makes no sense to them. Even in the absence of shadowing, knowing whether a bogus name is local or global is a real aid to quick understanding. Example: D:\src\PCbuild>type local.py x = 42 def f(): print x x = 13 return x f() D:\src\PCbuild>python local.py Traceback (innermost last): File "local.py", line 8, in ? f() File "local.py", line 4, in f print x UnboundLocalError: x D:\src\PCbuild> Note that UnboundLocalError is a subclass of NameError, for compatibility with existing class-exception code that may be trying to catch this as a NameError. Unfortunately, I see no way to make this wholly compatible with -X (see comments in bltinmodule.c): under -X, [UnboundLocalError is an alias for NameError --GvR]. [The ceval.c patch differs slightly from the second version that Tim submitted; I decided not to raise UnboundLocalError for DELETE_NAME, only for DELETE_LOCAL. DELETE_NAME is only generated at the module level, and since at that level a NameError is raised for referencing an undefined name, it should also be raised for deleting one.] From fdrake@weyr.cnri.reston.va.us Tue Jun 22 19:49:22 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 22 Jun 1999 14:49:22 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libchunk.tex Message-ID: <199906221849.OAA15631@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Added Files: libchunk.tex Log Message: New section from Moshe Zadka, modified by FLD for markup, some additional content. From fdrake@weyr.cnri.reston.va.us Tue Jun 22 19:49:46 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 22 Jun 1999 14:49:46 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib lib.tex Message-ID: <199906221849.OAA15659@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: lib.tex Log Message: Added entry for the chunk module. From fdrake@weyr.cnri.reston.va.us Tue Jun 22 19:50:07 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 22 Jun 1999 14:50:07 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc Makefile.deps Message-ID: <199906221850.OAA15747@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc In directory weyr:/home/fdrake/projects/python/Doc Modified Files: Makefile.deps Log Message: Added entry for the chunk module. From fdrake@weyr.cnri.reston.va.us Tue Jun 22 22:23:24 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 22 Jun 1999 17:23:24 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib aifc.py sunau.py Message-ID: <199906222123.RAA24051@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory weyr:/home/fdrake/projects/python/Lib Modified Files: aifc.py sunau.py Log Message: Make the mode parameter to open() default in the same way as for wave.open(). From fdrake@weyr.cnri.reston.va.us Wed Jun 23 14:33:41 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Wed, 23 Jun 1999 09:33:41 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libsunau.tex libcodeop.tex Message-ID: <199906231333.JAA27396@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Added Files: libsunau.tex libcodeop.tex Log Message: Two more from Moshe! From fdrake@weyr.cnri.reston.va.us Wed Jun 23 14:34:06 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Wed, 23 Jun 1999 09:34:06 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib lib.tex Message-ID: <199906231334.JAA27421@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: lib.tex Log Message: Added more sections... From fdrake@weyr.cnri.reston.va.us Wed Jun 23 14:34:23 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Wed, 23 Jun 1999 09:34:23 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc Makefile.deps Message-ID: <199906231334.JAA27439@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc In directory weyr:/home/fdrake/projects/python/Doc Modified Files: Makefile.deps Log Message: Added more sections... From fdrake@weyr.cnri.reston.va.us Wed Jun 23 15:30:20 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Wed, 23 Jun 1999 10:30:20 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libtty.tex Message-ID: <199906231430.KAA28198@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Added Files: libtty.tex Log Message: tty module documentation from Moshe, with some editing and an added "See also" section. From fdrake@weyr.cnri.reston.va.us Wed Jun 23 15:56:15 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Wed, 23 Jun 1999 10:56:15 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libundoc.tex Message-ID: <199906231456.KAA28350@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libundoc.tex Log Message: Various updates. From fdrake@weyr.cnri.reston.va.us Wed Jun 23 16:12:13 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Wed, 23 Jun 1999 11:12:13 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libtermios.tex Message-ID: <199906231512.LAA28834@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libtermios.tex Log Message: Added "See Also" section for termios module. From fdrake@weyr.cnri.reston.va.us Wed Jun 23 18:28:03 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Wed, 23 Jun 1999 13:28:03 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libcurses.tex Message-ID: <199906231728.NAA29300@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libcurses.tex Log Message: Updates from Moshe, again edited by me. Describe the parameters to border() using a table instead of text for ease of comprehension. From fdrake@weyr.cnri.reston.va.us Wed Jun 23 18:29:02 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Wed, 23 Jun 1999 13:29:02 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc Makefile.deps Message-ID: <199906231729.NAA29342@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc In directory weyr:/home/fdrake/projects/python/Doc Modified Files: Makefile.deps Log Message: Add entries for tty module. From fdrake@weyr.cnri.reston.va.us Wed Jun 23 18:29:03 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Wed, 23 Jun 1999 13:29:03 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib lib.tex Message-ID: <199906231729.NAA29353@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: lib.tex Log Message: Add entries for tty module. From fdrake@weyr.cnri.reston.va.us Wed Jun 23 18:32:00 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Wed, 23 Jun 1999 13:32:00 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libundoc.tex Message-ID: <199906231732.NAA29415@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libundoc.tex Log Message: Removed tty module entry. From guido@cnri.reston.va.us Wed Jun 23 22:37:58 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 23 Jun 1999 17:37:58 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/freeze checkextensions.py Message-ID: <199906232137.RAA25946@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/freeze In directory eric:/projects/python/develop/guido/src/Tools/freeze Modified Files: checkextensions.py Log Message: Simplified version of a patch by Chih-Hao Huang, who wrote: """ When there are additional Setup files, specified by -e option of freeze, checkextenstions.py assumes that *.o, *.a, -Lpath, and -Rpath are all relative to where the Setup file is. select() inserts the path to the Setup file to make them absolute. However, the assumption is not true. There are cases that absolute paths are specified for them. The inserted prefix, by select(), results in error. The following fix check for absolute paths. The assumption is: an absolute path begins with either '/' or '$'. In the latter case, it is from the environmental variable. (Variables defined locally in the Setup file have already been handled by expandvars()) """ My version of the patch has been verified by Charles Waldman (a colleague of Chih-Hao). From guido@cnri.reston.va.us Thu Jun 24 00:27:05 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 23 Jun 1999 19:27:05 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib repr.py Message-ID: <199906232327.TAA26304@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: repr.py Log Message: Small patch by Tim Peters - it was using self.maxlist when it should be using self.maxdict. From guido@cnri.reston.va.us Thu Jun 24 16:27:37 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Thu, 24 Jun 1999 11:27:37 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib urllib.py Message-ID: <199906241527.LAA27869@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: urllib.py Log Message: Sjoerd Mullender writes: Urllib makes the URL of the opened file available through the geturl method of the returned object. For local files, this consists of file: plus the name of the file. This results in an invalid URL if the file name was relative. This patch fixes this so that the returned URL is just a relative URL in that case. When the file name is absolute, the URL returned is of the form file:///absolute/path. [I guess that a URL of the form "file:foo.html" is illegal... GvR] From guido@cnri.reston.va.us Thu Jun 24 18:58:45 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Thu, 24 Jun 1999 13:58:45 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libfcntl.tex Message-ID: <199906241758.NAA28552@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory eric:/projects/python/develop/guido/Doc/lib Modified Files: libfcntl.tex Log Message: Clarify the example by explicitly importing the fcntl module -- this avoid being fooled into thinking that fcntl and FCNTL are the same thing -- they aren't! (fcntl is the extension, FCNTL.py is h2py output that defines all the constants). (XXX The example is still weird -- I think there's a more portable way to do locking now. That's for someone else to fix...) From guido@cnri.reston.va.us Fri Jun 25 15:12:51 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Fri, 25 Jun 1999 10:12:51 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib cmp.py Message-ID: <199906251412.KAA04438@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: cmp.py Log Message: Patch by Mikael Lyngvig: 1. Fix incorrect file open mode on Win32 platforms (use "rb" instead of "r"). 2. Add shallow parameter to cmp.cmp(). If false, deep file comparisons are made. The module should be 100 percent backwards compatible. From guido@cnri.reston.va.us Fri Jun 25 15:21:45 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Fri, 25 Jun 1999 10:21:45 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib cmpcache.py Message-ID: <199906251421.KAA04521@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: cmpcache.py Log Message: Mikael Lyngvig writes: I just noticed that the changes below also apply to cmpcache.py, which is virtually identical to cmp.py. From fdrake@weyr.cnri.reston.va.us Fri Jun 25 15:58:45 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Fri, 25 Jun 1999 10:58:45 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib chunk.py Message-ID: <199906251458.KAA12425@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory weyr:/home/fdrake/projects/python/Lib Modified Files: chunk.py Log Message: Patch from Sjoerd Mullender: Make argument names equal to what is used in the documentation of the file object, since chunks are supposedly file-like. From guido@cnri.reston.va.us Fri Jun 25 16:53:56 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Fri, 25 Jun 1999 11:53:56 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib/lib-tk tkSimpleDialog.py Message-ID: <199906251553.LAA04722@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib/lib-tk In directory eric:/projects/python/develop/guido/src/Lib/lib-tk Modified Files: tkSimpleDialog.py Log Message: Break some cycles when the widget is destroyed. From guido@cnri.reston.va.us Fri Jun 25 17:00:30 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Fri, 25 Jun 1999 12:00:30 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle CallTips.py Message-ID: <199906251600.MAA04755@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: CallTips.py Log Message: Add close() method that breaks a cycle. From guido@cnri.reston.va.us Fri Jun 25 17:01:19 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Fri, 25 Jun 1999 12:01:19 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle FormatParagraph.py Message-ID: <199906251601.MAA04775@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: FormatParagraph.py Log Message: Add close() method that breaks a cycle. From guido@cnri.reston.va.us Fri Jun 25 17:02:23 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Fri, 25 Jun 1999 12:02:23 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle IOBinding.py Message-ID: <199906251602.MAA04795@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: IOBinding.py Log Message: Add close() method that breaks a cycle. From guido@cnri.reston.va.us Fri Jun 25 17:03:20 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Fri, 25 Jun 1999 12:03:20 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle WidgetRedirector.py Message-ID: <199906251603.MAA04815@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: WidgetRedirector.py Log Message: Add unregister() method. Unregister everything at closing. Don't call close() in __del__, rely on explicit call to close(). From guido@cnri.reston.va.us Fri Jun 25 17:04:39 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Fri, 25 Jun 1999 12:04:39 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle Percolator.py Message-ID: <199906251604.MAA04837@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: Percolator.py Log Message: Add close() method that breaks cycles. From guido@cnri.reston.va.us Fri Jun 25 17:06:30 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Fri, 25 Jun 1999 12:06:30 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle EditorWindow.py Message-ID: <199906251606.MAA04856@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: EditorWindow.py Log Message: Add _close() method that does the actual cleanup (close() asks the user what they want first if there's unsaved stuff, and may cancel). It closes more than before. Add unload_extensions() method to unload all extensions; called from _close(). It calls an extension's close() method if it has one. From guido@cnri.reston.va.us Fri Jun 25 17:09:28 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Fri, 25 Jun 1999 12:09:28 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle PyShell.py Message-ID: <199906251609.MAA04880@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: PyShell.py Log Message: Extend _close() to break cycles. Break some other cycles too (and destroy the root when done). From guido@cnri.reston.va.us Fri Jun 25 18:07:58 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Fri, 25 Jun 1999 13:07:58 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle TreeWidget.py Message-ID: <199906251707.NAA05012@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: TreeWidget.py Log Message: Add destroy() method to recursively destroy a tree. From guido@cnri.reston.va.us Fri Jun 25 18:08:19 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Fri, 25 Jun 1999 13:08:19 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle ClassBrowser.py Message-ID: <199906251708.NAA05031@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: ClassBrowser.py Log Message: Destroy the tree when closing. From guido@cnri.reston.va.us Fri Jun 25 18:25:23 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Fri, 25 Jun 1999 13:25:23 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle Debugger.py Message-ID: <199906251725.NAA05091@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: Debugger.py Log Message: Break cycle on close. From guido@cnri.reston.va.us Fri Jun 25 18:26:35 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Fri, 25 Jun 1999 13:26:35 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle PyShell.py Message-ID: <199906251726.NAA05111@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: PyShell.py Log Message: Close debugger when closing. This may break a cycle. From fdrake@weyr.cnri.reston.va.us Fri Jun 25 18:52:18 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Fri, 25 Jun 1999 13:52:18 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libchunk.tex Message-ID: <199906251752.NAA13691@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libchunk.tex Log Message: Update to Sjoerd's documentation of the chunk module, with some additions from Moshe's version. Used my table for describing the chunk format, and added some markup and index entries. From fdrake@weyr.cnri.reston.va.us Fri Jun 25 19:52:46 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Fri, 25 Jun 1999 14:52:46 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libsched.tex Message-ID: <199906251852.OAA14217@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Added Files: libsched.tex Log Message: Moshe's section on the sched module, with edits. From fdrake@weyr.cnri.reston.va.us Fri Jun 25 19:53:24 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Fri, 25 Jun 1999 14:53:24 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib sched.py Message-ID: <199906251853.OAA14235@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory weyr:/home/fdrake/projects/python/Lib Modified Files: sched.py Log Message: While we're at it, convert to docstrings and set the indentation level to 4. From fdrake@weyr.cnri.reston.va.us Fri Jun 25 19:54:30 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Fri, 25 Jun 1999 14:54:30 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc Makefile.deps Message-ID: <199906251854.OAA14362@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc In directory weyr:/home/fdrake/projects/python/Doc Modified Files: Makefile.deps Log Message: Add entries for the sched module. From fdrake@weyr.cnri.reston.va.us Fri Jun 25 19:54:31 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Fri, 25 Jun 1999 14:54:31 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib lib.tex Message-ID: <199906251854.OAA14374@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: lib.tex Log Message: Add entries for the sched module. From fdrake@weyr.cnri.reston.va.us Fri Jun 25 20:13:37 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Fri, 25 Jun 1999 15:13:37 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libsched.tex Message-ID: <199906251913.PAA14726@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libsched.tex Log Message: Fix some typos. Add an index entry. From fdrake@weyr.cnri.reston.va.us Sun Jun 27 15:53:12 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Sun, 27 Jun 1999 10:53:12 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libsunaudio.tex Message-ID: <199906271453.KAA19245@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libsunaudio.tex Log Message: Separate documentation of SUNAUDIODEV from sunaudiodev; this mirrors similar constructs elsewhere (al/AL, gl/GL/DEVICE). From fdrake@weyr.cnri.reston.va.us Sun Jun 27 16:00:42 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Sun, 27 Jun 1999 11:00:42 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libmutex.tex Message-ID: <199906271500.LAA19299@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Added Files: libmutex.tex Log Message: Mutex documentation from Moshe. From fdrake@weyr.cnri.reston.va.us Sun Jun 27 16:01:09 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Sun, 27 Jun 1999 11:01:09 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libnis.tex Message-ID: <199906271501.LAA19322@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Added Files: libnis.tex Log Message: NIS documentation from Moshe. From fdrake@weyr.cnri.reston.va.us Sun Jun 27 16:01:52 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Sun, 27 Jun 1999 11:01:52 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib lib.tex Message-ID: <199906271501.LAA19347@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: lib.tex Log Message: Added entries for mutex and nis modules. From fdrake@weyr.cnri.reston.va.us Sun Jun 27 16:02:38 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Sun, 27 Jun 1999 11:02:38 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc Makefile.deps Message-ID: <199906271502.LAA19370@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc In directory weyr:/home/fdrake/projects/python/Doc Modified Files: Makefile.deps Log Message: Added entries for mutex and nis modules. From bwarsaw@cnri.reston.va.us Tue Jun 29 00:15:28 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Mon, 28 Jun 1999 19:15:28 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Objects stringobject.c Message-ID: <199906282315.TAA04355@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Objects In directory anthem:/projects/python/develop/bwarsaw/src/Objects Modified Files: Tag: string_methods stringobject.c Log Message: string_methods[]: Only define the string methods when the macro STRING_METHODS is defined (not defined by default). From bwarsaw@cnri.reston.va.us Tue Jun 29 00:17:44 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Mon, 28 Jun 1999 19:17:44 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib stringold.py Message-ID: <199906282317.TAA04377@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory anthem:/projects/python/develop/bwarsaw/src/Lib Added Files: Tag: string_methods stringold.py Log Message: This is the `old' (i.e. pre string_methods) version of the file, used transitionally by the new string.py module. Hopefully this will be added to the correct CVS branch! From bwarsaw@cnri.reston.va.us Tue Jun 29 00:20:55 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Mon, 28 Jun 1999 19:20:55 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib string.py Message-ID: <199906282320.TAA04400@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory anthem:/projects/python/develop/bwarsaw/src/Lib Modified Files: Tag: string_methods string.py Log Message: If string objects do not have methods, then do a "from stringold import *" to get all the old implementations of string module functions. This is only transitional until string methods are accepted into the main branch. From fdrake@weyr.cnri.reston.va.us Tue Jun 29 22:21:20 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 29 Jun 1999 17:21:20 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libre.tex Message-ID: <199906292121.RAA26389@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libre.tex Log Message: For "Matching vs. Searching", remove comment that the section is incomplete; I don't remember what else I thought I was going to put in, but it looks o.k. to me know. From fdrake@weyr.cnri.reston.va.us Tue Jun 29 19:54:03 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 29 Jun 1999 14:54:03 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc TODO Message-ID: <199906291854.OAA24746@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc In directory weyr:/home/fdrake/projects/python/Doc Modified Files: TODO Log Message: Added some reminders. From fdrake@weyr.cnri.reston.va.us Tue Jun 29 19:12:22 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 29 Jun 1999 14:12:22 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc Makefile.deps Message-ID: <199906291812.OAA24517@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc In directory weyr:/home/fdrake/projects/python/Doc Modified Files: Makefile.deps Log Message: Added entry for pty module. From fdrake@weyr.cnri.reston.va.us Tue Jun 29 19:11:22 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 29 Jun 1999 14:11:22 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libpty.tex Message-ID: <199906291811.OAA24481@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Added Files: libpty.tex Log Message: pty documentation from Moshe; with small edits. From fdrake@weyr.cnri.reston.va.us Tue Jun 29 18:08:42 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 29 Jun 1999 13:08:42 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libtraceback.tex Message-ID: <199906291708.NAA23826@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libtraceback.tex Log Message: Improve description of the example. From fdrake@weyr.cnri.reston.va.us Tue Jun 29 19:13:37 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 29 Jun 1999 14:13:37 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libuserdict.tex Message-ID: <199906291813.OAA24542@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libuserdict.tex Log Message: Added some minor prose before the descriptions of the data attributes to make it clear that these are instance attributes, not module data. From fdrake@weyr.cnri.reston.va.us Tue Jun 29 19:11:50 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 29 Jun 1999 14:11:50 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib lib.tex Message-ID: <199906291811.OAA24499@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: lib.tex Log Message: Added entry for pty module. From fdrake@weyr.cnri.reston.va.us Tue Jun 29 19:16:00 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 29 Jun 1999 14:16:00 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/texinputs howto.cls manual.cls python.sty Message-ID: <199906291816.OAA24561@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/texinputs In directory weyr:/home/fdrake/projects/python/Doc/texinputs Modified Files: howto.cls manual.cls python.sty Log Message: Move the setting for secnumdepth to the document classes; make the numbering for the manual class go one deeper than it previously did (\subsection entries will now be numbered); no change for howto documents. This makes it easier to refer precisely to smaller sections using \ref. From fdrake@weyr.cnri.reston.va.us Tue Jun 29 16:53:53 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 29 Jun 1999 11:53:53 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libcmath.tex Message-ID: <199906291553.LAA23503@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libcmath.tex Log Message: Remove unnecessary comma. From fdrake@weyr.cnri.reston.va.us Tue Jun 29 17:00:24 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 29 Jun 1999 12:00:24 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libfileinput.tex Message-ID: <199906291600.MAA23633@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libfileinput.tex Log Message: Minor wording change in section title. From fdrake@weyr.cnri.reston.va.us Tue Jun 29 15:57:13 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 29 Jun 1999 10:57:13 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libmutex.tex Message-ID: <199906291457.KAA23123@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libmutex.tex Log Message: Moshe: Remove extraneous "and". From fdrake@weyr.cnri.reston.va.us Tue Jun 29 16:43:03 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 29 Jun 1999 11:43:03 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libpyclbr.tex Message-ID: <199906291543.LAA23444@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libpyclbr.tex Log Message: Add note about not being able to use this module with modules not implemented in Python. From fdrake@weyr.cnri.reston.va.us Tue Jun 29 16:58:00 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 29 Jun 1999 11:58:00 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libarray.tex Message-ID: <199906291558.LAA23568@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libarray.tex Log Message: byteswap() method: Tell *what* exception gets raised when the type cannot be byteswapped. From fdrake@weyr.cnri.reston.va.us Tue Jun 29 16:45:10 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 29 Jun 1999 11:45:10 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libnew.tex Message-ID: <199906291545.LAA23465@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libnew.tex Log Message: Comment out XXX comment; this needn't appear in the formatted versions. XXX comments only need to be grep-able. From fdrake@weyr.cnri.reston.va.us Tue Jun 29 17:02:13 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 29 Jun 1999 12:02:13 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libcopy.tex Message-ID: <199906291602.MAA23654@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libcopy.tex Log Message: Usage nit: a bunch of "nor"s should have been a single "or". Make reference to the copy_reg module a hyperlink. From fdrake@weyr.cnri.reston.va.us Tue Jun 29 16:49:35 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 29 Jun 1999 11:49:35 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib fpformat.py Message-ID: <199906291549.LAA23485@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory weyr:/home/fdrake/projects/python/Lib Modified Files: fpformat.py Log Message: Define NotANumber as a subclass of ValueError when using class-based exceptions. When raising NotANumber, pass the string that failed as the exception value. From fdrake@weyr.cnri.reston.va.us Wed Jun 30 16:32:51 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Wed, 30 Jun 1999 11:32:51 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/tut tut.tex Message-ID: <199906301532.LAA28858@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/tut In directory weyr:/home/fdrake/projects/python/Doc/tut Modified Files: tut.tex Log Message: Made several grammatical corrections based on comments from Daniel Barcla . Also added example of what happens when a parameter is set both positionally and by a keyword (one of Daniels suggestions related to that paragraph). From guido@cnri.reston.va.us Tue Jun 1 14:57:16 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 09:57:16 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib/lib-tk Tkinter.py Message-ID: <199906011357.JAA00627@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib/lib-tk In directory eric:/projects/python/develop/guido/src/Lib/lib-tk Modified Files: Tkinter.py Log Message: Greg McFarlane writes: Tkinter.Text.tag_add should take multiple arguments. [Slightly changed from submitted patch.] From guido@cnri.reston.va.us Tue Jun 1 15:36:57 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 10:36:57 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib macurl2path.py Message-ID: <199906011436.KAA00916@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: macurl2path.py Log Message: Jack Jansen's patch to support file:///path/file/name URL syntax. From guido@cnri.reston.va.us Tue Jun 1 16:03:31 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 11:03:31 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle AutoIndent.py Message-ID: <199906011503.LAA01137@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: AutoIndent.py Log Message: New version by Tim Peters improves block opening test. From guido@cnri.reston.va.us Tue Jun 1 16:04:08 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 11:04:08 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle/Icons - New directory Message-ID: <199906011504.LAA01154@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle/Icons In directory eric:/projects/python/develop/guido/src/Tools/idle/Icons Log Message: Directory /projects/cvsroot/python/dist/src/Tools/idle/Icons added to the repository From guido@cnri.reston.va.us Tue Jun 1 16:04:52 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 11:04:52 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle/Icons folder.gif openfolder.gif python.gif tk.gif Message-ID: <199906011504.LAA01176@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle/Icons In directory eric:/projects/python/develop/guido/src/Tools/idle/Icons Added Files: folder.gif openfolder.gif python.gif tk.gif Log Message: A few icons used by ../TreeWidget.py and its callers. From fdrake@weyr.cnri.reston.va.us Tue Jun 1 18:55:54 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 1 Jun 1999 13:55:54 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libpopen2.tex Message-ID: <199906011755.NAA07144@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libpopen2.tex Log Message: Fix availability clause; mention availability of similar functionality for Windows using win32pipe. From guido@cnri.reston.va.us Tue Jun 1 19:17:03 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 14:17:03 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle ZoomHeight.py Message-ID: <199906011817.OAA02057@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: ZoomHeight.py Log Message: Move zoom height functionality to separate function. From guido@cnri.reston.va.us Tue Jun 1 19:18:28 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 14:18:28 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle ScriptBinding.py Message-ID: <199906011818.OAA02082@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: ScriptBinding.py Log Message: Ensure sys.argv[0] is the script name on Run Script. From guido@cnri.reston.va.us Tue Jun 1 19:19:03 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 14:19:03 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle ToolTip.py Message-ID: <199906011819.OAA02107@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Added Files: ToolTip.py Log Message: As yet unused code for tool tips. From guido@cnri.reston.va.us Tue Jun 1 19:19:18 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 14:19:18 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle TreeWidget.py Message-ID: <199906011819.OAA02124@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Added Files: TreeWidget.py Log Message: Tree widget done right. From guido@cnri.reston.va.us Tue Jun 1 19:20:57 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 14:20:57 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle ObjectBrowser.py Message-ID: <199906011820.OAA02144@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Added Files: ObjectBrowser.py Log Message: Object browser, based on TreeWidget.py. From guido@cnri.reston.va.us Tue Jun 1 19:21:31 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 14:21:31 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle ClassBrowser.py PathBrowser.py Message-ID: <199906011821.OAA02164@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: ClassBrowser.py PathBrowser.py Log Message: Rewritten based on TreeWidget.py From guido@cnri.reston.va.us Tue Jun 1 19:23:20 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 14:23:20 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle/Icons minusnode.gif plusnode.gif Message-ID: <199906011823.OAA02193@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle/Icons In directory eric:/projects/python/develop/guido/src/Tools/idle/Icons Added Files: minusnode.gif plusnode.gif Log Message: Missed a few. From guido@cnri.reston.va.us Tue Jun 1 19:27:14 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 14:27:14 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle EditorWindow.py Message-ID: <199906011827.OAA02215@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: EditorWindow.py Log Message: 1. Catch NameError on import (could be raised by case mismatch on Windows). 2. No longer need to reset pyclbr cache and show watch cursor when calling ClassBrowser -- the ClassBrowser takes care of pyclbr and the TreeWidget takes care of the watch cursor. 3. Reset the focus to the current window after error message about class browser on buffer without filename. From guido@cnri.reston.va.us Tue Jun 1 19:55:37 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 14:55:37 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib tempfile.py Message-ID: <199906011855.OAA02270@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: tempfile.py Log Message: In class TemporaryFileWrapper, don't cache attributes of tpye int -- these happen to be 'closed' and 'softspace', which may change! Noted by Dave Ascher (with slightly different solution). From guido@cnri.reston.va.us Tue Jun 1 19:58:35 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 14:58:35 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib SocketServer.py Message-ID: <199906011858.OAA02312@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: SocketServer.py Log Message: Andy Dustman notes that I patched the close() call in the wrong place. Here's the correct patch! From guido@cnri.reston.va.us Tue Jun 1 20:47:57 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 15:47:57 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle AutoIndent.py Message-ID: <199906011947.PAA02682@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: AutoIndent.py Log Message: Tim Peters keeps revising this module (more to come): Removed "New tabwidth" menu binding. Added "a tab means how many spaces?" dialog to block tabify and untabify. I think prompting for this is good now: they're usually at-most-once-per-file commands, and IDLE can't let them change tabwidth from the Tk default anymore, so IDLE can no longer presume to have any idea what a tab means. Irony: for the purpose of keeping comments aligned via tabs, Tk's non-default approach is much nicer than the Emacs/Notepad/Codewright/vi/etc approach. From guido@cnri.reston.va.us Tue Jun 1 20:49:22 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 15:49:22 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle PyParse.py Message-ID: <199906011949.PAA02707@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Added Files: PyParse.py Log Message: New file by Tim Peters: One new file in the attached, PyParse.py. The LineStudier (whatever it was called ) class was removed from AutoIndent; PyParse subsumes its functionality. From guido@cnri.reston.va.us Tue Jun 1 20:52:34 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 15:52:34 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle AutoIndent.py Message-ID: <199906011952.PAA02727@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: AutoIndent.py Log Message: Tim Peters again: [Tim, after adding some bracket smarts to AutoIndent.py] > ... > What it can't possibly do without reparsing large gobs of text is > suggest a reasonable indent level after you've *closed* a bracket > left open on some previous line. > ... The attached can, and actually fast enough to use -- most of the time. The code is tricky beyond belief to achieve that, but it works so far; e.g., return len(string.expandtabs(str[self.stmt_start : ^ indents to caret i], ^ indents to caret self.tabwidth)) + 1 ^ indents to caret It's about as smart as pymode now, wrt both bracket and backslash continuation rules. It does require reparsing large gobs of text, and if it happens to find something that looks like a "def" or "class" or sys.ps1 buried in a multiline string, but didn't suck up enough preceding text to see the start of the string, it's completely hosed. I can't repair that -- it's just too slow to reparse from the start of the file all the time. AutoIndent has grown a new num_context_lines tuple attribute that controls how far to look back, and-- like other params --this could/should be made user-overridable at startup and per-file on the fly. From guido@cnri.reston.va.us Tue Jun 1 20:55:35 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 15:55:35 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle AutoIndent.py PyParse.py PyShell.py Message-ID: <199906011955.PAA02766@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: AutoIndent.py PyParse.py PyShell.py Log Message: Tim Peters again: The new version (attached) is fast enough all the time in every real module I have . You can make it slow by, e.g., creating an open list with 5,000 90-character identifiers (+ trailing comma) each on its own line, then adding an item to the end -- but that still consumes less than a second on my P5-166. Response time in real code appears instantaneous. Fixed some bugs. New feature: when hitting ENTER and the cursor is beyond the line's leading indentation, whitespace is removed on both sides of the cursor; before whitespace was removed only on the left; e.g., assuming the cursor is between the comma and the space: def something(arg1, arg2): ^ cursor to the left of here, and hit ENTER arg2): # new line used to end up here arg2): # but now lines up the way you expect New hack: AutoIndent has grown a context_use_ps1 Boolean config option, defaulting to 0 (false) and set to 1 (only) by PyShell. Reason: handling the fancy stuff requires looking backward for a parsing synch point; ps1 lines are the only sensible thing to look for in a shell window, but are a bad thing to look for in a file window (ps1 lines show up in my module docstrings often). PythonWin's shell should set this true too. Persistent problem: strings containing def/class can still screw things up completely. No improvement. Simplest workaround is on the user's head, and consists of inserting e.g. def _(): pass (or any other def/class) after the end of the multiline string that's screwing them up. This is especially irksome because IDLE's syntax coloring is *not* confused, so when this happens the colors don't match the indentation behavior they see. From guido@cnri.reston.va.us Tue Jun 1 21:06:45 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 1 Jun 1999 16:06:45 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle AutoIndent.py Message-ID: <199906012006.QAA02842@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: AutoIndent.py Log Message: Hah! A fix of my own to Tim's code! Unix bindings for <> and <> were missing, and somehow that meant the events were never generated, even though they were in the menu. The new Unix bindings are now the same as the Windows bindings (M-t and M-u). From guido@cnri.reston.va.us Wed Jun 2 12:04:30 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 2 Jun 1999 07:04:30 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle EditorWindow.py Message-ID: <199906021104.HAA03888@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: EditorWindow.py Log Message: Change by Mark Hammond to allow using IDLE extensions in PythonWin as well: make three dialog routines instance variables. From guido@cnri.reston.va.us Wed Jun 2 12:05:19 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 2 Jun 1999 07:05:19 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle AutoIndent.py Message-ID: <199906021105.HAA03907@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: AutoIndent.py Log Message: Changes by Mark Hammond to allow using IDLE extensions in PythonWin as well: make three dialog routines instance variables. From guido@cnri.reston.va.us Wed Jun 2 13:06:48 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 2 Jun 1999 08:06:48 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle IdleHistory.py Message-ID: <199906021206.IAA04091@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: IdleHistory.py Log Message: Changes by Mark Hammond: (1) support optional output_sep argument to the constructor so he can eliminate the sys.ps2 that PythonWin leaves in the source; (2) remove duplicate history items. From guido@cnri.reston.va.us Wed Jun 2 17:10:19 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 2 Jun 1999 12:10:19 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle CallTipWindow.py CallTips.py Message-ID: <199906021610.MAA05130@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Added Files: CallTipWindow.py CallTips.py Log Message: Call tips by Mark Hammond (plus tiny fix by me.) From guido@cnri.reston.va.us Wed Jun 2 19:12:56 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 2 Jun 1999 14:12:56 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle CallTips.py Message-ID: <199906021812.OAA05592@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: CallTips.py Log Message: A version that Mark Hammond posted to the newsgroup. Has some newer stuff for getting the tip. Had to fix the Key-( and Key-) events for Unix. Will have to re-apply my patch for catching KeyRelease and ButtonRelease events. From guido@cnri.reston.va.us Wed Jun 2 19:18:58 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 2 Jun 1999 14:18:58 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle CallTips.py Message-ID: <199906021818.OAA05616@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: CallTips.py Log Message: My fix to Mark's code: restore the universal check on . Always cancel on or . From guido@cnri.reston.va.us Wed Jun 2 19:44:23 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 2 Jun 1999 14:44:23 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib cgi.py Message-ID: <199906021844.OAA05852@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: cgi.py Log Message: At Jim Fulton's request (actually, as a compromise :-), default the content-type to application/x-www-form-urlencoded only when the method is POST. Ditto for when the content-type is unrecognized -- only fall back to urlencoded with POST. From guido@cnri.reston.va.us Thu Jun 3 13:07:51 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Thu, 3 Jun 1999 08:07:51 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle CallTips.py Message-ID: <199906031207.IAA06775@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: CallTips.py Log Message: Mark Hammond fixed some comments and improved the way the tip text is constructed. From guido@cnri.reston.va.us Thu Jun 3 15:25:49 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Thu, 3 Jun 1999 10:25:49 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle GrepDialog.py Message-ID: <199906031425.KAA06955@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: GrepDialog.py Log Message: Enclose pattern in quotes in status message. From guido@cnri.reston.va.us Thu Jun 3 15:32:17 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Thu, 3 Jun 1999 10:32:17 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle AutoIndent.py EditorWindow.py PyParse.py Message-ID: <199906031432.KAA06994@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: AutoIndent.py EditorWindow.py PyParse.py Log Message: New offerings by Tim Peters; he writes: IDLE is now the first Python editor in the Universe not confused by my doctest.py . As threatened, this defines IDLE's is_char_in_string function as a method of EditorWindow. You just need to define one similarly in whatever it is you pass as editwin to AutoIndent; looking at the EditorWindow.py part of the patch should make this clear. From bwarsaw@cnri.reston.va.us Thu Jun 3 23:18:59 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Thu, 3 Jun 1999 18:18:59 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Misc python-mode.el Message-ID: <199906032218.SAA02552@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Misc In directory anthem:/projects/python/develop/bwarsaw/src/Misc Modified Files: python-mode.el Log Message: (py-statement-closes-block-p): py-goto-initial-line could leave us in the line's whitespace. back-to-indentation should /follow/ this call. From guido@cnri.reston.va.us Fri Jun 4 18:54:40 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Fri, 4 Jun 1999 13:54:40 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib cgi.py Message-ID: <199906041754.NAA09424@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: cgi.py Log Message: Patch by Jim Fulton: new function parse_qsl(), which is like parse_qs() but returns a list of (name, value) pairs -- which is actually more correct. Use this where it makes sense. From guido@cnri.reston.va.us Fri Jun 4 20:21:20 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Fri, 4 Jun 1999 15:21:20 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle extend.py Message-ID: <199906041921.PAA09911@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: extend.py Log Message: Might as well enable CallTips by default. If there are too many complaints I'll remove it again or fix it. From guido@cnri.reston.va.us Mon Jun 7 15:28:15 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Mon, 7 Jun 1999 10:28:15 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle PyParse.py Message-ID: <199906071428.KAA11915@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: PyParse.py Log Message: Tim Peters: Smarter logic for finding a parse synch point. Does a half to a fifth the work in normal cases; don't notice the speedup, but makes more breathing room for other extensions. Speeds terrible cases by at least a factor of 10. "Terrible" == e.g. you put """ at the start of Tkinter.py, undo it, zoom to the bottom, and start typing in code. Used to take about 8 seconds for ENTER to respond, now some large fraction of a second. The new code gets indented correctly, despite that it all remains "string colored" until the colorizer catches up (after which, ENTER appears instantaneous again). From guido@cnri.reston.va.us Mon Jun 7 16:12:33 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Mon, 7 Jun 1999 11:12:33 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Objects stringobject.c Message-ID: <199906071512.LAA12210@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Objects In directory eric:/projects/python/develop/guido/src/Objects Modified Files: stringobject.c Log Message: Fix bug discovered by John W. Shipman -- when the width of a format specifier came from an int expression instead of a constant in the format, a negative width was truncated to zero instead of taken to mean the same as that negative constant plugged into the format. E.g. "(%*s)" % (-5, "foo") yielded "(foo)" while "(%-5s)" yields "(foo )". Now both yield the latter -- like sprintf() in C. From guido@cnri.reston.va.us Mon Jun 7 16:25:19 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Mon, 7 Jun 1999 11:25:19 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib pyclbr.py Message-ID: <199906071525.LAA12353@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: pyclbr.py Log Message: Experimental speedup patch by Tim Peters (please test!): It wasn't hard to speed pyclbr by a factor of 3, and I'll attach an experimental patch for that (experimental because barely tested). Uncomment the new "String" stuff and it will deal with strings correctly (pyclbr currently ignores the possibility), but that slows it down a lot. Still faster in the end than current pyclbr, but-- frankly --I'd rather have the dramatic speedup! From guido@cnri.reston.va.us Mon Jun 7 16:38:40 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Mon, 7 Jun 1999 11:38:40 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle ObjectBrowser.py TreeWidget.py Message-ID: <199906071538.LAA12411@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: ObjectBrowser.py TreeWidget.py Log Message: Remove unnecessary reference to pyclbr from test() code. From guido@cnri.reston.va.us Tue Jun 8 13:53:22 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 8 Jun 1999 08:53:22 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib pyclbr.py Message-ID: <199906081253.IAA14359@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: pyclbr.py Log Message: Tim Peters: Taught it more "real Python" rules without slowing it appreciably. Triple-quoted strings no longer confuse it, nor nested classes or defs, nor comments starting in column 1. Chews thru Tkinter.py in < 3 seconds for me; doctest.py no longer confuses it; no longer missing methods in PyShell.py; etc. Also captures defs starting in column 1 now, but ignores them; an interface should be added so that IDLE's class browser can show the top-level functions too. From guido@cnri.reston.va.us Tue Jun 8 13:54:23 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 8 Jun 1999 08:54:23 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle AutoIndent.py Message-ID: <199906081254.IAA14379@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: AutoIndent.py Log Message: Tim Peters: + Set usetabs=1. Editing pyclbr.py was driving me nuts <0.6 wink>. usetabs=1 is the Emacs pymode default too, and thanks to indentwidth != tabwidth magical usetabs disabling, new files are still created with tabs turned off. The only implication is that if you open a file whose first indent is a single tab, IDLE will now magically use tabs for that file (and set indentwidth to 8). Note that the whole scheme doesn't work right for PythonWin, though, since Windows users typically set tabwidth to 4; Mark probably has to hide the IDLE algorithm from them (which he already knows). + Changed comment_region_event to stick "##" in front of every line. The "holes" previously left on blank lines were visually confusing (made it needlessly hard to figure out what to uncomment later). From guido@cnri.reston.va.us Tue Jun 8 13:54:57 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 8 Jun 1999 08:54:57 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle ReplaceDialog.py Message-ID: <199906081254.IAA14397@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: ReplaceDialog.py Log Message: Tim Peters: made replacement atomic for undo/redo. From guido@cnri.reston.va.us Tue Jun 8 14:06:07 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 8 Jun 1999 09:06:07 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle ReplaceDialog.py Message-ID: <199906081306.JAA14421@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: ReplaceDialog.py Log Message: Hmm... Tim didn't turn "replace all" into a single undo block. I think I like it better if it os, so here. From guido@cnri.reston.va.us Tue Jun 8 14:13:17 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 8 Jun 1999 09:13:17 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib whichdb.py Message-ID: <199906081313.JAA14475@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: whichdb.py Log Message: Skip Montanaro: I guess in 1.5.2 a new module, whichdb, was added that attempts to divine the nature of a database file. This module doesn't know anything about Berkeley DB v2 files. In v2, Sleepycat added a 12-byte null pad in front of the old magic numbers (at least for hash and btree files). I've been using v2 for awhile and upgrading to 1.5.2 broke all my anydbm.open calls. I believe the following patch corrects the problem. From guido@cnri.reston.va.us Tue Jun 8 14:20:06 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 8 Jun 1999 09:20:06 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib asynchat.py asyncore.py Message-ID: <199906081320.JAA14534@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: asynchat.py asyncore.py Log Message: Sam's latest versions From guido@cnri.reston.va.us Tue Jun 8 22:23:28 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 8 Jun 1999 17:23:28 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib xmllib.py Message-ID: <199906082123.RAA22657@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: xmllib.py Log Message: Fix (sanctioned by Sjoerd) for a problem reported by Andreas Faerber: all processing instruction target names containing 'xml' were rejected, instead (as the standard rejects) only the name 'xml' itself (or case variants thereof). From guido@cnri.reston.va.us Wed Jun 9 14:32:30 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 9 Jun 1999 09:32:30 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib chunk.py aifc.py Message-ID: <199906091332.JAA23559@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: aifc.py Added Files: chunk.py Log Message: Patch/new code by Sjoerd Mullender: Separate the Chunk class out of the aifc module into a new "chunk" module. From guido@cnri.reston.va.us Wed Jun 9 14:41:18 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 9 Jun 1999 09:41:18 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib chunk.py Message-ID: <199906091341.JAA23617@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: chunk.py Log Message: Oops, Sjoerd was in a hurry. This patch from him fixes some length math in the Chunk class. From guido@cnri.reston.va.us Wed Jun 9 16:05:48 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 9 Jun 1999 11:05:48 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib BaseHTTPServer.py Message-ID: <199906091505.LAA23924@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: BaseHTTPServer.py Log Message: Don't just die if gethostbyaddr() fails -- as it can when DNS is unreachable -- but fall back to using whatever hostname we have. From guido@cnri.reston.va.us Wed Jun 9 16:11:59 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 9 Jun 1999 11:11:59 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libcalendar.tex Message-ID: <199906091511.LAA23976@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory eric:/projects/python/develop/guido/Doc/lib Modified Files: libcalendar.tex Log Message: Add doc for timegm(). From guido@cnri.reston.va.us Wed Jun 9 16:13:11 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 9 Jun 1999 11:13:11 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib smtplib.py Message-ID: <199906091513.LAA24001@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: smtplib.py Log Message: Patch by Per Cederqvist: I've found two places where smtplib.py sends an extra trailing space on command lines to the SMTP server. I don't know if this ever causes any problems, but I'd prefer to be on the safe side. The enclosed patch removes the extra space. From guido@cnri.reston.va.us Wed Jun 9 16:14:50 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 9 Jun 1999 11:14:50 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib urllib.py Message-ID: <199906091514.LAA24023@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: urllib.py Log Message: Updated lagging version#. Also added some comments about how quote() and quote_plus() can be optimized tenfold. From guido@cnri.reston.va.us Wed Jun 9 16:16:19 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 9 Jun 1999 11:16:19 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Include patchlevel.h Message-ID: <199906091516.LAA24044@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Include In directory eric:/projects/python/develop/guido/src/Include Modified Files: patchlevel.h Log Message: Set PATCHLEVEL and PY_VERSION (string version only) to 1.5.2+ to indicate to those that are using the CVS access that they are using a newer-than-1.2.5 version, without committing to a particular version number or patch level. From guido@cnri.reston.va.us Wed Jun 9 16:19:35 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 9 Jun 1999 11:19:35 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Objects listobject.c Message-ID: <199906091519.LAA24075@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Objects In directory eric:/projects/python/develop/guido/src/Objects Modified Files: listobject.c Log Message: When deallocating a list, DECREF the items from the end back to the start. From guido@cnri.reston.va.us Wed Jun 9 16:07:39 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 9 Jun 1999 11:07:39 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib calendar.py Message-ID: <199906091507.LAA23951@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: calendar.py Log Message: Add unrelated but handy function: timegm(), to calculate Unix timestamp from GMT tuple. From guido@cnri.reston.va.us Wed Jun 9 16:23:32 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 9 Jun 1999 11:23:32 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Modules cPickle.c Message-ID: <199906091523.LAA24127@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Modules In directory eric:/projects/python/develop/guido/src/Modules Modified Files: cPickle.c Log Message: Jim Fulton writes: I've updated cPickle.c to use class exceptions: Changed pickle error types to classes: PickleError PicklingError UnpickleableError UnpicklingError And change the handling of unpickleable objects so that an UnpickleableError is raised with the unpickleable object as the argument. UnpickleableError has a reasonable string representation and provides access to the problem object, which is useful during debugging. [I'm still waiting for patches to do the same to pickle.py.] From guido@cnri.reston.va.us Wed Jun 9 16:36:38 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 9 Jun 1999 11:36:38 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/PC config.h Message-ID: <199906091536.LAA24210@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/PC In directory eric:/projects/python/develop/guido/src/PC Modified Files: config.h Log Message: Set the max recursion limit to 5000 -- rather conservative (this uses 0.5 MB of the 1 MB available by default for stack on Win32 platforms). From guido@cnri.reston.va.us Wed Jun 9 16:49:10 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 9 Jun 1999 11:49:10 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib pyclbr.py Message-ID: <199906091549.LAA24273@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: pyclbr.py Log Message: Fix by Sjoerd for a package related bug: If you have a non-empy __init__.py it isn't read. (Sjoerd just came up with this, so it's not heavily tested.) Other (yet unsolved) package problems noted by Sjoerd: - If you have a package and a module inside that or another package with the same name, module caching doesn't work properly since the key is the base name of the module/package. - The only entry that is returned when you readmodule a package is a __path__ whose value is a list which confuses certain class browsers that I wrote. (Hm, this could be construed as a feature.) From guido@cnri.reston.va.us Wed Jun 9 20:07:23 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 9 Jun 1999 15:07:23 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Demo/scripts makedir.py Message-ID: <199906091907.PAA28495@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Demo/scripts In directory eric:/projects/python/develop/guido/src/Demo/scripts Modified Files: makedir.py Log Message: Fix bug discovered by Klaus-Juergen Wolf -- it runs into infinite recursion! From guido@cnri.reston.va.us Wed Jun 9 21:34:58 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 9 Jun 1999 16:34:58 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle CallTips.py Message-ID: <199906092034.QAA28809@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: CallTips.py Log Message: Append "..." if the appropriate flag (for varargs) in co_flags is set. Ditto "***" for kwargs. From guido@cnri.reston.va.us Thu Jun 10 04:11:42 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 9 Jun 1999 23:11:42 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libcgi.tex Message-ID: <199906100311.XAA29334@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory eric:/projects/python/develop/guido/Doc/lib Modified Files: libcgi.tex Log Message: Patch by Jim Fulton to document the new parse_qls(). From guido@cnri.reston.va.us Thu Jun 10 15:19:48 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Thu, 10 Jun 1999 10:19:48 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle CallTipWindow.py Message-ID: <199906101419.KAA00016@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: CallTipWindow.py Log Message: Mark Hammond writes: Tim's suggestion of copying the font for the CallTipWindow from the text control makes sense, and actually makes the control look better IMO. From guido@cnri.reston.va.us Thu Jun 10 15:20:27 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Thu, 10 Jun 1999 10:20:27 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle CallTips.py Message-ID: <199906101420.KAA00036@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: CallTips.py Log Message: Mark Hammond writes: Here is another change that allows it to work for class creation - tries to locate an __init__ function. Also updated the test code to reflect your new "***" change. From guido@cnri.reston.va.us Thu Jun 10 15:39:40 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Thu, 10 Jun 1999 10:39:40 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib pyclbr.py Message-ID: <199906101439.KAA00097@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: pyclbr.py Log Message: Co-production with Tim Peters, implementing a suggestion by Mark Hammond: record top-level functions (as Function instances, a simple subclass of Class). You must use the new interface readmodule_ex() to get these, though. From guido@cnri.reston.va.us Thu Jun 10 15:44:49 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Thu, 10 Jun 1999 10:44:49 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle AutoIndent.py Message-ID: <199906101444.KAA00131@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: AutoIndent.py Log Message: Fix off-by-one error in Tim's recent change to comment_region(): the list of lines returned by get_region() contains an empty line at the end representing the start of the next line, and this shouldn't be commented out! From fdrake@weyr.cnri.reston.va.us Thu Jun 10 16:07:05 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 10 Jun 1999 11:07:05 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libos.tex Message-ID: <199906101507.LAA04812@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libos.tex Log Message: At David Ascher's request, clarify that os.system() always returns 0 on Win95 & Win98. From fdrake@weyr.cnri.reston.va.us Thu Jun 10 16:03:08 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 10 Jun 1999 11:03:08 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib librfc822.tex Message-ID: <199906101503.LAA04777@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: librfc822.tex Log Message: Fix typo reported by Robert Kern . From guido@cnri.reston.va.us Thu Jun 10 16:19:15 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Thu, 10 Jun 1999 11:19:15 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle ClassBrowser.py Message-ID: <199906101519.LAA00224@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: ClassBrowser.py Log Message: Adapt to the new pyclbr's support of listing top-level functions. If this functionality is not present (e.g. when used with a vintage Python 1.5.2 installation) top-level functions are not listed. (Hmm... Any distribution of IDLE 0.5 should probably include a copy of the new pyclbr.py!) From fdrake@weyr.cnri.reston.va.us Thu Jun 10 16:30:22 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 10 Jun 1999 11:30:22 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/tut tut.tex Message-ID: <199906101530.LAA05010@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/tut In directory weyr:/home/fdrake/projects/python/Doc/tut Modified Files: tut.tex Log Message: Fixed typo reported by Bennett Benson . From guido@cnri.reston.va.us Thu Jun 10 18:43:18 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Thu, 10 Jun 1999 13:43:18 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle EditorWindow.py Message-ID: <199906101743.NAA00497@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: EditorWindow.py Log Message: Added abstraction get_selection_index() (Mark Hammond). Also reformatted some comment blocks to show off a cool feature I'm about to check in next. From guido@cnri.reston.va.us Thu Jun 10 18:48:03 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Thu, 10 Jun 1999 13:48:03 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle FormatParagraph.py Message-ID: <199906101748.NAA00525@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: FormatParagraph.py Log Message: Code by Mark Hammond to format paragraphs embedded in comments. Read the comments (which I reformatted using the new feature :-) for some limitations. From guido@cnri.reston.va.us Thu Jun 10 20:05:55 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Thu, 10 Jun 1999 15:05:55 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib pyclbr.py Message-ID: <199906101905.PAA00710@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: pyclbr.py Log Message: Added a few more bugs to the doc string; reformatted existing bugs. From fdrake@weyr.cnri.reston.va.us Thu Jun 10 22:17:13 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 10 Jun 1999 17:17:13 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libundoc.tex Message-ID: <199906102117.RAA06463@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libundoc.tex Log Message: Declare the "util" module obsolete. From fdrake@weyr.cnri.reston.va.us Thu Jun 10 22:18:03 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 10 Jun 1999 17:18:03 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib util.py Message-ID: <199906102118.RAA06591@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory weyr:/home/fdrake/projects/python/Lib Removed Files: util.py Log Message: Relocating file to Lib/lib-old. From fdrake@weyr.cnri.reston.va.us Thu Jun 10 22:23:32 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 10 Jun 1999 17:23:32 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libfnmatch.tex Message-ID: <199906102123.RAA06628@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libfnmatch.tex Log Message: Work around latex2html problem; reported by Gerrit Holl . From fdrake@weyr.cnri.reston.va.us Thu Jun 10 23:08:18 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 10 Jun 1999 18:08:18 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libimp.tex Message-ID: <199906102208.SAA07219@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libimp.tex Log Message: Improve index entry for "import"; responding to comments by Stefan Franke . From fdrake@weyr.cnri.reston.va.us Thu Jun 10 23:09:21 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 10 Jun 1999 18:09:21 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libfuncs.tex Message-ID: <199906102209.SAA07242@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libfuncs.tex Log Message: Adjust indexing for __import__(); based on comments by Stefan Franke . From bwarsaw@cnri.reston.va.us Thu Jun 10 23:30:33 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Thu, 10 Jun 1999 18:30:33 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Include floatobject.h Message-ID: <199906102230.SAA27385@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Include In directory anthem:/projects/python/develop/bwarsaw/src/Include Modified Files: Tag: string_methods floatobject.h Log Message: PyFloat_FromString(): New function which converts a string to a float, also returning the character position at the end of the representation. (this checkin also tests the new string_methods branch) From fdrake@weyr.cnri.reston.va.us Thu Jun 10 23:37:35 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 10 Jun 1999 18:37:35 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libstdtypes.tex Message-ID: <199906102237.SAA07556@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libstdtypes.tex Log Message: Some clarifications on operations for mapping types, based on comments from Gerry Weiner . From bwarsaw@cnri.reston.va.us Thu Jun 10 23:43:26 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Thu, 10 Jun 1999 18:43:26 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Objects stringobject.c Message-ID: <199906102243.SAA27417@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Objects In directory anthem:/projects/python/develop/bwarsaw/src/Objects Modified Files: Tag: string_methods stringobject.c Log Message: Strings objects now have methods, a la JPython. The following methods have been added: capitalize count endswith find index lstrip lower replace rfind rindex rstrip split/splitfields startswith strip swapcase translate upper Code which used to be written "import string; string.lower(s)" can now be written s.lower() to return a new lowercased string. All string module methods have similar translations. Methods startswith and endwith are new -- no string module equivalents, but they are the same as with Java strings s.startswith(t [, offset]) returns 1 if s starts with the prefix t, otherwise 0. Optional offset starts the comparison at that position within the string. s.endswith(t) returns 1 if s ends with the suffix t, otherwise 0 From bwarsaw@cnri.reston.va.us Thu Jun 10 23:51:38 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Thu, 10 Jun 1999 18:51:38 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib string.py Message-ID: <199906102251.SAA27438@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory anthem:/projects/python/develop/bwarsaw/src/Lib Modified Files: Tag: string_methods string.py Log Message: Change most string module functions to be wrappers around method calls on their first argument (must be a string object). This maintains the public (and documented) interface for the string module but allows for future expansion when Unicode string objects are added. strop module is now more or less obsolete, but should still work. All existing code that uses the string module should continue to work unchanged. These functions have no equivalent string object methods: ljust rjust center zfill expandtabs capwords maketrans startswith() and endswith() are new string module functions. From bwarsaw@cnri.reston.va.us Thu Jun 10 23:53:11 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Thu, 10 Jun 1999 18:53:11 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib/test test_string.py Message-ID: <199906102253.SAA27464@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib/test In directory anthem:/projects/python/develop/bwarsaw/src/Lib/test Added Files: test_string.py Log Message: Regression test for the new string methods. From bwarsaw@cnri.reston.va.us Thu Jun 10 23:53:24 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Thu, 10 Jun 1999 18:53:24 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib/test/output test_string Message-ID: <199906102253.SAA27476@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib/test/output In directory anthem:/projects/python/develop/bwarsaw/src/Lib/test/output Added Files: test_string Log Message: Output for the regression test of the new string methods. From bwarsaw@cnri.reston.va.us Thu Jun 10 23:56:56 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Thu, 10 Jun 1999 18:56:56 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Include intobject.h Message-ID: <199906102256.SAA27509@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Include In directory anthem:/projects/python/develop/bwarsaw/src/Include Modified Files: Tag: string_methods intobject.h Log Message: PyInt_FromString(): New function which converts a string to an integer in a given base, also returning the character position at the end of the representation. From bwarsaw@cnri.reston.va.us Fri Jun 11 00:02:33 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Thu, 10 Jun 1999 19:02:33 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Objects intobject.c Message-ID: <199906102302.TAA27534@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Objects In directory anthem:/projects/python/develop/bwarsaw/src/Objects Modified Files: Tag: string_methods intobject.c Log Message: PyInt_FromString(): New API function which converts a string (char*) into a PyInteger. Arguments are the character string, a char** and the integer base. base==0 means choose the default base depending on the leading characters of the string (after stripping the sign), a la string.atoi(). The second argument returns the character position of the end of the conversion. This method encapsulates all the string->int conversions in Python, in an API that can be used by string.atoi() and int(). From bwarsaw@cnri.reston.va.us Fri Jun 11 00:04:23 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Thu, 10 Jun 1999 19:04:23 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Objects floatobject.c Message-ID: <199906102304.TAA27552@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Objects In directory anthem:/projects/python/develop/bwarsaw/src/Objects Modified Files: Tag: string_methods floatobject.c Log Message: PyFloat_FromString(): New API function which converts a string (char*) into a PyFloat. Arguments are the character string, and a char**. The second argument returns the character position of the end of the conversion. This method encapsulates all the string->float conversions in Python, in an API that can be used by string.atof() and float(). From bwarsaw@cnri.reston.va.us Fri Jun 11 00:11:24 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Thu, 10 Jun 1999 19:11:24 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Objects abstract.c Message-ID: <199906102311.TAA27605@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Objects In directory anthem:/projects/python/develop/bwarsaw/src/Objects Modified Files: Tag: string_methods abstract.c Log Message: int_from_string(): Removed. PyNumber_Int() now uses PyInt_FromString(). float_from_string(): Removed. PyNumber_Float() now uses PyFloat_FromString(). long_from_string(): Changes are best described by the comment above the function /* There are two C API functions for converting a string to a long, * PyNumber_Long() and PyLong_FromString(). Both are used in builtin_long, * reachable from Python with the built-in function long(). * * The difference is this: PyNumber_Long will raise an exception when the * string cannot be converted to a long. The most common situation is * where a float string is passed in; this raises a ValueError. * PyLong_FromString does not raise an exception; it silently truncates the * float to an integer. * * You can see the different behavior from Python with the following: * * long('9.5') * => ValueError: invalid literal for long(): 9.5 * * long('9.5', 10) * => 9L * * The first example ends up calling PyNumber_Long(), while the second one * calls PyLong_FromString(). */ The fact that builtin long takes an optional base is a new feature to make it more compatible with string.atol(). From bwarsaw@cnri.reston.va.us Fri Jun 11 00:16:58 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Thu, 10 Jun 1999 19:16:58 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Python bltinmodule.c Message-ID: <199906102316.TAA27629@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Python In directory anthem:/projects/python/develop/bwarsaw/src/Python Modified Files: Tag: string_methods bltinmodule.c Log Message: float(): also supports string.atof() functionality int(): supports string.atoi()'s ability to convert a string to an optional base long(): supports string.atol()'s ability to convert a string to an optional base From bwarsaw@cnri.reston.va.us Fri Jun 11 00:37:16 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Thu, 10 Jun 1999 19:37:16 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Objects stringobject.c Message-ID: <199906102337.TAA27806@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Objects In directory anthem:/projects/python/develop/bwarsaw/src/Objects Modified Files: Tag: string_methods stringobject.c Log Message: string_atol(): removed, this was an artifact of an earlier modification. From guido@cnri.reston.va.us Fri Jun 11 02:37:28 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Thu, 10 Jun 1999 21:37:28 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib os.py Message-ID: <199906110137.VAA02155@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: os.py Log Message: Mark Hammond: patch for Windows/CE. From fdrake@weyr.cnri.reston.va.us Fri Jun 11 15:25:46 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Fri, 11 Jun 1999 10:25:46 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/doc doc.tex Message-ID: <199906111425.KAA09634@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/doc In directory weyr:/home/fdrake/projects/python/Doc/doc Modified Files: doc.tex Log Message: Last night's scribbles: - Revise abstract based on Guido's comments from way back. - Point out that LaTeX is a structured system & we're using it that way. - Add a small section on marking up code examples. From guido@cnri.reston.va.us Fri Jun 11 16:03:01 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Fri, 11 Jun 1999 11:03:01 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle AutoIndent.py EditorWindow.py FormatParagraph.py Message-ID: <199906111503.LAA03160@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: AutoIndent.py EditorWindow.py FormatParagraph.py Log Message: Tim Peters smart.patch: EditorWindow.py: + Added get_tabwidth & set_tabwidth "virtual text" methods, that get/set the widget's view of what a tab means. + Moved TK_TABWIDTH_DEFAULT here from AutoIndent. + Renamed Mark's get_selection_index to get_selection_indices (sorry, Mark, but the name was plain wrong ). FormatParagraph.py: renamed use of get_selection_index. AutoIndent.py: + Moved TK_TABWIDTH_DEFAULT to EditorWindow. + Rewrote set_indentation_params to use new VTW get/set_tabwidth methods. + Changed smart_backspace_event to delete whitespace back to closest preceding virtual tab stop or real character (note that this may require inserting characters if backspacing over a tab!). + Nuked almost references to the selection tag, in favor of using get_selection_indices. The sole exception is in set_region, for which no "set_selection" abstraction has yet been agreed upon. + Had too much fun using the spiffy new features of the format-paragraph cmd. From bwarsaw@cnri.reston.va.us Fri Jun 11 18:47:08 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Fri, 11 Jun 1999 13:47:08 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib string.py Message-ID: <199906111747.NAA29958@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory anthem:/projects/python/develop/bwarsaw/src/Lib Modified Files: Tag: string_methods string.py Log Message: startswith(), endswith(): Remove these from the module. They are only accessible from the string objects. From bwarsaw@cnri.reston.va.us Fri Jun 11 18:48:07 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Fri, 11 Jun 1999 13:48:07 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib/test test_string.py Message-ID: <199906111748.NAA29996@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib/test In directory anthem:/projects/python/develop/bwarsaw/src/Lib/test Modified Files: test_string.py Log Message: Harness can now test object methods directly, if they aren't available in the string module. Add a bunch of new tests for extended startswith/endswith arguments. From bwarsaw@cnri.reston.va.us Fri Jun 11 18:51:13 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Fri, 11 Jun 1999 13:51:13 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib/test test_string.py Message-ID: <199906111751.NAA00023@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib/test In directory anthem:/projects/python/develop/bwarsaw/src/Lib/test Modified Files: test_string.py Log Message: Two extra startswith tests From bwarsaw@cnri.reston.va.us Fri Jun 11 18:53:07 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Fri, 11 Jun 1999 13:53:07 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Objects stringobject.c Message-ID: <199906111753.NAA00041@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Objects In directory anthem:/projects/python/develop/bwarsaw/src/Objects Modified Files: Tag: string_methods stringobject.c Log Message: Get rid of splitfields as a method on string objects (only split is supported as a method, splitfields still exists in the string module). startswith(), endswith(): extended optional arguments start and end delineates the substring to compare. From guido@cnri.reston.va.us Fri Jun 11 19:26:10 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Fri, 11 Jun 1999 14:26:10 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib cgi.py Message-ID: <199906111826.OAA04031@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: cgi.py Log Message: After more discussion with Jim, change the behavior so that only a *missing* content-type at the outer level of a POST defaults to urlencoded. In all other circumstances, the default is read_singe(). From fdrake@weyr.cnri.reston.va.us Fri Jun 11 19:28:39 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Fri, 11 Jun 1999 14:28:39 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libos.tex Message-ID: <199906111828.OAA12956@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libos.tex Log Message: Added 'ce' to the list of "registered" values for os.name. Make references to the posix module hyperlinks. From fdrake@weyr.cnri.reston.va.us Fri Jun 11 19:31:02 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Fri, 11 Jun 1999 14:31:02 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libfpformat.tex Message-ID: <199906111831.OAA12999@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Added Files: libfpformat.tex Log Message: Documentation for the fpformat module by Moshe Zadka . From fdrake@weyr.cnri.reston.va.us Fri Jun 11 19:32:53 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Fri, 11 Jun 1999 14:32:53 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib lib.tex Message-ID: <199906111832.OAA13029@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: lib.tex Log Message: Add entry for the fpformat module. From fdrake@weyr.cnri.reston.va.us Fri Jun 11 19:36:43 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Fri, 11 Jun 1999 14:36:43 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc Makefile.deps Message-ID: <199906111836.OAA13080@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc In directory weyr:/home/fdrake/projects/python/Doc Modified Files: Makefile.deps Log Message: Add entry for the fpformat module. From fdrake@weyr.cnri.reston.va.us Mon Jun 14 16:40:25 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Mon, 14 Jun 1999 11:40:25 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib rfc822.py Message-ID: <199906141540.LAA20012@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory weyr:/home/fdrake/projects/python/Lib Modified Files: rfc822.py Log Message: Message.getheaders(): If there are no matching headers, return an empty list instead of None. (Guido's request.) From bwarsaw@cnri.reston.va.us Mon Jun 14 19:25:27 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Mon, 14 Jun 1999 14:25:27 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Objects stringobject.c Message-ID: <199906141825.OAA10846@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Objects In directory anthem:/projects/python/develop/bwarsaw/src/Objects Modified Files: Tag: string_methods stringobject.c Log Message: string_startswith(): fix potential array bounds read by making sure the end of the compare region doesn't go past the end of the target string. string_join(): Implements new sep.join(sequence) method. string_methods: Leave placeholders for ljust, rjust, center, zfill, expandtabs, capwords. From bwarsaw@cnri.reston.va.us Mon Jun 14 19:25:58 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Mon, 14 Jun 1999 14:25:58 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib string.py Message-ID: <199906141825.OAA10861@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory anthem:/projects/python/develop/bwarsaw/src/Lib Modified Files: Tag: string_methods string.py Log Message: join(): Use the new sep.join() string method. From bwarsaw@cnri.reston.va.us Mon Jun 14 19:38:16 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Mon, 14 Jun 1999 14:38:16 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib string.py Message-ID: <199906141838.OAA10899@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory anthem:/projects/python/develop/bwarsaw/src/Lib Modified Files: Tag: string_methods string.py Log Message: Don't get join/joinfields from strop anymore From bwarsaw@cnri.reston.va.us Mon Jun 14 19:38:42 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Mon, 14 Jun 1999 14:38:42 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib/test test_string.py Message-ID: <199906141838.OAA10914@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib/test In directory anthem:/projects/python/develop/bwarsaw/src/Lib/test Modified Files: test_string.py Log Message: Added more tests of join From fdrake@weyr.cnri.reston.va.us Mon Jun 14 20:47:48 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Mon, 14 Jun 1999 15:47:48 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libcgihttp.tex libsimplehttp.tex liblinecache.tex Message-ID: <199906141947.PAA23078@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Added Files: libcgihttp.tex libsimplehttp.tex liblinecache.tex Log Message: New sections from Moshe Zadka . These document CGIHTTPServer, SimpleHTTPServer, and linecache. From fdrake@weyr.cnri.reston.va.us Mon Jun 14 20:49:51 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Mon, 14 Jun 1999 15:49:51 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib lib.tex libbasehttp.tex libundoc.tex Message-ID: <199906141949.PAA23116@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: lib.tex libbasehttp.tex libundoc.tex Log Message: Misc. changes related to the new sections. From fdrake@weyr.cnri.reston.va.us Mon Jun 14 20:52:10 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Mon, 14 Jun 1999 15:52:10 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc Makefile.deps Message-ID: <199906141952.PAA23157@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc In directory weyr:/home/fdrake/projects/python/Doc Modified Files: Makefile.deps Log Message: Added entries for new sections from Moshe. From guido@cnri.reston.va.us Tue Jun 15 15:35:48 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 15 Jun 1999 10:35:48 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Modules cStringIO.c Message-ID: <199906151435.KAA03250@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Modules In directory eric:/projects/python/develop/guido/src/Modules Modified Files: cStringIO.c Log Message: New version from Jim: don't call Py_FatalError() when initialization fails. From guido@cnri.reston.va.us Tue Jun 15 15:36:59 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 15 Jun 1999 10:36:59 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Modules cPickle.c Message-ID: <199906151436.KAA03270@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Modules In directory eric:/projects/python/develop/guido/src/Modules Modified Files: cPickle.c Log Message: New version from Jim: - Don't call Py_FatalError() when initialization fails. - Fix bogus use of return value from PyRun_String(). - Fix misc. compiler errors on some platforms. From bwarsaw@cnri.reston.va.us Tue Jun 15 17:49:11 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Tue, 15 Jun 1999 12:49:11 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib/test test_string.py Message-ID: <199906151649.MAA05408@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib/test In directory anthem:/projects/python/develop/bwarsaw/src/Lib/test Modified Files: test_string.py Log Message: Added a couple of endswith test cases for bugs reported by Timbot. Also added a short circuit for the regression test suite since CVS insisted on putting this file in the main branch. :( From fdrake@weyr.cnri.reston.va.us Tue Jun 15 18:31:01 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 15 Jun 1999 13:31:01 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libcfgparser.tex Message-ID: <199906151731.NAA00503@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libcfgparser.tex Log Message: Several new index entries to make find this easier. Noted that name=value is allowed in addition to name: value. From guido@cnri.reston.va.us Tue Jun 15 19:06:21 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 15 Jun 1999 14:06:21 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib rfc822.py Message-ID: <199906151806.OAA04078@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: rfc822.py Log Message: Barry Scott writes: Problem: rfc822.py in 1.5.2 final loses the quotes around quoted local-part names. The fix is to preserve the quotes around a local-part name in an address. Test: import rfc822 a = rfc822.AddrlistClass('(Comment stuff) "Quoted name"@somewhere.com') a.getaddrlist() The correct result is: [('Comment stuff', '"Quoted name"@somewhere.com')] From guido@cnri.reston.va.us Tue Jun 15 19:56:47 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 15 Jun 1999 14:56:47 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib/test test_rfc822.py Message-ID: <199906151856.OAA04136@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib/test In directory eric:/projects/python/develop/guido/src/Lib/test Modified Files: test_rfc822.py Log Message: Add the test case provided by Barry Scott for his patch. From bwarsaw@cnri.reston.va.us Tue Jun 15 20:47:34 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Tue, 15 Jun 1999 15:47:34 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Objects intobject.c Message-ID: <199906151947.PAA09682@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Objects In directory anthem:/projects/python/develop/bwarsaw/src/Objects Modified Files: Tag: string_methods intobject.c Log Message: Added #include to make compilers happy. From bwarsaw@cnri.reston.va.us Tue Jun 15 21:01:15 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Tue, 15 Jun 1999 16:01:15 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Objects stringobject.c Message-ID: <199906152001.QAA09823@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Objects In directory anthem:/projects/python/develop/bwarsaw/src/Objects Modified Files: Tag: string_methods stringobject.c Log Message: (join__doc__): fix typo found by Tim string_endswith(): Fixed end case bug found by Tim. From fdrake@weyr.cnri.reston.va.us Tue Jun 15 21:56:42 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 15 Jun 1999 16:56:42 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib liboperator.tex Message-ID: <199906152056.QAA01159@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: liboperator.tex Log Message: Added note to __not__() description that this operation is defined only by the interpreter core and is not overridable by objects. Based on comment from David Ascher on the list. From bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Tue Jun 15 22:53:13 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) (Barry A. Warsaw) Date: Tue, 15 Jun 1999 17:53:13 -0400 (EDT) Subject: [Python-checkins] String methods... finally Message-ID: <14182.52041.160634.77558@anthem.cnri.reston.va.us> I've finally checked my string methods changes into the Python source tree, albeit on a CVS branch (see below). These changes are outgrowths of discussions we've had on the string-sig and other forums, with Greg Stein giving lots of very useful early feedback. I call these changes controversial (hence the branch) because Guido hasn't had much opportunity to play with them yet. Now that he -- and you -- can check them out, I'm sure I'll get lots more feedback! First, to check them out you need to switch to the string_methods CVS branch. On Un*x: cvs update -r string_methods You might want to do this in a separate tree because this will sticky tag your tree to this branch. If so, try cvs checkout -r string_methods python General information on the Python CVS tree is available at http://www.python.org/download/cvs.html Here's a brief summary of the changes... Strings now have as methods most of the functions that were previously only in the string module. If you've played with JPython, you've already had this feature for a while. So you can do: Python 1.5.2+ (#1, Jun 10 1999, 18:22:14) [GCC 2.8.1] on sunos5 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> s = 'Hello There Devheads' >>> s.lower() 'hello there devheads' >>> s.upper() 'HELLO THERE DEVHEADS' >>> s.split() ['Hello', 'There', 'Devheads'] >>> 'hello'.upper() 'HELLO' that sort of thing. Not all of the string.py functions have been added as methods, although most of the missing ones (e.g. ljust, rjust, center, zfill, expandtabs, capwords) will probably be added at some point. Two new methods startswith and endswith act like their Java cousins. join has interesting new semantics thanks to Tim Peters. Use it as a method on the separator string: >>> '-!-'.join(['hello', 'string', 'SIG' ]) 'hello-!-string-!-SIG' which reads naturally if you assign the separator to a meaningful variable: >>> space = ' ' >>> empty = '' >>> dash = '-' >>> space.join(['that', 'seems', 'natural']) 'that seems natural' >>> empty.join(['that', 'seems', 'natural']) 'thatseemsnatural' >>> dash.join(['that', 'seems', 'natural']) 'that-seems-natural' The string module has been rewritten to be backwards compatible. No code should break, though some small performance degradation is possible. Guido and I decided that was acceptable. What else? Some cleaning up of the internals based on Greg's suggestions. A couple of new C API additions. Builtin int(), long(), and float() have grown a few new features. I believe they are essentially interchangable with string.atoi(), string.atol(), and string.float() now. Still to do: - add the string.py functions that never had a C implementation - synchronize CPython and JPython - document this stuff - integrate Unicode (waiting to see what /F and MarkH come up with) Enjoy, -Barry From guido@cnri.reston.va.us Tue Jun 15 23:25:33 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 15 Jun 1999 18:25:33 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib SocketServer.py Message-ID: <199906152225.SAA04997@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: SocketServer.py Log Message: Laurence Tratt notes that the accept() call in get_request() can fail, and suggests putting a try/except around the get_request() call in handle_request(). (All in class TCPServer.) From guido@cnri.reston.va.us Wed Jun 16 13:25:35 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 16 Jun 1999 08:25:35 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib chunk.py Message-ID: <199906161225.IAA05840@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: chunk.py Log Message: Sjoerd Mullender: Added support for unseekable files. (I use unqualified excepts since we don't know why the seek/tell might fail. In my case it was because of an AttributeError.) From guido@cnri.reston.va.us Wed Jun 16 13:28:13 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 16 Jun 1999 08:28:13 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib pyclbr.py Message-ID: <199906161228.IAA05873@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: pyclbr.py Log Message: Suppress warning print statements about modules not found, they are confusing to end users of IDEs. From guido@cnri.reston.va.us Wed Jun 16 18:28:38 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 16 Jun 1999 13:28:38 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Python bltinmodule.c Message-ID: <199906161728.NAA06572@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Python In directory eric:/projects/python/develop/guido/src/Python Modified Files: bltinmodule.c Log Message: Patch by Jim Fulton (code style tweaked a bit) to support ExtensionClasses in isinstance() and issubclass(). - abstract instance and class protocols are used *only* in those cases that would generate errors before the patch. That is, there's no penalty for the normal case. - instance protocol: an object smells like an instance if it has a __class__ attribute that smells like a class. - class protocol: an object smells like a class if it has a __bases__ attribute that is a tuple with elements that smell like classes (although not all elements may actually get sniffed ;). From fdrake@weyr.cnri.reston.va.us Thu Jun 17 16:11:36 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 17 Jun 1999 11:11:36 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libcmp.tex libcmpcache.tex libdircache.tex libnew.tex libstatcache.tex libwave.tex Message-ID: <199906171511.LAA10711@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Added Files: libcmp.tex libcmpcache.tex libdircache.tex libnew.tex libstatcache.tex libwave.tex Log Message: New module documentation sections from Moshe Zadka ! From fdrake@weyr.cnri.reston.va.us Thu Jun 17 16:12:17 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 17 Jun 1999 11:12:17 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib lib.tex libundoc.tex Message-ID: <199906171512.LAA10742@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: lib.tex libundoc.tex Log Message: Add/remove entries due to additional sections from Moshe. From fdrake@weyr.cnri.reston.va.us Thu Jun 17 16:12:51 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 17 Jun 1999 11:12:51 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc Makefile.deps Message-ID: <199906171512.LAA10770@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc In directory weyr:/home/fdrake/projects/python/Doc Modified Files: Makefile.deps Log Message: Add entries due to additional sections from Moshe. From fdrake@weyr.cnri.reston.va.us Thu Jun 17 16:18:49 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 17 Jun 1999 11:18:49 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib wave.py Message-ID: <199906171518.LAA10930@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory weyr:/home/fdrake/projects/python/Lib Modified Files: wave.py Log Message: open(): Make the mode parameter optional; if omitted or None, use the mode attribute of the file object (if it has one), otherwise use 'rb'. The documentation should still show this as required until there's a new release. From fdrake@weyr.cnri.reston.va.us Thu Jun 17 16:20:46 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 17 Jun 1999 11:20:46 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc TODO Message-ID: <199906171520.LAA11044@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc In directory weyr:/home/fdrake/projects/python/Doc Modified Files: TODO Log Message: Add reminder that wave.open() documentation should be updated for the next Python release. From guido@cnri.reston.va.us Thu Jun 17 16:41:34 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Thu, 17 Jun 1999 11:41:34 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib SocketServer.py Message-ID: <199906171541.LAA09396@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: SocketServer.py Log Message: In collect_children(), put a try-except around os.waitpid() because it may raise an exception (when there are no children). Reported by Andy Dustman. From fdrake@weyr.cnri.reston.va.us Thu Jun 17 17:10:41 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 17 Jun 1999 12:10:41 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libwave.tex Message-ID: <199906171610.MAA11295@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libwave.tex Log Message: Small markup and English usage nits. From fdrake@weyr.cnri.reston.va.us Thu Jun 17 17:38:20 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 17 Jun 1999 12:38:20 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib liblinecache.tex Message-ID: <199906171638.MAA11721@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: liblinecache.tex Log Message: Small English usage nits. From fdrake@weyr.cnri.reston.va.us Thu Jun 17 18:09:25 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 17 Jun 1999 13:09:25 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libstatcache.tex Message-ID: <199906171709.NAA11840@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libstatcache.tex Log Message: Minor markup nits. From fdrake@weyr.cnri.reston.va.us Thu Jun 17 18:40:53 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 17 Jun 1999 13:40:53 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libcmpcache.tex Message-ID: <199906171740.NAA12302@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libcmpcache.tex Log Message: Updated version from Moshe, with a re-written warning about the side-effect of cmpcache.cmp() using statcache.stat() internally. From fdrake@weyr.cnri.reston.va.us Thu Jun 17 19:15:08 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 17 Jun 1999 14:15:08 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libnew.tex Message-ID: <199906171815.OAA12576@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libnew.tex Log Message: Correction: the parameters of new.instance() are type-checked. Edited several of the descriptions for English usage and more consistent style. From guido@cnri.reston.va.us Thu Jun 17 19:41:42 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Thu, 17 Jun 1999 14:41:42 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib ConfigParser.py Message-ID: <199906171841.OAA09907@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: ConfigParser.py Log Message: Patch suggested (and partially provided) by Lars Damerow: instead of always lowercasing the option name, call a method optionxform() which can be overridden. Also make the regexps SECTRE and OPTRE non-private variables so they can also be overridden. From fdrake@weyr.cnri.reston.va.us Thu Jun 17 19:49:19 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 17 Jun 1999 14:49:19 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/tools listmodules Message-ID: <199906171849.OAA12952@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/tools In directory weyr:/home/fdrake/projects/python/Doc/tools Modified Files: listmodules Log Message: When looking for things that might be modules, include *module.c from the Modules/ directory. Most of the remaining undocumented modules seem to be living there. From fdrake@weyr.cnri.reston.va.us Thu Jun 17 19:58:04 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Thu, 17 Jun 1999 14:58:04 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libnew.tex Message-ID: <199906171858.OAA13021@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libnew.tex Log Message: Small markup & usage adjustments. From guido@cnri.reston.va.us Thu Jun 17 20:12:40 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Thu, 17 Jun 1999 15:12:40 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Python bltinmodule.c Message-ID: <199906171912.PAA10052@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Python In directory eric:/projects/python/develop/guido/src/Python Modified Files: bltinmodule.c Log Message: # Darn! Local variable l declared but not used in abstract_issubclass(). From guido@CNRI.Reston.VA.US Fri Jun 18 15:55:45 1999 From: guido@CNRI.Reston.VA.US (Guido van Rossum) Date: Fri, 18 Jun 1999 10:55:45 -0400 Subject: [Python-checkins] Re: [Python-Dev] cvs problems In-Reply-To: Your message of "Fri, 18 Jun 1999 10:56:47 +0200." <001d01beb968$7fd47540$f29b12c2@pythonware.com> References: <015601beb964$f37a4fa0$0801a8c0@bobcat> <001d01beb968$7fd47540$f29b12c2@pythonware.com> Message-ID: <199906181455.KAA11564@eric.cnri.reston.va.us> > maybe not the right forum, but I suppose everyone > here is using CVS, so... > > ...could anyone explain why I keep getting this error? > > $ cvs -z6 up -P -d > ... > cvs server: Updating dist/src/Tools/ht2html > cvs [server aborted]: cannot open directory /projects/cvsroot/python/dist/src/Tools/ht2html: No such > file or directory > > it used to work... EXPLANATION: For some reason that directory existed on the mirror server but not in the master CVS tree repository. It was created once but quickly deleted -- not quickly enough apparently to prevent it to leak to the slave. Then we did a global resync from the master to the mirror and that wiped out the mirror version. Good riddance. FIX: Edit Tools/CVS/Entries and delete the line that mentions ht2html, then do another cvs update. --Guido van Rossum (home page: http://www.python.org/~guido/) From fdrake@weyr.cnri.reston.va.us Fri Jun 18 16:21:27 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Fri, 18 Jun 1999 11:21:27 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libundoc.tex Message-ID: <199906181521.LAA16826@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libundoc.tex Log Message: fpformat has been documented for at least a week now! From guido@CNRI.Reston.VA.US Fri Jun 18 16:54:56 1999 From: guido@CNRI.Reston.VA.US (Guido van Rossum) Date: Fri, 18 Jun 1999 11:54:56 -0400 Subject: [Python-checkins] CVS: python/dist/src/Python pystate.c Message-ID: <199906181554.LAA11705@eric.cnri.reston.va.us> Resending -- this bounced due to an unknown glitch... --Guido van Rossum (home page: http://www.python.org/~guido/) Update of /projects/cvsroot/python/dist/src/Python In directory eric:/projects/python/develop/guido/src/Python Modified Files: pystate.c Log Message: CRITICAL PATCH! We occasionally received reports from people getting "invalid tstate" crashes (this is a fatal error in PyThreadState_Delete()). Finally several people were able to reproduce it reliably and Tim Peters discovered that there is a race condition when multiple threads are calling this function without holding the global interpreter lock (the function may be called without holding that). Solved the race condition by adding a lock around the mutating uses of interp->tstate_head. Tim and Jonathan Giddy have run tests that make it likely that this fixes the crashes -- although Tim hasn't heard from the person who reported the original problem. From fdrake@weyr.cnri.reston.va.us Fri Jun 18 18:12:16 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Fri, 18 Jun 1999 13:12:16 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libundoc.tex Message-ID: <199906181712.NAA17586@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libundoc.tex Log Message: Re-categorize the dump module as obsolete. From fdrake@weyr.cnri.reston.va.us Fri Jun 18 18:12:36 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Fri, 18 Jun 1999 13:12:36 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib dump.py Message-ID: <199906181712.NAA17613@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory weyr:/home/fdrake/projects/python/Lib Removed Files: dump.py Log Message: Relocating file to Lib/lib-old. From fdrake@weyr.cnri.reston.va.us Fri Jun 18 20:11:26 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Fri, 18 Jun 1999 15:11:26 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libos.tex Message-ID: <199906181911.PAA18251@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libos.tex Log Message: Further clarfication of the system-dependence of the system() return value, based on comments from Tim Peters. From fdrake@weyr.cnri.reston.va.us Fri Jun 18 20:17:30 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Fri, 18 Jun 1999 15:17:30 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/ext ext.tex Message-ID: <199906181917.PAA18286@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/ext In directory weyr:/home/fdrake/projects/python/Doc/ext Modified Files: ext.tex Log Message: Added paragraph about potential re-initialization of extension modules; responding to suggestion by Robin Boerdijk . From fdrake@weyr.cnri.reston.va.us Fri Jun 18 20:59:00 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Fri, 18 Jun 1999 15:59:00 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libundoc.tex Message-ID: <199906181959.PAA18983@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libundoc.tex Log Message: Added a few minor comments, mostly to discourage documentation of really old modules that may become obsolete. From guido@CNRI.Reston.VA.US Mon Jun 21 18:30:46 1999 From: guido@CNRI.Reston.VA.US (Guido van Rossum) Date: Mon, 21 Jun 1999 13:30:46 -0400 Subject: [Python-checkins] CVS: python/dist/src/Lib/lib-tk Tkinter.py Message-ID: <199906211730.NAA14718@eric.cnri.reston.va.us> [Another resend] Update of /projects/cvsroot/python/dist/src/Lib/lib-tk In directory eric:/projects/python/develop/guido/src/Lib/lib-tk Modified Files: Tkinter.py Log Message: Greg McFarlane submitted two missing Text methods: mark_next() and mark_previous(). From fdrake@weyr.cnri.reston.va.us Mon Jun 21 19:25:50 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Mon, 21 Jun 1999 14:25:50 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libpipes.tex librlcompleter.tex libstatvfs.tex lib.tex Message-ID: <199906211825.OAA25263@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: lib.tex Added Files: libpipes.tex librlcompleter.tex libstatvfs.tex Log Message: Three more modules documented by Moshe! From fdrake@weyr.cnri.reston.va.us Mon Jun 21 19:36:12 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Mon, 21 Jun 1999 14:36:12 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libpipes.tex Message-ID: <199906211836.OAA25582@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libpipes.tex Log Message: Fix a markup error. From fdrake@weyr.cnri.reston.va.us Mon Jun 21 22:14:31 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Mon, 21 Jun 1999 17:14:31 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib lib.tex Message-ID: <199906212114.RAA27986@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: lib.tex Log Message: Added entry for curses module. From fdrake@weyr.cnri.reston.va.us Mon Jun 21 22:13:52 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Mon, 21 Jun 1999 17:13:52 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc Makefile.deps Message-ID: <199906212113.RAA27963@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc In directory weyr:/home/fdrake/projects/python/Doc Modified Files: Makefile.deps Log Message: Added entries for four of Moshe's documentation sections. From fdrake@weyr.cnri.reston.va.us Mon Jun 21 22:20:58 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Mon, 21 Jun 1999 17:20:58 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libhtmllib.tex Message-ID: <199906212120.RAA28127@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libhtmllib.tex Log Message: Added some "See also" references to htmllib docs. Documented htmlentitydefs. From fdrake@weyr.cnri.reston.va.us Mon Jun 21 22:13:12 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Mon, 21 Jun 1999 17:13:12 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libcurses.tex Message-ID: <199906212113.RAA27942@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Added Files: libcurses.tex Log Message: Preliminary documentation for the curses module by Moshe Zadka, with lots of markup fixes and some English nits fixed. Still needs real review. Some of the function signatures used in this module are really bad! (Two leading optional parameters? Ugh!) From guido@cnri.reston.va.us Mon Jun 21 21:51:47 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Mon, 21 Jun 1999 16:51:47 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src README Message-ID: <199906212051.QAA18379@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src In directory eric:/projects/python/develop/guido/src Modified Files: README Log Message: Add warning FreeBSD users of a problem with curses and termcap, submitted by Klaus-Juergen Wolf. From guido@cnri.reston.va.us Mon Jun 21 23:36:54 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Mon, 21 Jun 1999 18:36:54 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/freeze winmakemakefile.py Message-ID: <199906212236.SAA18795@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/freeze In directory eric:/projects/python/develop/guido/src/Tools/freeze Modified Files: winmakemakefile.py Log Message: Patch submitted by Toby Dickenson and approved by Mark Hammond. Toby writes: winmakemakefile.py tries to allow for spaces in the python install path, by adding quotes around the appropriate filenames. It doesn't quite get this correct; sometimes the quotes end up in the middle of the path. Microsoft's NMAKE version 6.0 is happy with this (!!!!) unless there is also a space in the name. I guess most users of freeze on windows do not use the same path as the binary distribution. I've tested the following changes on systems with and without a space in the path. From guido@cnri.reston.va.us Tue Jun 22 15:46:44 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 22 Jun 1999 10:46:44 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Include pyerrors.h Message-ID: <199906221446.KAA19880@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Include In directory eric:/projects/python/develop/guido/src/Include Modified Files: pyerrors.h Log Message: Patch by Tim Peters: Introduce a new builtin exception, UnboundLocalError, raised when ceval.c tries to retrieve or delete a local name that isn't bound to a value. Currently raises NameError, which makes this behavior a FAQ since the same error is raised for "missing" global names too: when the user has a global of the same name as the unbound local, NameError makes no sense to them. Even in the absence of shadowing, knowing whether a bogus name is local or global is a real aid to quick understanding. Example: D:\src\PCbuild>type local.py x = 42 def f(): print x x = 13 return x f() D:\src\PCbuild>python local.py Traceback (innermost last): File "local.py", line 8, in ? f() File "local.py", line 4, in f print x UnboundLocalError: x D:\src\PCbuild> Note that UnboundLocalError is a subclass of NameError, for compatibility with existing class-exception code that may be trying to catch this as a NameError. Unfortunately, I see no way to make this wholly compatible with -X (see comments in bltinmodule.c): under -X, [UnboundLocalError is an alias for NameError --GvR]. [The ceval.c patch differs slightly from the second version that Tim submitted; I decided not to raise UnboundLocalError for DELETE_NAME, only for DELETE_LOCAL. DELETE_NAME is only generated at the module level, and since at that level a NameError is raised for referencing an undefined name, it should also be raised for deleting one.] From guido@cnri.reston.va.us Tue Jun 22 15:47:32 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 22 Jun 1999 10:47:32 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib exceptions.py Message-ID: <199906221447.KAA19911@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: exceptions.py Log Message: Patch by Tim Peters: Introduce a new builtin exception, UnboundLocalError, raised when ceval.c tries to retrieve or delete a local name that isn't bound to a value. Currently raises NameError, which makes this behavior a FAQ since the same error is raised for "missing" global names too: when the user has a global of the same name as the unbound local, NameError makes no sense to them. Even in the absence of shadowing, knowing whether a bogus name is local or global is a real aid to quick understanding. Example: D:\src\PCbuild>type local.py x = 42 def f(): print x x = 13 return x f() D:\src\PCbuild>python local.py Traceback (innermost last): File "local.py", line 8, in ? f() File "local.py", line 4, in f print x UnboundLocalError: x D:\src\PCbuild> Note that UnboundLocalError is a subclass of NameError, for compatibility with existing class-exception code that may be trying to catch this as a NameError. Unfortunately, I see no way to make this wholly compatible with -X (see comments in bltinmodule.c): under -X, [UnboundLocalError is an alias for NameError --GvR]. [The ceval.c patch differs slightly from the second version that Tim submitted; I decided not to raise UnboundLocalError for DELETE_NAME, only for DELETE_LOCAL. DELETE_NAME is only generated at the module level, and since at that level a NameError is raised for referencing an undefined name, it should also be raised for deleting one.] From guido@cnri.reston.va.us Tue Jun 22 15:47:33 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Tue, 22 Jun 1999 10:47:33 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Python bltinmodule.c ceval.c Message-ID: <199906221447.KAA19922@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Python In directory eric:/projects/python/develop/guido/src/Python Modified Files: bltinmodule.c ceval.c Log Message: Patch by Tim Peters: Introduce a new builtin exception, UnboundLocalError, raised when ceval.c tries to retrieve or delete a local name that isn't bound to a value. Currently raises NameError, which makes this behavior a FAQ since the same error is raised for "missing" global names too: when the user has a global of the same name as the unbound local, NameError makes no sense to them. Even in the absence of shadowing, knowing whether a bogus name is local or global is a real aid to quick understanding. Example: D:\src\PCbuild>type local.py x = 42 def f(): print x x = 13 return x f() D:\src\PCbuild>python local.py Traceback (innermost last): File "local.py", line 8, in ? f() File "local.py", line 4, in f print x UnboundLocalError: x D:\src\PCbuild> Note that UnboundLocalError is a subclass of NameError, for compatibility with existing class-exception code that may be trying to catch this as a NameError. Unfortunately, I see no way to make this wholly compatible with -X (see comments in bltinmodule.c): under -X, [UnboundLocalError is an alias for NameError --GvR]. [The ceval.c patch differs slightly from the second version that Tim submitted; I decided not to raise UnboundLocalError for DELETE_NAME, only for DELETE_LOCAL. DELETE_NAME is only generated at the module level, and since at that level a NameError is raised for referencing an undefined name, it should also be raised for deleting one.] From fdrake@weyr.cnri.reston.va.us Tue Jun 22 19:49:22 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 22 Jun 1999 14:49:22 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libchunk.tex Message-ID: <199906221849.OAA15631@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Added Files: libchunk.tex Log Message: New section from Moshe Zadka, modified by FLD for markup, some additional content. From fdrake@weyr.cnri.reston.va.us Tue Jun 22 19:49:46 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 22 Jun 1999 14:49:46 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib lib.tex Message-ID: <199906221849.OAA15659@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: lib.tex Log Message: Added entry for the chunk module. From fdrake@weyr.cnri.reston.va.us Tue Jun 22 19:50:07 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 22 Jun 1999 14:50:07 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc Makefile.deps Message-ID: <199906221850.OAA15747@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc In directory weyr:/home/fdrake/projects/python/Doc Modified Files: Makefile.deps Log Message: Added entry for the chunk module. From fdrake@weyr.cnri.reston.va.us Tue Jun 22 22:23:24 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 22 Jun 1999 17:23:24 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib aifc.py sunau.py Message-ID: <199906222123.RAA24051@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory weyr:/home/fdrake/projects/python/Lib Modified Files: aifc.py sunau.py Log Message: Make the mode parameter to open() default in the same way as for wave.open(). From fdrake@weyr.cnri.reston.va.us Wed Jun 23 14:33:41 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Wed, 23 Jun 1999 09:33:41 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libsunau.tex libcodeop.tex Message-ID: <199906231333.JAA27396@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Added Files: libsunau.tex libcodeop.tex Log Message: Two more from Moshe! From fdrake@weyr.cnri.reston.va.us Wed Jun 23 14:34:06 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Wed, 23 Jun 1999 09:34:06 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib lib.tex Message-ID: <199906231334.JAA27421@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: lib.tex Log Message: Added more sections... From fdrake@weyr.cnri.reston.va.us Wed Jun 23 14:34:23 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Wed, 23 Jun 1999 09:34:23 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc Makefile.deps Message-ID: <199906231334.JAA27439@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc In directory weyr:/home/fdrake/projects/python/Doc Modified Files: Makefile.deps Log Message: Added more sections... From fdrake@weyr.cnri.reston.va.us Wed Jun 23 15:30:20 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Wed, 23 Jun 1999 10:30:20 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libtty.tex Message-ID: <199906231430.KAA28198@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Added Files: libtty.tex Log Message: tty module documentation from Moshe, with some editing and an added "See also" section. From fdrake@weyr.cnri.reston.va.us Wed Jun 23 15:56:15 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Wed, 23 Jun 1999 10:56:15 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libundoc.tex Message-ID: <199906231456.KAA28350@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libundoc.tex Log Message: Various updates. From fdrake@weyr.cnri.reston.va.us Wed Jun 23 16:12:13 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Wed, 23 Jun 1999 11:12:13 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libtermios.tex Message-ID: <199906231512.LAA28834@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libtermios.tex Log Message: Added "See Also" section for termios module. From fdrake@weyr.cnri.reston.va.us Wed Jun 23 18:28:03 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Wed, 23 Jun 1999 13:28:03 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libcurses.tex Message-ID: <199906231728.NAA29300@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libcurses.tex Log Message: Updates from Moshe, again edited by me. Describe the parameters to border() using a table instead of text for ease of comprehension. From fdrake@weyr.cnri.reston.va.us Wed Jun 23 18:29:02 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Wed, 23 Jun 1999 13:29:02 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc Makefile.deps Message-ID: <199906231729.NAA29342@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc In directory weyr:/home/fdrake/projects/python/Doc Modified Files: Makefile.deps Log Message: Add entries for tty module. From fdrake@weyr.cnri.reston.va.us Wed Jun 23 18:29:03 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Wed, 23 Jun 1999 13:29:03 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib lib.tex Message-ID: <199906231729.NAA29353@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: lib.tex Log Message: Add entries for tty module. From fdrake@weyr.cnri.reston.va.us Wed Jun 23 18:32:00 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Wed, 23 Jun 1999 13:32:00 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libundoc.tex Message-ID: <199906231732.NAA29415@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libundoc.tex Log Message: Removed tty module entry. From guido@cnri.reston.va.us Wed Jun 23 22:37:58 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 23 Jun 1999 17:37:58 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/freeze checkextensions.py Message-ID: <199906232137.RAA25946@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/freeze In directory eric:/projects/python/develop/guido/src/Tools/freeze Modified Files: checkextensions.py Log Message: Simplified version of a patch by Chih-Hao Huang, who wrote: """ When there are additional Setup files, specified by -e option of freeze, checkextenstions.py assumes that *.o, *.a, -Lpath, and -Rpath are all relative to where the Setup file is. select() inserts the path to the Setup file to make them absolute. However, the assumption is not true. There are cases that absolute paths are specified for them. The inserted prefix, by select(), results in error. The following fix check for absolute paths. The assumption is: an absolute path begins with either '/' or '$'. In the latter case, it is from the environmental variable. (Variables defined locally in the Setup file have already been handled by expandvars()) """ My version of the patch has been verified by Charles Waldman (a colleague of Chih-Hao). From guido@cnri.reston.va.us Thu Jun 24 00:27:05 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Wed, 23 Jun 1999 19:27:05 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib repr.py Message-ID: <199906232327.TAA26304@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: repr.py Log Message: Small patch by Tim Peters - it was using self.maxlist when it should be using self.maxdict. From guido@cnri.reston.va.us Thu Jun 24 16:27:37 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Thu, 24 Jun 1999 11:27:37 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib urllib.py Message-ID: <199906241527.LAA27869@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: urllib.py Log Message: Sjoerd Mullender writes: Urllib makes the URL of the opened file available through the geturl method of the returned object. For local files, this consists of file: plus the name of the file. This results in an invalid URL if the file name was relative. This patch fixes this so that the returned URL is just a relative URL in that case. When the file name is absolute, the URL returned is of the form file:///absolute/path. [I guess that a URL of the form "file:foo.html" is illegal... GvR] From guido@cnri.reston.va.us Thu Jun 24 18:58:45 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Thu, 24 Jun 1999 13:58:45 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libfcntl.tex Message-ID: <199906241758.NAA28552@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory eric:/projects/python/develop/guido/Doc/lib Modified Files: libfcntl.tex Log Message: Clarify the example by explicitly importing the fcntl module -- this avoid being fooled into thinking that fcntl and FCNTL are the same thing -- they aren't! (fcntl is the extension, FCNTL.py is h2py output that defines all the constants). (XXX The example is still weird -- I think there's a more portable way to do locking now. That's for someone else to fix...) From guido@cnri.reston.va.us Fri Jun 25 15:12:51 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Fri, 25 Jun 1999 10:12:51 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib cmp.py Message-ID: <199906251412.KAA04438@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: cmp.py Log Message: Patch by Mikael Lyngvig: 1. Fix incorrect file open mode on Win32 platforms (use "rb" instead of "r"). 2. Add shallow parameter to cmp.cmp(). If false, deep file comparisons are made. The module should be 100 percent backwards compatible. From guido@cnri.reston.va.us Fri Jun 25 15:21:45 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Fri, 25 Jun 1999 10:21:45 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib cmpcache.py Message-ID: <199906251421.KAA04521@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory eric:/projects/python/develop/guido/src/Lib Modified Files: cmpcache.py Log Message: Mikael Lyngvig writes: I just noticed that the changes below also apply to cmpcache.py, which is virtually identical to cmp.py. From fdrake@weyr.cnri.reston.va.us Fri Jun 25 15:58:45 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Fri, 25 Jun 1999 10:58:45 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib chunk.py Message-ID: <199906251458.KAA12425@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory weyr:/home/fdrake/projects/python/Lib Modified Files: chunk.py Log Message: Patch from Sjoerd Mullender: Make argument names equal to what is used in the documentation of the file object, since chunks are supposedly file-like. From guido@cnri.reston.va.us Fri Jun 25 16:53:56 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Fri, 25 Jun 1999 11:53:56 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib/lib-tk tkSimpleDialog.py Message-ID: <199906251553.LAA04722@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib/lib-tk In directory eric:/projects/python/develop/guido/src/Lib/lib-tk Modified Files: tkSimpleDialog.py Log Message: Break some cycles when the widget is destroyed. From guido@cnri.reston.va.us Fri Jun 25 17:00:30 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Fri, 25 Jun 1999 12:00:30 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle CallTips.py Message-ID: <199906251600.MAA04755@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: CallTips.py Log Message: Add close() method that breaks a cycle. From guido@cnri.reston.va.us Fri Jun 25 17:01:19 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Fri, 25 Jun 1999 12:01:19 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle FormatParagraph.py Message-ID: <199906251601.MAA04775@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: FormatParagraph.py Log Message: Add close() method that breaks a cycle. From guido@cnri.reston.va.us Fri Jun 25 17:02:23 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Fri, 25 Jun 1999 12:02:23 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle IOBinding.py Message-ID: <199906251602.MAA04795@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: IOBinding.py Log Message: Add close() method that breaks a cycle. From guido@cnri.reston.va.us Fri Jun 25 17:03:20 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Fri, 25 Jun 1999 12:03:20 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle WidgetRedirector.py Message-ID: <199906251603.MAA04815@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: WidgetRedirector.py Log Message: Add unregister() method. Unregister everything at closing. Don't call close() in __del__, rely on explicit call to close(). From guido@cnri.reston.va.us Fri Jun 25 17:04:39 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Fri, 25 Jun 1999 12:04:39 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle Percolator.py Message-ID: <199906251604.MAA04837@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: Percolator.py Log Message: Add close() method that breaks cycles. From guido@cnri.reston.va.us Fri Jun 25 17:06:30 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Fri, 25 Jun 1999 12:06:30 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle EditorWindow.py Message-ID: <199906251606.MAA04856@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: EditorWindow.py Log Message: Add _close() method that does the actual cleanup (close() asks the user what they want first if there's unsaved stuff, and may cancel). It closes more than before. Add unload_extensions() method to unload all extensions; called from _close(). It calls an extension's close() method if it has one. From guido@cnri.reston.va.us Fri Jun 25 17:09:28 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Fri, 25 Jun 1999 12:09:28 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle PyShell.py Message-ID: <199906251609.MAA04880@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: PyShell.py Log Message: Extend _close() to break cycles. Break some other cycles too (and destroy the root when done). From guido@cnri.reston.va.us Fri Jun 25 18:07:58 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Fri, 25 Jun 1999 13:07:58 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle TreeWidget.py Message-ID: <199906251707.NAA05012@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: TreeWidget.py Log Message: Add destroy() method to recursively destroy a tree. From guido@cnri.reston.va.us Fri Jun 25 18:08:19 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Fri, 25 Jun 1999 13:08:19 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle ClassBrowser.py Message-ID: <199906251708.NAA05031@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: ClassBrowser.py Log Message: Destroy the tree when closing. From guido@cnri.reston.va.us Fri Jun 25 18:25:23 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Fri, 25 Jun 1999 13:25:23 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle Debugger.py Message-ID: <199906251725.NAA05091@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: Debugger.py Log Message: Break cycle on close. From guido@cnri.reston.va.us Fri Jun 25 18:26:35 1999 From: guido@cnri.reston.va.us (Guido van Rossum) Date: Fri, 25 Jun 1999 13:26:35 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Tools/idle PyShell.py Message-ID: <199906251726.NAA05111@eric.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Tools/idle In directory eric:/projects/python/develop/guido/src/Tools/idle Modified Files: PyShell.py Log Message: Close debugger when closing. This may break a cycle. From fdrake@weyr.cnri.reston.va.us Fri Jun 25 18:52:18 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Fri, 25 Jun 1999 13:52:18 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libchunk.tex Message-ID: <199906251752.NAA13691@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libchunk.tex Log Message: Update to Sjoerd's documentation of the chunk module, with some additions from Moshe's version. Used my table for describing the chunk format, and added some markup and index entries. From fdrake@weyr.cnri.reston.va.us Fri Jun 25 19:52:46 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Fri, 25 Jun 1999 14:52:46 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libsched.tex Message-ID: <199906251852.OAA14217@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Added Files: libsched.tex Log Message: Moshe's section on the sched module, with edits. From fdrake@weyr.cnri.reston.va.us Fri Jun 25 19:53:24 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Fri, 25 Jun 1999 14:53:24 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib sched.py Message-ID: <199906251853.OAA14235@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory weyr:/home/fdrake/projects/python/Lib Modified Files: sched.py Log Message: While we're at it, convert to docstrings and set the indentation level to 4. From fdrake@weyr.cnri.reston.va.us Fri Jun 25 19:54:30 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Fri, 25 Jun 1999 14:54:30 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc Makefile.deps Message-ID: <199906251854.OAA14362@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc In directory weyr:/home/fdrake/projects/python/Doc Modified Files: Makefile.deps Log Message: Add entries for the sched module. From fdrake@weyr.cnri.reston.va.us Fri Jun 25 19:54:31 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Fri, 25 Jun 1999 14:54:31 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib lib.tex Message-ID: <199906251854.OAA14374@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: lib.tex Log Message: Add entries for the sched module. From fdrake@weyr.cnri.reston.va.us Fri Jun 25 20:13:37 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Fri, 25 Jun 1999 15:13:37 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libsched.tex Message-ID: <199906251913.PAA14726@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libsched.tex Log Message: Fix some typos. Add an index entry. From fdrake@weyr.cnri.reston.va.us Sun Jun 27 15:53:12 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Sun, 27 Jun 1999 10:53:12 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libsunaudio.tex Message-ID: <199906271453.KAA19245@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libsunaudio.tex Log Message: Separate documentation of SUNAUDIODEV from sunaudiodev; this mirrors similar constructs elsewhere (al/AL, gl/GL/DEVICE). From fdrake@weyr.cnri.reston.va.us Sun Jun 27 16:00:42 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Sun, 27 Jun 1999 11:00:42 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libmutex.tex Message-ID: <199906271500.LAA19299@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Added Files: libmutex.tex Log Message: Mutex documentation from Moshe. From fdrake@weyr.cnri.reston.va.us Sun Jun 27 16:01:09 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Sun, 27 Jun 1999 11:01:09 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libnis.tex Message-ID: <199906271501.LAA19322@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Added Files: libnis.tex Log Message: NIS documentation from Moshe. From fdrake@weyr.cnri.reston.va.us Sun Jun 27 16:01:52 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Sun, 27 Jun 1999 11:01:52 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib lib.tex Message-ID: <199906271501.LAA19347@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: lib.tex Log Message: Added entries for mutex and nis modules. From fdrake@weyr.cnri.reston.va.us Sun Jun 27 16:02:38 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Sun, 27 Jun 1999 11:02:38 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc Makefile.deps Message-ID: <199906271502.LAA19370@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc In directory weyr:/home/fdrake/projects/python/Doc Modified Files: Makefile.deps Log Message: Added entries for mutex and nis modules. From bwarsaw@cnri.reston.va.us Tue Jun 29 00:15:28 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Mon, 28 Jun 1999 19:15:28 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Objects stringobject.c Message-ID: <199906282315.TAA04355@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Objects In directory anthem:/projects/python/develop/bwarsaw/src/Objects Modified Files: Tag: string_methods stringobject.c Log Message: string_methods[]: Only define the string methods when the macro STRING_METHODS is defined (not defined by default). From bwarsaw@cnri.reston.va.us Tue Jun 29 00:17:44 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Mon, 28 Jun 1999 19:17:44 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib stringold.py Message-ID: <199906282317.TAA04377@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory anthem:/projects/python/develop/bwarsaw/src/Lib Added Files: Tag: string_methods stringold.py Log Message: This is the `old' (i.e. pre string_methods) version of the file, used transitionally by the new string.py module. Hopefully this will be added to the correct CVS branch! From bwarsaw@cnri.reston.va.us Tue Jun 29 00:20:55 1999 From: bwarsaw@cnri.reston.va.us (Barry A. Warsaw) Date: Mon, 28 Jun 1999 19:20:55 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib string.py Message-ID: <199906282320.TAA04400@anthem.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory anthem:/projects/python/develop/bwarsaw/src/Lib Modified Files: Tag: string_methods string.py Log Message: If string objects do not have methods, then do a "from stringold import *" to get all the old implementations of string module functions. This is only transitional until string methods are accepted into the main branch. From fdrake@weyr.cnri.reston.va.us Tue Jun 29 22:21:20 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 29 Jun 1999 17:21:20 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libre.tex Message-ID: <199906292121.RAA26389@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libre.tex Log Message: For "Matching vs. Searching", remove comment that the section is incomplete; I don't remember what else I thought I was going to put in, but it looks o.k. to me know. From fdrake@weyr.cnri.reston.va.us Tue Jun 29 19:54:03 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 29 Jun 1999 14:54:03 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc TODO Message-ID: <199906291854.OAA24746@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc In directory weyr:/home/fdrake/projects/python/Doc Modified Files: TODO Log Message: Added some reminders. From fdrake@weyr.cnri.reston.va.us Tue Jun 29 19:12:22 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 29 Jun 1999 14:12:22 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc Makefile.deps Message-ID: <199906291812.OAA24517@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc In directory weyr:/home/fdrake/projects/python/Doc Modified Files: Makefile.deps Log Message: Added entry for pty module. From fdrake@weyr.cnri.reston.va.us Tue Jun 29 19:11:22 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 29 Jun 1999 14:11:22 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libpty.tex Message-ID: <199906291811.OAA24481@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Added Files: libpty.tex Log Message: pty documentation from Moshe; with small edits. From fdrake@weyr.cnri.reston.va.us Tue Jun 29 18:08:42 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 29 Jun 1999 13:08:42 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libtraceback.tex Message-ID: <199906291708.NAA23826@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libtraceback.tex Log Message: Improve description of the example. From fdrake@weyr.cnri.reston.va.us Tue Jun 29 19:13:37 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 29 Jun 1999 14:13:37 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libuserdict.tex Message-ID: <199906291813.OAA24542@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libuserdict.tex Log Message: Added some minor prose before the descriptions of the data attributes to make it clear that these are instance attributes, not module data. From fdrake@weyr.cnri.reston.va.us Tue Jun 29 19:11:50 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 29 Jun 1999 14:11:50 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib lib.tex Message-ID: <199906291811.OAA24499@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: lib.tex Log Message: Added entry for pty module. From fdrake@weyr.cnri.reston.va.us Tue Jun 29 19:16:00 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 29 Jun 1999 14:16:00 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/texinputs howto.cls manual.cls python.sty Message-ID: <199906291816.OAA24561@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/texinputs In directory weyr:/home/fdrake/projects/python/Doc/texinputs Modified Files: howto.cls manual.cls python.sty Log Message: Move the setting for secnumdepth to the document classes; make the numbering for the manual class go one deeper than it previously did (\subsection entries will now be numbered); no change for howto documents. This makes it easier to refer precisely to smaller sections using \ref. From fdrake@weyr.cnri.reston.va.us Tue Jun 29 16:53:53 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 29 Jun 1999 11:53:53 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libcmath.tex Message-ID: <199906291553.LAA23503@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libcmath.tex Log Message: Remove unnecessary comma. From fdrake@weyr.cnri.reston.va.us Tue Jun 29 17:00:24 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 29 Jun 1999 12:00:24 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libfileinput.tex Message-ID: <199906291600.MAA23633@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libfileinput.tex Log Message: Minor wording change in section title. From fdrake@weyr.cnri.reston.va.us Tue Jun 29 15:57:13 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 29 Jun 1999 10:57:13 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libmutex.tex Message-ID: <199906291457.KAA23123@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libmutex.tex Log Message: Moshe: Remove extraneous "and". From fdrake@weyr.cnri.reston.va.us Tue Jun 29 16:43:03 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 29 Jun 1999 11:43:03 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libpyclbr.tex Message-ID: <199906291543.LAA23444@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libpyclbr.tex Log Message: Add note about not being able to use this module with modules not implemented in Python. From fdrake@weyr.cnri.reston.va.us Tue Jun 29 16:58:00 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 29 Jun 1999 11:58:00 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libarray.tex Message-ID: <199906291558.LAA23568@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libarray.tex Log Message: byteswap() method: Tell *what* exception gets raised when the type cannot be byteswapped. From fdrake@weyr.cnri.reston.va.us Tue Jun 29 16:45:10 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 29 Jun 1999 11:45:10 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libnew.tex Message-ID: <199906291545.LAA23465@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libnew.tex Log Message: Comment out XXX comment; this needn't appear in the formatted versions. XXX comments only need to be grep-able. From fdrake@weyr.cnri.reston.va.us Tue Jun 29 17:02:13 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 29 Jun 1999 12:02:13 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/lib libcopy.tex Message-ID: <199906291602.MAA23654@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/lib In directory weyr:/home/fdrake/projects/python/Doc/lib Modified Files: libcopy.tex Log Message: Usage nit: a bunch of "nor"s should have been a single "or". Make reference to the copy_reg module a hyperlink. From fdrake@weyr.cnri.reston.va.us Tue Jun 29 16:49:35 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Tue, 29 Jun 1999 11:49:35 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Lib fpformat.py Message-ID: <199906291549.LAA23485@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Lib In directory weyr:/home/fdrake/projects/python/Lib Modified Files: fpformat.py Log Message: Define NotANumber as a subclass of ValueError when using class-based exceptions. When raising NotANumber, pass the string that failed as the exception value. From fdrake@weyr.cnri.reston.va.us Wed Jun 30 16:32:51 1999 From: fdrake@weyr.cnri.reston.va.us (Fred L. Drake) Date: Wed, 30 Jun 1999 11:32:51 -0400 (EDT) Subject: [Python-checkins] CVS: python/dist/src/Doc/tut tut.tex Message-ID: <199906301532.LAA28858@weyr.cnri.reston.va.us> Update of /projects/cvsroot/python/dist/src/Doc/tut In directory weyr:/home/fdrake/projects/python/Doc/tut Modified Files: tut.tex Log Message: Made several grammatical corrections based on comments from Daniel Barcla . Also added example of what happens when a parameter is set both positionally and by a keyword (one of Daniels suggestions related to that paragraph).