Guido van Rossum [Mon, 29 Dec 1997 20:05:45 +0000 (20:05 +0000)]
Moved things around a bit in interact(), so outout is processed before
input. When an EOF is read, break out of the loop instead of (by
default) writing an empty line (which doesn't do much good). Don't
close self when falling through the loop.
Guido van Rossum [Mon, 29 Dec 1997 19:59:33 +0000 (19:59 +0000)]
Fixed several bugs reported by Greg McFarmane:
* The invoke methods of the three Tkinter widgets Button,
Checkbutton and Radiobutton should return the value returned by
the callback, (like the Menu widget does):
Currently, if you use select_from, you get the error message:
'TclError: bad select option "set": must be adjust, clear, from, item, or to'
* The 'entrycget' and 'type' methods of the Tk menu widget are
missing from Tkinter.
* There is a bug in grid_columnconfigure and grid_rowconfigure. For
example, this should return the current value of the 'minsize'
option for column 0:
f.grid_columnconfigure(0, 'minsize')
Instead it returns the same as:
f.grid_columnconfigure(0)
I suggest that the hint given in the comment in the
Tkinter.Misc.configure method should be followed - "ought to
generalize this so tag_config etc. can use it". Repeating the
same configure code several times in Tkinter is inviting errors.
[I did not follow this advice --G]
* The grid_slaves method should handle options. Currently, to pass
options to the grid_slaves method, you have to do something like:
Fred Drake [Mon, 29 Dec 1997 17:19:22 +0000 (17:19 +0000)]
A bunch of minor stuff.
Lots of support for new macros defined in myformat.sty; including the new
indexing macros, seealso environment & friends, and the byte code instruction
support.
Fred Drake [Mon, 29 Dec 1997 16:54:11 +0000 (16:54 +0000)]
Removed "-*-texinfo-*-" from first line; this can cause emacs/xemacs to stop
and ask the user for permission to set buffer-local variables depending on
the user's configuration. Not really needed since this doesn't get edited
often.
Bumped the version number to 1.5; date still needs to be set.
Fred Drake [Mon, 29 Dec 1997 15:55:10 +0000 (15:55 +0000)]
Changed some \verb\...\ markup to the more common \code{...}. \verb\...\ is
rarely needed and should be avoided where possible since it doesn't behave
well with some processing tools (like partparse.py).
Guido van Rossum [Sun, 28 Dec 1997 04:21:20 +0000 (04:21 +0000)]
Solve two annoying problems with ftp URLs for Jack: when repeated
retrieving files from the same host and directory, you had to close
the previous instance before opening a new one; and retrieving a
non-existent file would return an empty file. (The latter fix relies
on maybe an undocumented property of NLST -- NLST of a file returns
just that file, while NLST of a non-existent file returns nothing. A
side effect, unfortunately, seems to be that now ftp-retrieving an
*empty* directory may fail. Ah well.)
Guido van Rossum [Fri, 26 Dec 1997 22:15:57 +0000 (22:15 +0000)]
Plug the most annoying recursive printing problem -- reset '_' to None
before printing and set it to the printed variable *after* printing
(and only when printing is successful).
Guido van Rossum [Wed, 24 Dec 1997 21:07:04 +0000 (21:07 +0000)]
Decided to add the telnet library that I wrote long ago (it's still in
the Demos/cwilib directory). Converted comments to doc strings and
used default arguments instead of *args. Updated the example.
Fred Drake [Tue, 23 Dec 1997 04:21:20 +0000 (04:21 +0000)]
Convert a couple of three-column tables with an empty third column to
two-column tables. This improves the rendering of the HTML version on
(at least) some browsers.
Guido van Rossum [Thu, 18 Dec 1997 23:55:32 +0000 (23:55 +0000)]
Patch by Brian Gallew for DG/UX. I'm not quite sure what it does but
it seems harmless for other platforms. It plays tricks with the name
of the library used to link with. Apparently DG/UX really wants a
shared library to link with if it wants shared modules to use symbols
from the library. I'm not sure why this wasn't an issue with 1.4;
DG/UX seems to be the only platform where moving to a single library
made things harder!
BTW This adds a target to create libpython$(VERSION).so; however this
target is *only* for DG/UX.
Fred Drake [Wed, 17 Dec 1997 03:08:27 +0000 (03:08 +0000)]
gen_index_id(): New function. Construct an index key such that the sort
is stable and the form is only defined in one place, since we do
some fancy footwork with the keys to separate the defining instance
of a module reference from other references in the HTML index.
make_index_entry(): Override the standard definition to use get_index_id().
make_str_index_entry(): Moved to myformat.perl; only needed there.
index_key_eq(): Override the standard definition. Add key transforms to
remove extra junk from the end of the keys; it was only there to
maintain ordering.
clean_key(): Remove key transform no longer needed at this stage, because
keeping it makes the sort unstable.
add_idx(): Add key transforms to undo the mess we do to separate a module's
defining and reference entries. Don't make the text bold.
Guido van Rossum [Tue, 16 Dec 1997 21:12:47 +0000 (21:12 +0000)]
Fix a bug in translate(): the pointer was incremented by the length of
the *escaped* url. Also added new special characters that are not
part of the url when found at the end: ( < > .