]> granicus.if.org Git - python/log
python
25 years agoPatch by Per Cederqvist:
Guido van Rossum [Wed, 9 Jun 1999 15:13:10 +0000 (15:13 +0000)]
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.

25 years agoAdd doc for timegm().
Guido van Rossum [Wed, 9 Jun 1999 15:11:58 +0000 (15:11 +0000)]
Add doc for timegm().

25 years agoAdd unrelated but handy function: timegm(), to calculate Unix
Guido van Rossum [Wed, 9 Jun 1999 15:07:38 +0000 (15:07 +0000)]
Add unrelated but handy function: timegm(), to calculate Unix
timestamp from GMT tuple.

25 years agoDon't just die if gethostbyaddr() fails -- as it can when DNS is
Guido van Rossum [Wed, 9 Jun 1999 15:05:47 +0000 (15:05 +0000)]
Don't just die if gethostbyaddr() fails -- as it can when DNS is
unreachable -- but fall back to using whatever hostname we have.

25 years agoOops, Sjoerd was in a hurry. This patch from him fixes some length
Guido van Rossum [Wed, 9 Jun 1999 13:41:18 +0000 (13:41 +0000)]
Oops, Sjoerd was in a hurry.  This patch from him fixes some length
math in the Chunk class.

25 years agoPatch/new code by Sjoerd Mullender:
Guido van Rossum [Wed, 9 Jun 1999 13:32:28 +0000 (13:32 +0000)]
Patch/new code by Sjoerd Mullender:
Separate the Chunk class out of the aifc module into a new "chunk" module.

25 years agoFix (sanctioned by Sjoerd) for a problem reported by Andreas Faerber:
Guido van Rossum [Tue, 8 Jun 1999 21:23:26 +0000 (21:23 +0000)]
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).

25 years agoOn David Ascher's recommendation: reversed order of 'utime()' and
Greg Ward [Tue, 8 Jun 1999 17:05:21 +0000 (17:05 +0000)]
On David Ascher's recommendation: reversed order of 'utime()' and
'chmod()' in 'copy_file()'.

25 years agoSam's latest versions
Guido van Rossum [Tue, 8 Jun 1999 13:20:05 +0000 (13:20 +0000)]
Sam's latest versions

25 years agoSkip Montanaro:
Guido van Rossum [Tue, 8 Jun 1999 13:13:16 +0000 (13:13 +0000)]
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.

25 years agoHmm... Tim didn't turn "replace all" into a single undo block.
Guido van Rossum [Tue, 8 Jun 1999 13:06:07 +0000 (13:06 +0000)]
Hmm...  Tim didn't turn "replace all" into a single undo block.
I think I like it better if it os, so here.

25 years agoTim Peters: made replacement atomic for undo/redo.
Guido van Rossum [Tue, 8 Jun 1999 12:54:56 +0000 (12:54 +0000)]
Tim Peters: made replacement atomic for undo/redo.

25 years agoTim Peters:
Guido van Rossum [Tue, 8 Jun 1999 12:54:23 +0000 (12:54 +0000)]
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).

25 years agoTim Peters: Taught it more "real Python" rules without slowing it
Guido van Rossum [Tue, 8 Jun 1999 12:53:21 +0000 (12:53 +0000)]
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.

25 years agoHacked 'set_final_options()' to set (hopefully) appropriate values for
Greg Ward [Tue, 8 Jun 1999 02:04:36 +0000 (02:04 +0000)]
Hacked 'set_final_options()' to set (hopefully) appropriate values for
'install_site_lib' and install_site_platlib' on non-POSIX platforms.
Should at least work for NT, as this is adopted from Amos Latteier's NT
patches.  Also added extensive comments bitching about the inadequacy of
the current model, both under POSIX and NT (and probably other) systems.

