summaryrefslogtreecommitdiffstats
path: root/Include/longintrepr.h
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1996-12-20 21:56:07 (GMT)
committerBarry Warsaw <barry@python.org>1996-12-20 21:56:07 (GMT)
commitc357325663150599e3cf5e0ee03270d20ea2bc58 (patch)
tree7a5a5df3ebd6fbe3828ef8864487618775ecb4e8 /Include/longintrepr.h
parent4455cd8e19af1b3877b72ff97a0738291d30d3a0 (diff)
downloadcpython-c357325663150599e3cf5e0ee03270d20ea2bc58.zip
cpython-c357325663150599e3cf5e0ee03270d20ea2bc58.tar.gz
cpython-c357325663150599e3cf5e0ee03270d20ea2bc58.tar.bz2
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). regex.search('(a+)|(b+)', 'cdb') prev = regex.set_syntax(RE_SYNTAX_AWK) regex.search('(a+)|(b+)', 'cdb')
Diffstat (limited to 'Include/longintrepr.h')
0 files changed, 0 insertions, 0 deletions