Guido van Rossum [Tue, 30 Nov 1999 15:00:00 +0000 (15:00 +0000)]
In abspath(), always use normpath(), even when win32api is available
(and even when it fails). This avoids the problem where a trailing
separator is not removed when win32api.GetFullPathName() is used.
Fred Drake [Tue, 23 Nov 1999 21:52:03 +0000 (21:52 +0000)]
rewrite_descriptor(): Fixup conversion of arguments (simpler).
join_adjacent_elements(): Hack to merge adjacent instances of
<option>; the source \programopt with GNU-style long options
created problems with LaTeX2HTML; this removes the evil
workaround, which should never be necessary from structured
documents(!).
Greg Stein [Sat, 20 Nov 1999 11:22:37 +0000 (11:22 +0000)]
shift code from DirectoryImporter out to a common area.
remove use of "os" module (bootstrap issues) and go to the underlying
platform-specific modules
fix problem in _compile() (trapped wrong error on permission issues)
add SysPathImporter and BuiltinImporter
put __file__ into modules imported from the filesystem. [backwards compat]
put __path__ into modules [backwards compat]
oops: it is doing this for all modules, not just packages.
comment and tweak to the PackageArchiveImporter
Fred Drake [Fri, 19 Nov 1999 21:57:56 +0000 (21:57 +0000)]
Moved all the imports to the top.
Use the methods on the AST object instead of module-level functions;
these have been implemented for a couple of versions now, and are
already used in the module documentation in preference to the
functions.
Fred Drake [Thu, 18 Nov 1999 20:56:29 +0000 (20:56 +0000)]
When generating the top-level index to the documents, make sure some
oddball things from the LaTeX get translated to rational values. This
is mostly to keep things from looking broken in a development tree
when they're not.
Guido van Rossum [Thu, 18 Nov 1999 17:51:02 +0000 (17:51 +0000)]
Patches by Kannan Vijayan:
new:
readline.get_begidx() -> int
gets the beginning index in the command line string
delimiting the tab-completion scope. This would
probably be used from within a tab-completion
handler
readline.get_endidx() -> int
gets the ending index in the command line string
delimiting the tab-completion scope. This would
probably be used from within a tab-compeltion
handler
readline.set_completer_delims(string) -> None
sets the delimiters used by readline as word breakpoints
for tab-completion
readline.get_completer_delims() -> string
gets the delimiters used by readline as word breakpoints
for tab-completion
fixed:
readline.get_line_buffer() -> string
doesnt cause a debug message every other call
Guido van Rossum [Wed, 17 Nov 1999 15:04:26 +0000 (15:04 +0000)]
Samuel L. Bayer:
- same trick with "import wcnew; webchecker = wcnew" as above
- updated readhtml() method to handle pair representation; used
new name suppression infrastructure from wcnew.py to suppress
processing name anchors
Guido van Rossum [Wed, 17 Nov 1999 15:03:52 +0000 (15:03 +0000)]
Samuel L. Bayer:
- added -t and -a arguments
- added "import wcnew; webchecker = wcnew" in place of "import
webchecker" (I assume that if you're happy with the changes, you'll
just replace webchecker.py with wcnew.py, but if I were to do that,
the diffs would be incomprehensible)
- fixed buggy -v argument (I think you got out of sync with the
way verbosity was handled in webchecker vs. wcgui between 1.5 and
1.5.2)
- made -v actually do something by adding a call to c.setflags()
(probably the same problem as above)
- updated references to URLs to accommodate wcnew.py's pair
representation; added appropriate calls to format_url() to handle
display; added argument to ListPanel() initialization to provide
access to format_url()
Guido van Rossum [Wed, 17 Nov 1999 15:02:53 +0000 (15:02 +0000)]
Samuel L. Bayer:
- same fixes from webchecker.py
- incorporated small diff between current webchecker.py and 1.5.2
- fixed bug where "extra roots" added with the -t argument were being
checked as real roots, not just as possible continuations
- added -a argument to suppress checking of name anchors
Guido van Rossum [Wed, 17 Nov 1999 15:00:14 +0000 (15:00 +0000)]
Samuel L. Bayer:
- forced new done origins to set errors if they're in self.bad (fixes
bug where only the first of a number of errorful references to a
link is reported under some circumstances)
- suppressed adding duplicates to self.todo list (cleans up printout
in wcgui details)
Guido van Rossum [Tue, 16 Nov 1999 15:57:37 +0000 (15:57 +0000)]
Patch by Vladimir Marangozov, inspired by a bug report from Gary
Duzan, for AIX, to support C++ objects with static initializers, when
using the genuine IBM C++ compiler (namely xlC/xlC_r).
See accompanying patches to acconfig.h and importdl.c.
Guido van Rossum [Tue, 16 Nov 1999 15:55:00 +0000 (15:55 +0000)]
Patch by Vladimir Marangozov, inspired by a bug report from Gary
Duzan, for AIX, to support C++ objects with static initializers, when
using the genuine IBM C++ compiler (namely xlC/xlC_r).
See accompanying patches to configure.in and importdl.c.
Guido van Rossum [Tue, 16 Nov 1999 15:54:16 +0000 (15:54 +0000)]
Patch by Vladimir Marangozov, inspired by a bug report from Gary
Duzan, for AIX, to support C++ objects with static initializers, when
using the genuine IBM C++ compiler (namely xlC/xlC_r).
See accompanying patches to configure.in and acconfig.h.
Fred Drake [Tue, 9 Nov 1999 17:02:11 +0000 (17:02 +0000)]
\programopt: New macro, used to mark command-line parameters in the
text. Looks like \program.
\citetitle: New macro, used to mark titles of cited works (like the
names of the Python manuals). Accepts & discards an
optional parameter that is only used by the HTML
formatter. Looks like \emph.
Fred Drake [Tue, 9 Nov 1999 16:59:42 +0000 (16:59 +0000)]
do_cmd_programopt(): New function, similar to do_cmd_program().
do_cmd_citetitle(): New function. Extracts one optional and one
required parameter. If the optional one is
provided, it is used a URL (or relative URL) and
the text of the required parameter is turned into
a hyperlink.
Patch by Dieter Maurer to make things work for Tcl/Tk 8.1. This
simply moves the call to Tk_MainWindow() after the Tcl/Tk
initialization calls. The patch is unconditional, it works with
earlier and later versions as well.
Patch by Dieter Maurer to make things work for Tcl/Tk 8.1 (tested with
8.1.1). His approach doesn't work with Tcl/Tk 8.2, so I've placed it
inside #if TKMAJORMINOR == 8001 and #endif. See also his patch for
tkappinit.c.
Jack Jansen [Fri, 5 Nov 1999 15:54:46 +0000 (15:54 +0000)]
Added HAVE_LIMITS_H, MAVE_MEMMOVE, HAVE_STRERROR, HAVE_LOCALE_H
since we have these in the current CW release (and probably already had them
quite some time, but never added the defines).
Fred Drake [Thu, 4 Nov 1999 19:19:48 +0000 (19:19 +0000)]
split() docstring: Made signature and description for the first
parameter match. Error pointed out by François
Pinard <pinard@iro.umontreal.ca> on c.l.py.
Barry Warsaw [Wed, 3 Nov 1999 18:47:52 +0000 (18:47 +0000)]
Several improvements, some of where were contributed by Bernhard
Herzog <herzog@online.de>. Specifically,
--verbose/-v flag added
pot_header added to make msgmerge and Emacs po-mode work better
normalize(), escape(), safe_eval(): Improved normalization of strings
for more .po file compatibility (e.g. C style). Handles emmbedded
newlines better.
Also added an identity function called _() and use it in the file
where messages are printed. This allows us to selftest pygettext.py
with itself as input.
I regularly find that pdb sets the breakpoint on the wrong line when I
try to set a breakpoint on a function. This fixes the problem
somewhat.
The real problem is that pdb tries to parse the Python source code to
find the first executable line. A better way might be to inspect the
code object, or even have a variable in the code object
co_firstexecutablelineno, but that's too much work.
The patch fixes the problem when the first code line after the def
statement contains the start *and* end of a triple-quoted string. The
code assumed that the end of a triple-quoted string is not on the same
line as the start, and so it would skip to the end of the *next*
triple-quoted string.
Checking in a bunch of spawn functions. These are only defined if we
have fork and execv (and friends) but not spawnv. They operate
exactly like the spawn functions on Windows. A limited set of needed
constants is also defined (P_WAIT, P_NOWAIT etc.).
Also add getenv() as a familiar alias for environ.get().