[Python-Dev] FW: regarding the Python Developer posting...
Dan Wolfe
dkwolfe@pacbell.net
Wed, 27 Sep 2000 00:02:00 -0700
>>[about the big switch in unicodectype.c]
>
>[Tim: use the current CVS tree instead... code's been replace...]
duh! gotta read them archives before seeing following up on an request...
can't trust the hyper-active Python development team with a code
freeze.... <wink>
I'm happy to report that it now compiles correctly without a
-traditional-cpp flag.
Unfortuantely, test_re.py now seg faults.... which is caused by
test_sre.py... in particular the following:
src/Lib/test/test_sre.py
if verbose:
print 'Test engine limitations'
# Try nasty case that overflows the straightforward recursive
# implementation of repeated groups.
#test(r"""sre.match(r'(x)*', 50000*'x').span()""",
# (0, 50000), RuntimeError)
#test(r"""sre.match(r'(x)*y', 50000*'x'+'y').span()""",
# (0, 50001), RuntimeError)
#test(r"""sre.match(r'(x)*?y', 50000*'x'+'y').span()""",
# (0, 50001), RuntimeError)
test_unicodedata fails... same endian problem as SGI...
test_format fails... looks like a problem with the underlying C code.
Here's the config instructions for Mac OS X Public Beta:
Building Python 2.0b1 + CVS
9/26/2000
Dan Wolfe
./configure -with-threads -with-dyld -with-suffix=.exe
change in src/config.h:
/* Define if you have POSIX threads */
#define _POSIX_THREADS 1
to
/* #define _POSIX_THREADS 1 */
change in src/Makefile
# Compiler options passed to subordinate makes
OPT= -g -O2 -OPT:Olimit=0
to
OPT= -g -O2
comment out the following in src/Lib/test/test_sre.py
if verbose:
print 'Test engine limitations'
# Try nasty case that overflows the straightforward recursive
# implementation of repeated groups.
#test(r"""sre.match(r'(x)*', 50000*'x').span()""",
# (0, 50000), RuntimeError)
#test(r"""sre.match(r'(x)*y', 50000*'x'+'y').span()""",
# (0, 50001), RuntimeError)
#test(r"""sre.match(r'(x)*?y', 50000*'x'+'y').span()""",
# (0, 50001), RuntimeError)
After install, manually go into /usr/local/bin strip the .exe off the
installed files.
- Dan