Fredrik Lundh
3562f11764
-- use charset bitmaps where appropriate. this gives a 5-10%
...
speedup for some tests, including the python tokenizer.
-- added support for an optional charset anchor to the engine
(currently unused by the code generator).
-- removed workaround for array module bug.
2000-07-02 12:00:07 +00:00
Fredrik Lundh
c13222cdff
- fixed "{ in any other context" bug
...
- minor comment touchups in the C module
2000-07-01 23:49:14 +00:00
Fred Drake
0cebe439ce
test(): Removed; regression test is in test.test_winreg2, not testreg.
2000-07-01 20:57:03 +00:00
Paul Prescod
1e68827c8f
Misc fixes and improvements.
2000-07-01 19:21:47 +00:00
Paul Prescod
bd8c2ae758
Removed unncessary dependency.
2000-07-01 19:19:32 +00:00
Paul Prescod
ebc0473c05
Fixed test output
2000-07-01 19:17:43 +00:00
Fredrik Lundh
22d2546520
today's SRE update:
...
-- changed 1.6 to 2.0 in the file headers
-- fixed ISALNUM macro for the unicode locale. this
solution isn't perfect, but the best I can do with
Python's current unicode database.
2000-07-01 17:50:59 +00:00
Paul Prescod
7993bcc040
Added minidom tests.
2000-07-01 14:54:16 +00:00
Paul Prescod
b58e6b10b6
Tightened xml.sax.__init__.py
2000-07-01 13:44:04 +00:00
Guido van Rossum
46d565111e
getatime() returned the mtime instead of the atime.
...
Similar to an old bug in ntpath.py.
2000-07-01 10:52:49 +00:00
Fred Drake
9e94afd18d
Fix bug #314 , reported by Craig Allen <cba@mediaone.net>:
...
splittype(): Always lower-case the URL scheme; these are supposed to be
normalized according to RFC 1738 anyway.
2000-07-01 07:03:30 +00:00
Fred Drake
162bd855a6
Fix bug #345 reported by David Bolen <db3l@fitlinxx.com>:
...
getatime() returned the mtime instead of the atime.
Similar to an old bug in posixpath.py.
2000-07-01 06:36:51 +00:00
Paul Prescod
73678dac48
Reference cycle fixes
2000-07-01 04:58:47 +00:00
Guido van Rossum
c08cb04c29
the usual
2000-07-01 04:23:47 +00:00
Guido van Rossum
54610f31cc
output for openpty test
2000-07-01 03:34:14 +00:00
Guido van Rossum
a0f7e8574c
Thomas Wouters: Test script for openpty()
2000-07-01 01:13:31 +00:00
Fred Drake
4c136eefab
Thomas Wouters <thomas@xs4all.net>:
...
Test case for the pty module.
2000-06-30 23:22:35 +00:00
Fredrik Lundh
55a4f4a528
- fixed code generation error in multiline mode
...
- fixed parser flag propagation (of all stupid bugs...)
2000-06-30 22:37:31 +00:00
Fredrik Lundh
ef7bae6b2f
replaced <some suitable mail address> with something slightly
...
more suitable.
2000-06-30 22:01:36 +00:00
Fred Drake
b6e54adb1a
Ooops! I didn't finish all the renaming needed here, so this was
...
attempting a recursive import and causing a fatal error.
2000-06-30 20:31:39 +00:00
Fred Drake
96fee02917
Output for test_winreg2.
...
Someone who knows what they are doing needs to replace this with something
that makes sense -- I'm not running Windows right now.
2000-06-30 19:38:16 +00:00
Greg Ward
1b5ec76190
Simplify the registry-module-finding code: _winreg or win32api/win32con.
...
This'll work fine with 2.0 or 1.5.2, but is less than ideal for
1.6a1/a2. But the code to accomodate 1.6a1/a2 was released with
Distutils 0.9, so it can go away now.
2000-06-30 19:37:59 +00:00
Fred Drake
2658d15d45
Paul Prescod <paul@prescod.net>:
...
Regression test for the new winreg.py module.
[Could a Windows person someone please review this?]
2000-06-30 19:36:23 +00:00
Fred Drake
0412e494b8
Line-wrap and properly indent a couple of docstrings.
2000-06-30 19:33:35 +00:00
Fredrik Lundh
4ccea94152
- reverted to "\x is binary byte"
...
- removed evil tabs from sre_parse and sre_compile
2000-06-30 18:39:20 +00:00
Skip Montanaro
ab1c7918f6
* added a randomize flag and corresponding -r command line argument that
...
allows the caller to execute the various tests in pseudo-random order -
default is still to execute tests in the order returned by findtests().
* moved initialization of the various flag variables to the main() function
definition, making it possible to execute regrtest.main() interactively
and still override default behavior.
2000-06-30 16:39:27 +00:00
Guido van Rossum
2850d18615
Switch to sre for regular expression matching (the new mini-re module
...
is actually by Fredrik Lundh). This will break the re tests --
Fredrik will fix this before the final release.
2000-06-30 16:25:20 +00:00
Guido van Rossum
4358b2c928
the usual
2000-06-30 16:13:37 +00:00
Jeremy Hylton
094c9e587c
remove all prints (since the prints where of memory locations)
2000-06-30 15:13:15 +00:00
Fredrik Lundh
0640e1161f
the mad patcher strikes again:
...
-- added pickling support (only works if sre is imported)
-- fixed wordsize problems in engine
(instead of casting literals down to the character size,
cast characters up to the literal size (same as the code
word size). this prevents false hits when you're matching
a unicode pattern against an 8-bit string. (unfortunately,
this broke another test, but I think the test should be
changed in this case; more on that on python-dev)
-- added sre.purge function
(unofficial, clears the cache)
2000-06-30 13:55:15 +00:00
Fredrik Lundh
43b3b49b5a
- fixed lookahead assertions ( #10 , #11 , #12 )
...
- untabified sre_constants.py
2000-06-30 10:41:31 +00:00
Marc-André Lemburg
587794b386
Marc-Andre Lemburg <mal@lemburg.com>:
...
Added test output.
2000-06-30 10:28:32 +00:00
Marc-André Lemburg
d70141a2d9
Marc-Andre Lemburg <mal@lemburg.com>:
...
New test for huge formatting strings (these could cause core
dumps in previous versions).
By Trent Mick.
2000-06-30 10:26:29 +00:00
Marc-André Lemburg
6cdec2efbb
New test for the ucnhash module.
2000-06-30 09:45:20 +00:00
Marc-André Lemburg
5f2e75e87c
Marc-Andre Lemburg <mal@lemburg.com>:
...
Updated test output (the ucn tests are now in test_ucn).
2000-06-30 09:14:13 +00:00
Marc-André Lemburg
af69f15d21
Marc-Andre Lemburg <mal@lemburg.com>:
...
Moved tests of new Unicode Char Name support to a separate test.
2000-06-30 09:13:35 +00:00
Fredrik Lundh
b71624e698
- added support for (?P=name)
...
(closes #3 and #7 from the status report)
2000-06-30 09:13:06 +00:00
Fredrik Lundh
90a0791322
- pedantic: make sure "python -t" doesn't complain...
2000-06-30 07:50:59 +00:00
Fredrik Lundh
df02d0b3f0
- fixed default value handling in group/groupdict
...
- added test suite
2000-06-30 07:08:20 +00:00
Skip Montanaro
47c60ec9a0
Describe a bit about writing test cases for Python...
2000-06-30 06:08:35 +00:00
Jeremy Hylton
c5007aa5c3
final patches from Neil Schemenauer for garbage collection
2000-06-30 05:02:53 +00:00
Greg Ward
0e8c518a62
Bump version to 0.9.
2000-06-30 02:54:36 +00:00
Fredrik Lundh
01016fe972
- fixed split behaviour on empty matches
...
- fixed compiler problems when using locale/unicode flags
- fixed group/octal code parsing in sub/subn templates
2000-06-30 00:27:46 +00:00
Greg Ward
5d6ae76c09
Allow 2.0 on the list of target versions. NB. this isn't enough: the GUI part,
...
misc/install.c, still needs to be updated, and it looks like a non-trivial
change.
2000-06-29 23:50:19 +00:00
Fredrik Lundh
29c08beab0
still trying to figure out how to fix the remaining
...
group reset problem. in the meantime, I added some
optimizations:
- added "inline" directive to LOCAL
(this assumes that AC_C_INLINE does what it's
supposed to do). to compile SRE on a non-unix
platform that doesn't support inline, you have
to add a "#define inline" somewhere...
- added code to generate a SRE_OP_INFO primitive
- added code to do fast prefix search
(enabled by the USE_FAST_SEARCH define; default
is on, in this release)
2000-06-29 23:33:12 +00:00
Greg Ward
22e1bf7da5
Don't try to guess the name of a .def file -- if one is supplied, use it,
...
otherwise just generate an '/export:' option.
2000-06-29 23:09:20 +00:00
Greg Ward
83c3870e2b
On second thought, first try for _winreg, and then winreg. Only if both
...
fail do we try for win32api/win32con. If *those* both fail, then we don't
have registry access. Phew!
2000-06-29 23:04:59 +00:00
Greg Ward
cd079c4c28
Changed to use _winreg module instead of winreg.
2000-06-29 22:59:10 +00:00
Greg Ward
f34506a3d4
Cleaned up and reformatted by Rene Liebscher.
...
More reformatting by me.
Also added some editorial comments.
2000-06-29 22:57:55 +00:00
Fred Drake
c6e72e0b45
Typo.
2000-06-29 20:02:38 +00:00