25 years agoAdded the 'have_run' dictionary to Distribution, and changed
Greg Ward [Tue, 8 Jun 1999 02:02:00 +0000 (02:02 +0000)]
Added the 'have_run' dictionary to Distribution, and changed
  'run_command()' to refer to it before attempting to run a command --
  that way, command classes can freely invoke other commands without fear
  of duplicate execution.
Beefed up some comments and docstrings.

25 years agoNow handles NT, through '_init_nt()' function (courtesy of
Greg Ward [Tue, 8 Jun 1999 01:58:36 +0000 (01:58 +0000)]
Now handles NT, through '_init_nt()' function (courtesy of
Amos Latteier <amos@aracnet.com>).

25 years agoRemove unnecessary reference to pyclbr from test() code.
Guido van Rossum [Mon, 7 Jun 1999 15:38:40 +0000 (15:38 +0000)]
Remove unnecessary reference to pyclbr from test() code.

25 years agoExperimental speedup patch by Tim Peters (please test!):
Guido van Rossum [Mon, 7 Jun 1999 15:25:18 +0000 (15:25 +0000)]
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!

25 years agoFix bug discovered by John W. Shipman -- when the width of a format
Guido van Rossum [Mon, 7 Jun 1999 15:12:32 +0000 (15:12 +0000)]
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.

25 years agoTim Peters:
Guido van Rossum [Mon, 7 Jun 1999 14:28:14 +0000 (14:28 +0000)]
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).

25 years agoMight as well enable CallTips by default.
Guido van Rossum [Fri, 4 Jun 1999 19:21:19 +0000 (19:21 +0000)]
Might as well enable CallTips by default.
If there are too many complaints I'll remove it again or fix it.

25 years agoPatch by Jim Fulton: new function parse_qsl(), which is like
Guido van Rossum [Fri, 4 Jun 1999 17:54:39 +0000 (17:54 +0000)]
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.

25 years agoAdded an "optional" directive, that will include a module if it is available
Jack Jansen [Fri, 4 Jun 1999 15:56:33 +0000 (15:56 +0000)]
Added an "optional" directive, that will include a module if it is available
but not complain if it isn't (giving an ImportError when the frozen code is run).

25 years ago(py-statement-closes-block-p): py-goto-initial-line could leave us in
Barry Warsaw [Thu, 3 Jun 1999 22:18:59 +0000 (22:18 +0000)]
(py-statement-closes-block-p): py-goto-initial-line could leave us in
the line's whitespace.  back-to-indentation should /follow/ this call.

25 years agoNew offerings by Tim Peters; he writes:
Guido van Rossum [Thu, 3 Jun 1999 14:32:16 +0000 (14:32 +0000)]
New offerings by Tim Peters; he writes:

IDLE is now the first Python editor in the Universe not confused by my
doctest.py <wink>.

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.

25 years agoEnclose pattern in quotes in status message.
Guido van Rossum [Thu, 3 Jun 1999 14:25:49 +0000 (14:25 +0000)]
Enclose pattern in quotes in status message.

25 years agoMark Hammond fixed some comments and improved the way the tip text is
Guido van Rossum [Thu, 3 Jun 1999 12:07:50 +0000 (12:07 +0000)]
Mark Hammond fixed some comments and improved the way the tip text is
constructed.

25 years agoAt Jim Fulton's request (actually, as a compromise :-), default the
Guido van Rossum [Wed, 2 Jun 1999 18:44:22 +0000 (18:44 +0000)]
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.

25 years agoMy fix to Mark's code: restore the universal check on <KeyRelease>.
Guido van Rossum [Wed, 2 Jun 1999 18:18:57 +0000 (18:18 +0000)]
My fix to Mark's code: restore the universal check on <KeyRelease>.
Always cancel on <Key-Escape> or <ButtonPress>.

25 years agoA version that Mark Hammond posted to the newsgroup. Has some newer
Guido van Rossum [Wed, 2 Jun 1999 18:12:55 +0000 (18:12 +0000)]
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.

