Barry Warsaw [Mon, 23 Dec 1996 23:40:11 +0000 (23:40 +0000)]
Output files
test_rotor.py: New test of the rotor module.
test_*: converted to the new test harness. GvR note! test_signal.py
works interatively (i.e. when verbose=1) but does not work inside the
test harness. It must be a timing issue, but I haven't figured it out
yet.
Barry Warsaw [Mon, 23 Dec 1996 23:39:42 +0000 (23:39 +0000)]
test_rotor.py: New test of the rotor module.
test_*: converted to the new test harness. GvR note! test_signal.py
works interatively (i.e. when verbose=1) but does not work inside the
test harness. It must be a timing issue, but I haven't figured it out
yet.
Barry Warsaw [Mon, 23 Dec 1996 23:36:24 +0000 (23:36 +0000)]
Reworked to check for memory problems (one potential found),
non-checked error return values, and where appropriate,
PyArg_ParseTuple() style argument parsing.
I also changed some function names and converted all malloc/free calls
to PyMem_NEW/PyMem_DEL.
Some stylistic changes and formatting standardization.
Barry Warsaw [Mon, 23 Dec 1996 23:34:17 +0000 (23:34 +0000)]
From reading the source, it turns out that the setkey() method can
take an optional string key, but if key is not given, the method does
nothing! In the rewrite (see upcoming check-in), I left things this
way, but here I document that this is the case.
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.