Barry Warsaw [Thu, 12 Feb 1998 16:52:14 +0000 (16:52 +0000)]
(py-compute-indentation): Several changes made to improve navigation
over and around triple-quoted strings:
- move the beginning-of-line to above the p-p-s call
- in the `t' clause of the big cond, where we skip over
triple-quoted strings, first find out if we're looking at a
single or TQS, then skip over it in one fell swoop, instead of
trying to loop over skipage of SQS's.
(py-parse-state): Implement XEmacs only hack to more accurately figure
out whether we're in a string or not. Can't do this in Emacs because
it lacks the necessary primitive, so we just do it the old (and mostly
accurate, but foolable) way for Emacs.
Fred Drake [Wed, 11 Feb 1998 23:01:23 +0000 (23:01 +0000)]
New file. Written by Ulf A. Lindgren <lindgren@ae.chalmers.se>; we have
permission to distribute this without modifications. This is the latest
version, directly from Ulf.
Guido van Rossum [Wed, 11 Feb 1998 05:53:02 +0000 (05:53 +0000)]
Added PyImport_ExecCodeModuleEx(), which adds an extra parameter to
pass it the true file. This is used to set __file__ properly, instead
of believing what the code object carries with it. (If the pointer
is NULL, the code object's co_filename is still used.)
Fred Drake [Fri, 6 Feb 1998 22:52:52 +0000 (22:52 +0000)]
\itembreak, \itemjoin: Remove unused macros.
\idxcode{}: New macro; used to mark things that would be \code{} for entry
into the index. This allows easily switching things around for the
font used in the index. (O'Reilly seems to keep it all plain roman
in the index. Looks reasonable in the Python documentation as well.)
\*index{}: Use \idxcode{} instead of {\codefont{}}.
- Add Py_GetPythonHome() and Py_SetPythonHome(), intended to allow
embedders to force a different PYTHONHOME.
- Add new interface PyErr_PrintEx(flag); same as PyErr_Print() but
flag determines whether sys.last_* are set or not. PyErr_Print()
now simply calls PyErr_PrintEx(1).
- Add Py_FrozenFlag, intended to suppress error messages fron
getpath.c in frozen binaries.
- Add Py_GetPythonHome() and Py_SetPythonHome(), intended to allow
embedders to force a different PYTHONHOME.
- Add new interface PyErr_PrintEx(flag); same as PyErr_Print() but
flag determines whether sys.last_* are set or not. PyErr_Print()
now simply calls PyErr_PrintEx(1).
Fred Drake [Fri, 6 Feb 1998 22:19:23 +0000 (22:19 +0000)]
Update two of the \indexsubitem values to use singular rather than plural form
of "variable": each individual variable should be identified as a single
variable and not a collection in the index.
(1) Explicitly clear __builtin__._ and sys.{last,exc}_* before
clearing anything else. These are common places where user values
hide and people complain when their destructors fail. Since the
modules containing them are deleted *last* of all, they would come too
late in the normal destruction order. Sigh.
(2) Add some debugging aid to cleanup (after a suggestion by Marc
Lemburg) -- print the names of the modules being cleaned, and (when
-vv is used) print the names of the variables being cleared.
Barry Warsaw [Thu, 5 Feb 1998 23:35:09 +0000 (23:35 +0000)]
(py-parse-state): When looking for landing inside triple-quoted
string, don't check for indentation at column zero. This will falsely
hit a line inside a docstring that starts at column zero but ends in a
colon.
Retract the statement that all functions called by Python (even method
defs) need to be declared extern "C" -- it seems to have no basis in
truth (any more?).
Fixed bitmaps; added include files and libs;
moved DLLs into their own directory (and added it to default path);
install zlib.dll in SYS32; fixed location of help root.
Fred Drake [Wed, 4 Feb 1998 19:54:40 +0000 (19:54 +0000)]
Use implicit rules to perform DVI->PS and PS->PDF conversions. PDF conversion
requires "distill" from a FrameMaker installation. ;-) Would probably need
to be different for Windows/Mac.
Fred Drake [Wed, 4 Feb 1998 14:43:36 +0000 (14:43 +0000)]
\modindex{}: New macro; index module without declaring it "built-in" or
"standard". This is mostly for documentation of modules outside the
standard library.
Guido van Rossum [Thu, 29 Jan 1998 14:55:24 +0000 (14:55 +0000)]
New version of xmllib from Sjoerd.
The main incompatibility is that the error reporting method is now
called as
parser.syntax_error(msg)
instead of
parser.syntax_error(lineno, msg)
This new version also has some code to deal with the <?xml?> and
<!DOCTYPE> tags at the start of an XML document.
The documentation has been updated, and a small test module has been
created.
Guido van Rossum [Tue, 27 Jan 1998 19:29:45 +0000 (19:29 +0000)]
(This fix is really by Jeremy)
Here's my suggested replacement for gzip.py for 1.5.1. I've
re-implemeted methods readline and readlines, added an _unread, and
tweaked read and _read.
I tried a more complicated buffer scheme for unread (using a list of
strings and string.join), but it was more complicated and slower.
This version is a lot faster than the current version and is still
pretty simple.