25 years agoCall tips by Mark Hammond (plus tiny fix by me.)
Guido van Rossum [Wed, 2 Jun 1999 16:10:19 +0000 (16:10 +0000)]
Call tips by Mark Hammond (plus tiny fix by me.)

25 years agoChanges by Mark Hammond: (1) support optional output_sep argument to
Guido van Rossum [Wed, 2 Jun 1999 12:06:47 +0000 (12:06 +0000)]
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.

25 years agoChanges by Mark Hammond to allow using IDLE extensions in PythonWin as
Guido van Rossum [Wed, 2 Jun 1999 11:05:19 +0000 (11:05 +0000)]
Changes by Mark Hammond to allow using IDLE extensions in PythonWin as
well: make three dialog routines instance variables.

25 years agoChange by Mark Hammond to allow using IDLE extensions in PythonWin as
Guido van Rossum [Wed, 2 Jun 1999 11:04:29 +0000 (11:04 +0000)]
Change by Mark Hammond to allow using IDLE extensions in PythonWin as
well: make three dialog routines instance variables.

25 years agoHah! A fix of my own to Tim's code!
Guido van Rossum [Tue, 1 Jun 1999 20:06:44 +0000 (20:06 +0000)]
Hah!  A fix of my own to Tim's code!
Unix bindings for <<toggle-tabs>> and <<change-indentwidth>> 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).

25 years agoTim Peters again:
Guido van Rossum [Tue, 1 Jun 1999 19:55:34 +0000 (19:55 +0000)]
Tim Peters again:

The new version (attached) is fast enough all the time in every real module
I have <whew!>.  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.

25 years agoTim Peters again:
Guido van Rossum [Tue, 1 Jun 1999 19:52:34 +0000 (19:52 +0000)]
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.

25 years agoNew file by Tim Peters:
Guido van Rossum [Tue, 1 Jun 1999 19:49:21 +0000 (19:49 +0000)]
New file by Tim Peters:

One new file in the attached, PyParse.py.  The LineStudier (whatever it was
called <wink>) class was removed from AutoIndent; PyParse subsumes its
functionality.

25 years agoTim Peters keeps revising this module (more to come):
Guido van Rossum [Tue, 1 Jun 1999 19:47:56 +0000 (19:47 +0000)]
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.

25 years agoAndy Dustman notes that I patched the close() call in the wrong place.
Guido van Rossum [Tue, 1 Jun 1999 18:58:34 +0000 (18:58 +0000)]
Andy Dustman notes that I patched the close() call in the wrong place.
Here's the correct patch!

25 years agoIn class TemporaryFileWrapper, don't cache attributes of tpye int --
Guido van Rossum [Tue, 1 Jun 1999 18:55:36 +0000 (18:55 +0000)]
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).

25 years ago1. Catch NameError on import (could be raised by case mismatch on Windows).
Guido van Rossum [Tue, 1 Jun 1999 18:27:14 +0000 (18:27 +0000)]
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.

25 years agoMissed a few.
Guido van Rossum [Tue, 1 Jun 1999 18:23:19 +0000 (18:23 +0000)]
Missed a few.

25 years agoRewritten based on TreeWidget.py
Guido van Rossum [Tue, 1 Jun 1999 18:21:31 +0000 (18:21 +0000)]
Rewritten based on TreeWidget.py

25 years agoObject browser, based on TreeWidget.py.
Guido van Rossum [Tue, 1 Jun 1999 18:20:56 +0000 (18:20 +0000)]
Object browser, based on TreeWidget.py.

25 years agoTree widget done right.
Guido van Rossum [Tue, 1 Jun 1999 18:19:17 +0000 (18:19 +0000)]
Tree widget done right.

25 years agoAs yet unused code for tool tips.
Guido van Rossum [Tue, 1 Jun 1999 18:19:02 +0000 (18:19 +0000)]
As yet unused code for tool tips.

