Fred Drake [Sun, 11 Jan 1998 21:15:23 +0000 (21:15 +0000)]
Follow current recommended practice in an example: Use isinstance() to
perform a type test instead of type(x) == types.FoobarType. In example
for type().
Fred Drake [Fri, 9 Jan 1998 22:36:51 +0000 (22:36 +0000)]
Add module reference for cPickle to index.
Consistency: Always use trailing "()" for function and method names in text.
Consistency: Always mark parameter names with \var{} in text.
Change questionable text about CORBA to definate text about XDR; "CORBA" isn't
enough to specify an external representation, and I'm not sure the comment is
right if we say "IIOP". I know its right about XDR if we only mention shared
object references and not recursive structures.
Fred Drake [Fri, 9 Jan 1998 14:39:41 +0000 (14:39 +0000)]
Consistency: Always use lower-case markup; one tag was still given in
uppercase. (Makes it easier to see what markup is generated by the
Python manual support and what is generated by standard latex2html.)
Fred Drake [Fri, 9 Jan 1998 05:34:23 +0000 (05:34 +0000)]
\mytableofcontents New macro. Wrapper around \tableofcontents that
does the right thing if the openright option is given. Allows a
lot of crud to be removed from the document files' frontmatter
sections.
\endabstract Extend standard macro. (Called as \end{abstract}.)
Does the right thing if the openright option is given.
\optional Adjust to get the brackets right under latex2e.
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: