Fred Drake [Fri, 27 Feb 1998 14:54:06 +0000 (14:54 +0000)]
When "declaring" a module using \*modindex{}, and * doesn't start with "ref",
set up the indexsubitem to "(in module #1)" automatically. This reduces the
amount of markup needed in the module docs and, more importantly, makes it
o.k. to leave out in simple sections. \setindexsubitem{} can still be used
to change or reset it.
Fred Drake [Fri, 27 Feb 1998 05:18:28 +0000 (05:18 +0000)]
Use a Python script to create "empty" indexes. This solves Guido's
corrupted file problem and avoids the shell escape interpretation
portability problem. ;-( See comments at top of newind.py for an
explanation.
Guido van Rossum [Thu, 26 Feb 1998 17:25:02 +0000 (17:25 +0000)]
New version of tb_lineno(), this time *not* using try-except, to avoid
disturbing the current exception, and returning tb.tb_lineno, which is
the line number of thr traceback, rather than the current line number.
By Jim Hugunin.
Guido van Rossum [Wed, 25 Feb 1998 20:50:32 +0000 (20:50 +0000)]
A working version of the 'args' command (it prints the current values
of the variables known to hold arguments, but that's as close as I can
get, and generally it's close enough).
Barry Warsaw [Wed, 25 Feb 1998 16:45:43 +0000 (16:45 +0000)]
(py-execute-region): Simplified calculation of temporary file name.
When running synchronously in a subproc buffer, be sure to
pop-to-buffer so the output is visible.
Fred Drake [Mon, 23 Feb 1998 21:37:27 +0000 (21:37 +0000)]
Add support for hyperref package. This builds the PDF outline, makes the ToC
and index "hot", etc.
Updated a comment about fncychap.
Removed unused minitoc support; I'm not going to use it. Something that makes
more sense with the Python lib ref can be done with reasonable effort, and can
wait a little while.
Fred Drake [Sun, 22 Feb 1998 19:47:13 +0000 (19:47 +0000)]
Changed way *.ind are forced to exist; the files are now reset to contain
an empty index instead of touched. Note that for modindex.ind, this also
includes "\label{modindex}" so that the modindex.py script doesn't change
the set of labels in the document.
Guido van Rossum [Sat, 21 Feb 1998 20:02:09 +0000 (20:02 +0000)]
Major overhaul. Don't use global variable (e.g. verbose); use
instance variables. Make all global functions methods, for easy
overriding. Restructure getpage() for easy overriding. Add
save_pickle() method and load_pickle() global function to make it
easier for other programs to emulate the toplevel interface.
Jack Jansen [Fri, 20 Feb 1998 16:02:09 +0000 (16:02 +0000)]
Regenerated from Universal Headers 3.0.1. Some new calls are
blacklisted, because they are not available in classic 68k programs,
and bgen doesn't have a way to put #ifdef/#endif in the generated
code. For now we only implement calls that work on all three models.
Guido van Rossum [Thu, 19 Feb 1998 21:28:49 +0000 (21:28 +0000)]
Delete the 'exit' command from the Tcl interpreter -- it would allow
users to exit Python without the normal precautions. (The can do this
using os._exit() anyway, but at least that's documented.)
Guido van Rossum [Thu, 19 Feb 1998 21:17:42 +0000 (21:17 +0000)]
Fixed a bug in the gauss() function. The bug was reported by Mike
Miller, who complained that its kurtosis was bad, and then fixed by
Lambert Meertens (author of the original algorithm) who discovered
that the mathematical analysis leading to his solution was wrong, and
provided a corrected version. Mike then tested the fix and reported
that the kurtosis was now good.
Guido van Rossum [Thu, 19 Feb 1998 21:02:32 +0000 (21:02 +0000)]
Jeff Kunce writes (and he is right):
Also, I just ran across a [possible] minor glitch
in the library documentation for site.py. It says:
"For example, suppose sys.prefix and
sys.exec_prefix are set to `/usr/local'. The
Python 1.5 library is then installed in
`/usr/local/lib/python1.5'. Suppose this has a
subdirectory `/usr/local/python1.5/site-packages'
with three subsubdirectories, `foo', `bar' and
`spam'..."
I think it should be:
"...Suppose this has a subdirectory
`/usr/local/lib/python1.5/site-packages' with..."
^^^^
Guido van Rossum [Thu, 19 Feb 1998 21:00:45 +0000 (21:00 +0000)]
Fix some outdated comments (mostly by removing a large comment block
that was only causing confusing). Add free(userpath) and
free(machinepath) statements to prevent some leaks.