25 years agoEnsure sys.argv[0] is the script name on Run Script.
Guido van Rossum [Tue, 1 Jun 1999 18:18:27 +0000 (18:18 +0000)]
Ensure sys.argv[0] is the script name on Run Script.

25 years agoMove zoom height functionality to separate function.
Guido van Rossum [Tue, 1 Jun 1999 18:17:02 +0000 (18:17 +0000)]
Move zoom height functionality to separate function.

25 years agoFix availability clause; mention availability of similar functionality
Fred Drake [Tue, 1 Jun 1999 17:55:52 +0000 (17:55 +0000)]
Fix availability clause; mention availability of similar functionality
for Windows using win32pipe.

25 years agoA few icons used by ../TreeWidget.py and its callers.
Guido van Rossum [Tue, 1 Jun 1999 15:04:51 +0000 (15:04 +0000)]
A few icons used by ../TreeWidget.py and its callers.

25 years agoNew version by Tim Peters improves block opening test.
Guido van Rossum [Tue, 1 Jun 1999 15:03:30 +0000 (15:03 +0000)]
New version by Tim Peters improves block opening test.

25 years agoJack Jansen's patch to support file:///path/file/name URL syntax.
Guido van Rossum [Tue, 1 Jun 1999 14:36:56 +0000 (14:36 +0000)]
Jack Jansen's patch to support file:///path/file/name URL syntax.

25 years agoGreg McFarlane writes: Tkinter.Text.tag_add should take multiple
Guido van Rossum [Tue, 1 Jun 1999 13:57:15 +0000 (13:57 +0000)]
Greg McFarlane writes: Tkinter.Text.tag_add should take multiple
arguments.  [Slightly changed from submitted patch.]

25 years agoposix_listdir(): When an error occurs, call
Barry Warsaw [Thu, 27 May 1999 23:13:21 +0000 (23:13 +0000)]
posix_listdir(): When an error occurs, call
posix_error_with_filename() instead of posix_error(), passing in the
name argument, so you get information on which directory was being
listed.

25 years agoOops, forgot to remove the individual module indexes for lib & mac now
Fred Drake [Thu, 27 May 1999 21:56:11 +0000 (21:56 +0000)]
Oops, forgot to remove the individual module indexes for lib & mac now
that there's a Global Module Index; there can be only one!

25 years agoAdd <hr> after top navigation bar; now looks more like the rest of the
Fred Drake [Thu, 27 May 1999 21:52:51 +0000 (21:52 +0000)]
Add <hr> after top navigation bar; now looks more like the rest of the
navigation bars in the HTML output.

25 years agoHack: make sure LaTeX2HTML doesn't change -- to - in mkhowto
Fred Drake [Thu, 27 May 1999 21:45:54 +0000 (21:45 +0000)]
Hack: make sure LaTeX2HTML doesn't change -- to - in mkhowto
description.

25 years agoDocument the "pid" attribute of the Popen3 class.
Fred Drake [Thu, 27 May 1999 17:50:59 +0000 (17:50 +0000)]
Document the "pid" attribute of the Popen3 class.

Use memberdesc instead of datadesc to document object attributes.
This gets the index right.

25 years agoTypo reported by Gerry Wiener <wiener@rap.ucar.edu>:
Fred Drake [Thu, 27 May 1999 17:18:08 +0000 (17:18 +0000)]
Typo reported by Gerry Wiener <wiener@rap.ucar.edu>:

items -> item

The returned list will then have one more items than the number of
non-overlapping occurrences of the separator in the string.

25 years agoMove some \index entries around so we can avoid using empty comments;
Fred Drake [Wed, 26 May 1999 16:15:17 +0000 (16:15 +0000)]
Move some \index entries around so we can avoid using empty comments;
empty comments trigger a bug in LaTeX2HTML.

Problem reported by Gerry Wiener <gerry@ucar.edu>.

