Fred Drake [Wed, 25 Nov 1998 17:13:28 +0000 (17:13 +0000)]
Minor nit that fixes a bunch of indexing: the way the classdesc
environment saves the name of the last class described, method and
member descriptions were not picking it up correctly. Thus, many
index entries were described as "( method)" instead of "(FooClass
method)". Multiple entries were collapsed in the index when
methods/members from multiple classes share the same name.
Fred Drake [Tue, 24 Nov 1998 17:40:33 +0000 (17:40 +0000)]
Supplemental rules to convert a .tex file to a .xml file. Both XML and
SGML will be supported soon, probably using an ESIS representation saved
in a temp file.
Fred Drake [Tue, 24 Nov 1998 17:07:29 +0000 (17:07 +0000)]
Rationalize a word-space markup to not break in the LaTeX->*ML
conversion tools currently being constructed.
Add a chapter from Jim Fulton on using Misc/Makefile.pre.in. Still
preliminary. The "Dynamic Loading" chapter needs to be updated (and
possibly removed, since it's no longer an issue for most (any?)
users.
Guido van Rossum [Mon, 23 Nov 1998 21:09:51 +0000 (21:09 +0000)]
Whoops! One the "redundant" initializations removed by Vladimir in
the previous patch wasn't -- there was a path through the code that
bypassed all initializations. Thanks to Just for reporting the bug!
Guido van Rossum [Mon, 23 Nov 1998 17:49:53 +0000 (17:49 +0000)]
Rewrote the section on sys.exit(), documenting other argument types
than integers and recommending sys.exit("message").
(I see this as Python's answer to Perls ``die "message";''.)
Fred Drake [Mon, 23 Nov 1998 17:02:03 +0000 (17:02 +0000)]
Script to squirrel around with the DOM tree of document fragments from the
LaTeX-based ESIS streams to be a little better structured, and generally
perform clean-up.
Fred Drake [Wed, 18 Nov 1998 23:28:24 +0000 (23:28 +0000)]
First cut at a script to generate SGML/XML from an ESIS event stream,
probably only usable for the Python docs. But also probably more
useful than latex2esis.py.
Guido van Rossum [Tue, 17 Nov 1998 04:16:37 +0000 (04:16 +0000)]
Accept a non-list sequence for the long options (request by Jack Jansen).
Because it might be a common mistake to pass a single string, this
situation is treated separately.
Since we were making a copy of the longopts list anyway, we now use
the list() function -- this made it necessary to change all uses of
the local variable (and argument) 'list' to something more meaningful,
i.e., 'opts'.
Also added docstrings (copied from the library manual) and removed the
(now redundant) module comments.
Fred Drake [Mon, 16 Nov 1998 18:34:07 +0000 (18:34 +0000)]
Update the example in "Calling Python Functions from C" to use
METH_VARARGS conventions and PyArg_ParseTuple(), and document the flag
and where to look for PyArg_ParseTuple() info.
Response to comment from Don Bashford <bashford@scripps.edu>.
Jack Jansen [Sun, 1 Nov 1998 22:11:33 +0000 (22:11 +0000)]
Project files converted for CW Pro 4. And the daylight savings time switch seems to have "modified" the resource files (but nothing has changed there).
Barry Warsaw [Sat, 31 Oct 1998 22:52:54 +0000 (22:52 +0000)]
audio(7I) suggests that applications do the following to get the
device and control pseudo-device:
- first look for the device filename in the environment variable
AUDIODEV.
- if not found, use /dev/audio
- calculate the control device by tacking "ctl" onto the base device
name.
We now do this. Also, if the open fails, we call
PyErr_SetFromErrnoWithFilename() to give a more informative error
message.
Added a fileno() method to the audio object returned from open().
This returns the file descriptor which can be used by applications to
set up SIGPOLL notification, as per the manpage.
Fred Drake [Wed, 28 Oct 1998 20:08:35 +0000 (20:08 +0000)]
Don't describe something as "below"; that won't make sense for the
HTML version. Give a reference to the actual section to allow a
hyperlink to be built.
Barry Warsaw [Wed, 28 Oct 1998 00:10:45 +0000 (00:10 +0000)]
#XEmacs 21 now supports Imenu, so I am able to test (and fix) some
#simple things. First step: rename the Imenu supportive variables and
#functions in this file to py-imenu-* so I can grok what is part of
#python-mode and what is part of Imenu.
(py-imenu-create-index-engine): Fixed problem with two classes in a
single file, caused by new semantics of py-beginning-of-def-or-class
when called programmatically.
#Note, there are still some problems with Imenu when arguments to
#functions are funky, but it should be much better now.
Guido van Rossum [Sat, 24 Oct 1998 16:29:21 +0000 (16:29 +0000)]
Split the goto() function in two: _goto() is the internal one,
using Canvas coordinates, and goto() uses turtle coordinates
and accepts variable argument lists.
Guido van Rossum [Sat, 24 Oct 1998 01:34:45 +0000 (01:34 +0000)]
The TemporaryFile() function has a security leak -- because the
filenames generated are easily predictable, it is possible to trick an
unsuspecting program into overwriting another file by creating a
symbolic link with the predicted name. Fix this by using the
low-level os.open() function with the O_EXCL flag and mode 0700. On
non-Unix platforms, presumably there are no symbolic links so the
problem doesn't exist. The explicit test for Unix (posix, actually)
makes it possible to change the non-Unix logic to work without a
try-except clause.
Guido van Rossum [Thu, 22 Oct 1998 20:15:36 +0000 (20:15 +0000)]
Jim Fulton writes:
"""
I've attached a long overdue patch to pickle.py to bring it to format
1.3, which is the same as 1.2 except that the binary float format
is supported. This is done using the new platform-indepent format
features of struct.
This patch also gets rid of the undocumented obsolete Pickler
dump_special method.
"""
Barry Warsaw [Thu, 22 Oct 1998 18:51:22 +0000 (18:51 +0000)]
__init__(): Removed initialcolor keyword.
show(): added color keyword here so that the selected color can be
chosen on each invocation of askcolor().
Also fixed this class, and askcolor() so that the same Chooser
instance can be re-used instead of creating a new one on each
invocation of askcolor().
Added a module function save() which can be used to explicitly save
the option database in ~/.pynche. This does not happen automatically
when used as a modal.