Barry Warsaw [Tue, 15 Dec 1998 04:36:22 +0000 (04:36 +0000)]
(py-goto-beginning-of-tqs): Finds the beginning of the triple quoted
string we find ourselves in, based on the passed in delimiter.
(py-compute-indentation): Fixes for indentation errors when we land
inside a triple quoted string. For example:
def foo():
if os.path.isfile(o_pri_mbox_file) and os.path.isfile(o_pub_mbox_file):
print """\
I found both a private and a public mbox archive file
private: %s
public : %s
I won't move either file, but you should choose one and move it to
%s
You may want to merge them manually, but be careful about exposing private
correspondences to the public.""" % (
o_pri_mbox_file, o_pub_mbox_file, mbox_file)
*----indentation would be wrong on this line.
Barry Warsaw [Tue, 15 Dec 1998 01:04:38 +0000 (01:04 +0000)]
Added most of the mechanism to change the strips from color variations
to color constants (i.e. red constant, green constant, blue
constant). But I haven't hooked this up yet because the UI gets more
crowded and the arrows don't reflect the correct values.
Fixed bug reported to Gregor Hoffleit:
> mpz.mpz('\xff') should return mpz(255). Instead it returns
> mpz(4294967295L). Looks like the constructor doesn't work with strings
> containing characters above chr(128).
Caused by using just 'char' where 'unsigned char' should have been used.
Guido van Rossum [Fri, 11 Dec 1998 20:44:56 +0000 (20:44 +0000)]
As noted by Per Cederqvist, new_buffersize() sometimes returns the
buffer increment, and sometimes the new buffer size. Make it do what
its name says, and fix the one place where this matters to the caller.
Also add a comment explaining why we call lseek() and then ftell().
Guido van Rossum [Fri, 11 Dec 1998 01:10:29 +0000 (01:10 +0000)]
Gregor Hoffleit writes:
But IMHO, this problem really reveals an annoyance in Python's
makesetup. makesetup puts the global include directories "$(INCLUDEPY)
$(EXECINCLUDEPY)" in front of the directories defined by the module in
Setup. Therefore global (potentially older) header files are preferred
over the ones set by the module, which makes it hard to compile new
versions of modules when the old versions are installed. AFAIK, the
other way around is common practice for most other software.
This patch to makesetup would be an potential fix for this problem,
though I don't know if it breaks anything else.
Fred Drake [Thu, 10 Dec 1998 20:25:30 +0000 (20:25 +0000)]
create_module_info(): New function: Modify a <section> to create a
<moduleinfo> element based on various meta information, and
strip some cruftiness. This is more usable for information
extraction, and organizes the information more clearly.
cleanup_synopses(): Rewrite to use create_module_info(), so this
will work with multi-rooted "documents".
In read_multi, allow a subclass to override the class we instantiate
when we create a recursive instance, by setting the class variable
'FieldStorageClass' to the desired class. By default, this is set to
None, in which case we use self.__class__ (as before).
When literal mode is entered it should exit automatically when the
matching close tag of the last unclosed open tag is encountered. This
patch fixes this.
In SimpleHTTPServer.py, the server specified in test() should
be BaseHTTPServer.HTTPServer, in case the request handler should
want to reference the two attributes added by
BaseHTTPServer.server_bind:
self.server_name = hostname
self.server_port = port
There was some Bobo CGI code that wanted access to those attributes.
In CGIHTTPServer.py, the list of acceptable formats is -split-
on spaces but -joined- on commas, resulting in double commas
in the joined text. It appears harmless to my browser but
ought to be fixed anyway.
Barry Warsaw [Thu, 3 Dec 1998 19:32:38 +0000 (19:32 +0000)]
audiopy: slightly revamped UI... includes a menubar, no quit button,
and added a `Help' menu item that puts the README (or docstring if
that can't be found) in a scrolling text widget.
Fred Drake [Mon, 30 Nov 1998 20:30:26 +0000 (20:30 +0000)]
l2hoption: Do the "right thing" to quote the right-hand-side of Perl
assignments. This allows '"', '$', and '@' to be included in
the values passed to parameters like --address.
Fred Drake [Mon, 30 Nov 1998 20:28:35 +0000 (20:28 +0000)]
Add a --address parameter to the mkhowto command line to direct
documentation comments appropriately. In response to comment from
Martijn Faassen <faassen@vet.uu.nl>.
Fred Drake [Mon, 30 Nov 1998 20:27:31 +0000 (20:27 +0000)]
Add a -address parameter to the LaTeX2HTML command line to direct
documentation comments appropriately. In response to comment from
Martijn Faassen <faassen@vet.uu.nl>.
Fred Drake [Mon, 30 Nov 1998 19:25:47 +0000 (19:25 +0000)]
do_cmd_textohtmlinfopage(): Rip out most of the boilerplate and move
it to the about.dat file. Only what really needs to be
generated is, and the remainder is easier to maintain than
Perl code.