25 years agoChange the example of configuring for large file support under Solaris
Fred Drake [Wed, 26 May 1999 13:03:34 +0000 (13:03 +0000)]
Change the example of configuring for large file support under Solaris
to use `getconf LFS_CFLAGS`.  Steve Clift (the author of the section
and large file support) agrees that this is the right thing to do.

25 years agoEugene Dvurechenski <jno@glas.net> says:
Barry Warsaw [Wed, 26 May 1999 04:02:18 +0000 (04:02 +0000)]
Eugene Dvurechenski <jno@glas.net> says:

    there is "su" top level domain still maintained in ex-USSR.  at
    least "*.msk.su" zone (Moscow, USSR) is still in use.

25 years ago"proces" --> "process"; reported by Gerry Wiener <gerry@ucar.edu>.
Fred Drake [Tue, 25 May 1999 13:42:26 +0000 (13:42 +0000)]
"proces" --> "process"; reported by Gerry Wiener <gerry@ucar.edu>.

Added some index entries.

25 years ago(py-electric-backspace): I'm not sure this function should be special
Barry Warsaw [Mon, 24 May 1999 21:43:37 +0000 (21:43 +0000)]
(py-electric-backspace): I'm not sure this function should be special
casing when py-honor-comment-indentation is nil, but this could be a
religious issue with some.  Seems to me we should still be dedenting
such comment lines one level.

25 years ago(py-parse-state): When running under Emacs -- which doesn't have
Barry Warsaw [Mon, 24 May 1999 19:57:32 +0000 (19:57 +0000)]
(py-parse-state): When running under Emacs -- which doesn't have
buffer-syntactic-context -- just short circuit the TQS test by jumping
to point-min and doing the test from there.  For long files, this will
be faster than looping with a re-search-backwards.

25 years ago(py-statement-closes-block-p): Add a py-goto-initial-line which fixes
Barry Warsaw [Mon, 24 May 1999 18:37:57 +0000 (18:37 +0000)]
(py-statement-closes-block-p): Add a py-goto-initial-line which fixes
indentation when the return value is a multiline sexp:

def bug():
    try:
        if 2>1:
            return (11+
                    12)

        else:   #XXX
            return 12
    except:
        return 13

