Barry Warsaw [Fri, 20 Dec 1996 22:00:21 +0000 (22:00 +0000)]
added test of the regex module
[NOTE: testall.py and autotest.py might could go away soon, I've
played with Guido's new regrtest.py script and it seems to work well.
I'll wait until Guido gives the word to completely switch over -- and
change the Makefile too!]
Barry Warsaw [Fri, 20 Dec 1996 21:56:07 +0000 (21:56 +0000)]
Several changes. Test program to follow.
- Where optional arguments were being used, converted to
PyArg_ParseTuple() style instead of nested PyArg_Parse() style.
- Check for and handle many potential error conditions that were never
being tested.
- internal reg_* functions renamed to regobj_* (makes it easier to
figure out which are global regex functions and which are for regex
objects).
- reg_group (now regobj_group) was quite extensively reworked. it no
longer recurses to do its job (by factoring core functionality into
a separate function that knows about string and integer indexes).
- some minor formatting fixes.
- regex_set_syntax() now invalidates the cache. Without this change
(in the example below), the second search would produce different
output depending on whether the first search were performed or not
(since performing the first search would cache the compiled object
with RE_SYNTAX_EMACS, causing the second test to unexpectedly fail).
Guido van Rossum [Tue, 17 Dec 1996 20:43:55 +0000 (20:43 +0000)]
Corrected two errors introduced by the renaming (and the subsequent
style corrections, I presume), found by Jack. Added warning that this
has not been tested (Jack could only compile and link it).
Guido van Rossum [Tue, 17 Dec 1996 01:25:36 +0000 (01:25 +0000)]
Another fix for Split() -- don't refuse {"} but turn it into ".
This is needed because if a configure option has " as its value,
it will be rendered as {"}; after stripping one level of quoting it's
just ", on which splitlist will barf.
Fred Drake [Mon, 16 Dec 1996 21:56:27 +0000 (21:56 +0000)]
(sgmllib.py): Partial acceptance of patch from David Leonard
<leonard@dstc.edu.au>; allows hyphen and period in the middle
of attribute names. Still not allowed as first character;
as first character these are illegal in the Reference Concrete
Syntax, and we've not identified any use of these characters as
the first char in an attribute name in deployment on the web.
Barry Warsaw [Mon, 16 Dec 1996 20:24:22 +0000 (20:24 +0000)]
initsignal(): Added SIGXCPU and SIGXFSZ. Left in the definitions for
SIGCPU and SIGFSZ but we're (Jeremy and I) are actually unsure whether
these were typos or if there are systems that use these alternate
names. We've checked Solaris, SunOS, and IRIX; they contain only the
SIGX* names.
Fred Drake [Fri, 13 Dec 1996 22:09:52 +0000 (22:09 +0000)]
(libtime.tex): Merged in changes from Tamito Kajiyama.
(For those watching Python CVS messages: I checked in all of
Tamito's other changes, but the mail delivery failed since the
subject line was too long. The patch Tamito sent for the
documentation has been completely merged in.)
Fred Drake [Fri, 13 Dec 1996 21:56:03 +0000 (21:56 +0000)]
(tut.tex): Normalized all uses of "UNIX" and "{\UNIX}" to use "\UNIX{}",
per usage needed for GNU info processing. Based on comments from
Tamito Kajiyama.
Roger E. Masse [Fri, 13 Dec 1996 20:32:26 +0000 (20:32 +0000)]
Test for the dl module. This only works for SunOS and Solaris.
I've attempted to make a test that silently exits if either
module dl is not present, we're not on a Sun OS, or a standard
shared library ('/usr/lib/libresolv.so') is not found... Otherwise,
It does a simple test of dlmodule on that library. I *think*
this would be ok to add to testall.py but I'll wait till I hear
some feedback on the liberalness of this approach.
Barry Warsaw [Fri, 13 Dec 1996 18:12:34 +0000 (18:12 +0000)]
nonstandard_expectations is only added when in verbose mode, so we
don't need the if test for verbosity when checking for results of an
unsupported option.