Jack Jansen [Tue, 6 Jan 1998 16:48:49 +0000 (16:48 +0000)]
I give in. Now Tk is also using resources just above 128, so Python
now uses only 228-256, leaving 128-228 free for others. This mod
affects prefs files, libraries and almost everything else, so I've
upped my local Python to 1.5b4 to remain sane.
Fred Drake [Tue, 6 Jan 1998 15:46:21 +0000 (15:46 +0000)]
In description of \D, revise markup so that the caret shows up in the HTML
version as well as the dvi form. Without the fix, it showed up as an extra
zero character.
Dangerous feature added: when removing local files (i.e., only when -r
is used), do a recursive delete. Use -r with even more caution!
Also changed usage message into a doc string, added a comment or two,
and rearranged a long line.
Fred Drake [Fri, 2 Jan 1998 03:24:19 +0000 (03:24 +0000)]
Descriptions for PyRun_String(), PyRun_File(), and PyRun_CompileString() all
gave the return type as part of the function field and used an empty return
type field. Fixed.
Function name field for PyLong_FromString() included an asterisk at the
beginning of the function name field; removed.
Fred Drake [Fri, 2 Jan 1998 02:50:13 +0000 (02:50 +0000)]
In description of the group() method, fix markup of "\(" and "\)" literals;
"\code{\\(}" produces "(" in the .dvi file and "<BR> (" in the latex2html
output (the font was right). Changed to "\code{{\e}(}" variation, which
fixes both. Breaks the .texi file generation again. Oh well.
Guido van Rossum [Tue, 30 Dec 1997 20:09:08 +0000 (20:09 +0000)]
When there's no filename, don't make one up.
Added _test() that behaves (a bit) like gzip.
Fix a comment (*sequential* access is okay -- *random* access it out!)
Guido van Rossum [Tue, 30 Dec 1997 05:44:10 +0000 (05:44 +0000)]
Oops, big glitch. Charles had put a 1 in the column for argument list
type for all functions. However many function call PyArg_Parse() and
need a 0. This is so that when they didn't change anything, the can
do Py_INCREF(args); return args. Reverted this back. For atof(),
there's no reason not to use PyArg_ParseTuple(), so I changed the code
(atoi and atol already used that).
Guido van Rossum [Tue, 30 Dec 1997 04:43:36 +0000 (04:43 +0000)]
Add a note that up to 1.4, translate() produced Emacs style syntax; in
1.5, it produces Perl style syntax. Also change "Python's regular
expressions" into plain "regular expression" in the intro.
Fred Drake [Mon, 29 Dec 1997 22:04:44 +0000 (22:04 +0000)]
Added .PHONY annotation for lib.info target; the real target is
python-lib.info. The annotation is needed to prevent at least GNU make from
building a second set of info files with the lib.info base name.
Fred Drake [Mon, 29 Dec 1997 21:39:39 +0000 (21:39 +0000)]
Lots of minor nits that allow this file to get processed without failures by
the info generation phases. Most of the errors had occurred in the makeinfo
step.
Commented out the warning at the top; this should still really be removed
before 1.5, but that's not my call. It generated problems for the info
conversion as well.
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.