25 years agoOliver Steele writes:
Just van Rossum [Fri, 21 May 1999 21:42:27 +0000 (21:42 +0000)]
Oliver Steele writes:
"""Despite the best intentions of Anarchie and Internet Explorer, I often end
up with Python source files (and other text files that I'd like to edit with
PythonIDE) that use '\n' instead of '\r' as a line separator (and therefore
sh

25 years agoOn HP-UX, -rpath is another option taking an argument that needs to go
Guido van Rossum [Fri, 21 May 1999 19:18:49 +0000 (19:18 +0000)]
On HP-UX, -rpath is another option taking an argument that needs to go
to the libs variable.  Reported by Albert Chin-A-Young.

25 years agoAndy Dustman writes:
Guido van Rossum [Fri, 21 May 1999 16:12:30 +0000 (16:12 +0000)]
Andy Dustman writes:

I noticed while watching (with lsof) my forking SocketServer app running
that I would get multiple processes listening to the socket. For the most
part, this doesn't hurt things, but if you terminate the server, this can
prevent it from restarting because it cannot bind to the port due to any
running children which also have the socket open. The following one-liner
fixes this.

25 years agoRename History to IdleHistory.
Guido van Rossum [Fri, 21 May 1999 04:46:17 +0000 (04:46 +0000)]
Rename History to IdleHistory.
Add isatty() to pseudo files.

25 years agoMake initial stack viewer wider
Guido van Rossum [Fri, 21 May 1999 04:45:45 +0000 (04:45 +0000)]
Make initial stack viewer wider

25 years agoNew wishes
Guido van Rossum [Fri, 21 May 1999 04:45:20 +0000 (04:45 +0000)]
New wishes

25 years agoMuch improved autoindent and handling of tabs,
Guido van Rossum [Fri, 21 May 1999 04:38:27 +0000 (04:38 +0000)]
Much improved autoindent and handling of tabs,
by Tim Peters.

25 years agoMap .js to application/x-javascript.
Fred Drake [Thu, 20 May 1999 12:52:04 +0000 (12:52 +0000)]
Map .js to application/x-javascript.

25 years agoEnhanced docstring and some comments.
Fred Drake [Wed, 19 May 1999 17:37:37 +0000 (17:37 +0000)]
Enhanced docstring and some comments.

_begin_macro_rx:  Fixed RE that didn't properly allow a space after
  the name of the macro.  This affects the conversion
  of the tutorial.

25 years agoModify to perform "---" to "&mdash;" conversion outside of
Fred Drake [Tue, 18 May 1999 17:34:51 +0000 (17:34 +0000)]
Modify to perform "---" to "&mdash;" conversion outside of
verbatim-like environments.  The list of verbatim-like environments is
a defined by a variable in main().

25 years agoRemove the "---" to "&mdash;" conversion; this is wrong in verbatim
Fred Drake [Tue, 18 May 1999 17:33:01 +0000 (17:33 +0000)]
Remove the "---" to "&mdash;" conversion; this is wrong in verbatim
environments.  Move the conversion to esis2sgml.py.

25 years agoSET_LINE_NO ==> SET_LINENO
Fred Drake [Mon, 17 May 1999 20:57:07 +0000 (20:57 +0000)]
SET_LINE_NO ==> SET_LINENO

Reported by Corran Webster <cwebster@math.tamu.edu>.

25 years agoAdded "Learning Python" to the books section.
Fred Drake [Mon, 17 May 1999 19:35:01 +0000 (19:35 +0000)]
Added "Learning Python" to the books section.

Updated comments on the documentation.

25 years agoAdded paragraph explaininng the text/binary flavors of some methods,
Fred Drake [Mon, 17 May 1999 16:35:15 +0000 (16:35 +0000)]
Added paragraph explaininng the text/binary flavors of some methods,
to make it easier for people to find what they're looking for.

25 years agoDocument \e, \url.
Fred Drake [Mon, 17 May 1999 16:33:54 +0000 (16:33 +0000)]
Document \e, \url.
Add a few more comments about mkhowto.

Based on comments from Albert <hat@se-46.wpa.wtb.tue.nl>.

25 years agoDon't \input boilerplate.tex, fill in the real stuff. 3rd party
Fred Drake [Mon, 17 May 1999 16:02:38 +0000 (16:02 +0000)]
Don't \input boilerplate.tex, fill in the real stuff.  3rd party
documents probably aren't written by Guido.  ;-)

25 years agoAttempted to clarify usage of the \declaremodule macro somewhat;
Fred Drake [Mon, 17 May 1999 15:22:45 +0000 (15:22 +0000)]
Attempted to clarify usage of the \declaremodule macro somewhat;
Michael Hudson's documentation for bytecodehacks exhibits incorrect
usage.

Added some comments about how to set up the mkhowto script for use
with documents not contained in the documentation source tree.

25 years agodefine_module(): Check the module type for validity before using.
Fred Drake [Mon, 17 May 1999 15:00:32 +0000 (15:00 +0000)]
define_module():  Check the module type for validity before using.
  This reflects the changes made in
  ../texinputs/python.sty.

25 years ago\declaremodule: Typo.
Fred Drake [Mon, 17 May 1999 14:57:26 +0000 (14:57 +0000)]
\declaremodule:  Typo.

25 years ago\declaremodule: Make this more robust. Only attempt to add an index
Fred Drake [Mon, 17 May 1999 14:47:10 +0000 (14:47 +0000)]
\declaremodule:  Make this more robust.  Only attempt to add an index
 entry based on the module type if the type is known.
 Otherwise, spit out a warning the the module type
 parameter was bad and generate a "plain" index entry.

 Without this, the bad module type was emitted as
 text.

Problem noticed by processing Michael Hudson's docs for
bytecodehacks.

25 years agoThe conversion temporary files should not be ignored here anymore,
Fred Drake [Thu, 13 May 1999 18:57:28 +0000 (18:57 +0000)]
The conversion temporary files should not be ignored here anymore,
since they shouldn't be here.  Only ignore the output tarballs in this
directory.

25 years agoPOP3.uidl(): Update description based on comments from Piers Lauder
Fred Drake [Thu, 13 May 1999 18:48:14 +0000 (18:48 +0000)]
POP3.uidl():  Update description based on comments from Piers Lauder
      <piers@cs.su.oz.au>.

25 years agoPOP3.uidl(): Update docstring based on comments from Piers Lauder
Fred Drake [Thu, 13 May 1999 18:47:25 +0000 (18:47 +0000)]
POP3.uidl():  Update docstring based on comments from Piers Lauder
      <piers@cs.su.oz.au>.

25 years agoPyCObject_FromVoidPtr(): Clarify that the destr function will only be
Fred Drake [Thu, 13 May 1999 18:41:14 +0000 (18:41 +0000)]
PyCObject_FromVoidPtr():  Clarify that the destr function will only be
  called on destruction is non-NULL.

25 years agoSmall nits around some of the index entries.
Fred Drake [Thu, 13 May 1999 18:38:11 +0000 (18:38 +0000)]
Small nits around some of the index entries.

When refering to chapters, use \ref, don't hardcode the chapter
number.

25 years agomake_index_entry(): Remove. Not only did this override the
Fred Drake [Thu, 13 May 1999 18:36:54 +0000 (18:36 +0000)]
make_index_entry():  Remove.  Not only did this override the
     l2hinit.perl version of the function (which
     overrode a version in latex2html), but
     do_cmd_index() was overridden.  Since
     do_cmd_index() was the only caller, we can trash
     this.

define_indexing_macro():  New function used during setup to support
  more dynamic dispatch for indexing.

process_index_macros():  New function; implement dynamic dispatching
 of indexing support functions, allowing many
 targets used in indexing to be shared by
 multiple index entries.  I.e., something like
 \index{foo}\bifuncindex{bar} can now share a
 single target anchor.

These indexing changes reduce the amount of clutter in the generated
HTML files.  In the reference manual, this cuts the number of targets
by 44%.  Targets are less affected when generated by environments
rather than macros.

25 years agomake_index_entry(): Remove. This is overridden in python.perl and
Fred Drake [Thu, 13 May 1999 16:41:19 +0000 (16:41 +0000)]
make_index_entry():  Remove.  This is overridden in python.perl and
     was never called in this incarnation.  The
     other version is simpler as well.

25 years agoRemoved old comments.
Fred Drake [Thu, 13 May 1999 16:20:30 +0000 (16:20 +0000)]
Removed old comments.

25 years agoChange the look of \seemodule output to fit in better.
Fred Drake [Tue, 11 May 1999 15:42:51 +0000 (15:42 +0000)]
Change the look of \seemodule output to fit in better.

25 years agoMove the "See also:" section so it appears are part of the top HTML
Fred Drake [Tue, 11 May 1999 15:15:54 +0000 (15:15 +0000)]
Move the "See also:" section so it appears are part of the top HTML
page of the section.

25 years agoAdded module references; minor grammatical fixes.
Fred Drake [Tue, 11 May 1999 15:14:15 +0000 (15:14 +0000)]
Added module references; minor grammatical fixes.
All suggested by Eric Raymond.

25 years agoAdded missing comma, reported by Eric Raymond.
Fred Drake [Tue, 11 May 1999 13:45:37 +0000 (13:45 +0000)]
Added missing comma, reported by Eric Raymond.