[Python-bugs-list] [ python-Bugs-233790 ] [Irix] re package does not work.

noreply@sourceforge.net noreply@sourceforge.net
Tue, 03 Jul 2001 12:50:17 -0700


Bugs item #233790, was opened at 2001-02-23 10:02
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=233790&group_id=5470

>Category: Regular Expressions
Group: Platform-specific
>Status: Closed
>Resolution: Wont Fix
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Fredrik Lundh (effbot)
Summary: [Irix] re package does not work.

Initial Comment:
The re package does not seem to work at all under Irix 6.5 + gcc 2.8.1 (either before or after the sre Misc Patch is applied)

Python 2.0 (#1, Feb 23 2001, 01:24:07) 
[GCC 2.8.1] on irix6
Type "copyright", "credits" or "license" for more information.
>>> import re
>>> m = re.compile("^ab$").match("ab")
>>> print m
None
>>> import pre
>>> m = pre.compile("^ab$").match("ab")
>>> print m
<pre.MatchObject instance at 10201d64>

pre serves as a reasonable substitute, but since earlier versions of Python don't have it, one can't distribute a portable package easily.


----------------------------------------------------------------------

>Comment By: Fredrik Lundh (effbot)
Date: 2001-07-03 12:50

Message:
Logged In: YES 
user_id=38376

Assuming raj's right, there's not much I can (or should)
do about this.  Case closed, for now.

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2001-04-27 00:16

Message:
Logged In: NO 

This is a guess - but it is most likely related to the
fact that gcc 2.8.x sets sys.maxint to -1 under
IRIX 6.x.  This bug has manifest itself in several places
before on this particular compiler and platform combination.
The solution is to use a newer version of gcc.

raj


----------------------------------------------------------------------

Comment By: Fredrik Lundh (effbot)
Date: 2001-04-26 14:55

Message:
Logged In: YES 
user_id=38376

time to stop accepting platform-specific bugs without
a known sender?  unless someone buys me an Irix box,
I cannot really do anything about this...

</F>

----------------------------------------------------------------------

Comment By: Fredrik Lundh (effbot)
Date: 2001-03-02 02:42

Message:
Logged In: YES 
user_id=38376

ouch.

what does the test suite say?  (lib/tests/test_sre)

have you tried compiling _sre.c with less/no optimization?

do you get any warnings from the compiler when compiling 
the _sre module?

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=233790&group_id=5470