New implementation of re module

MRAB python at mrabarnett.plus.com
Thu Jul 30 07:05:58 EDT 2009


Wolfgang Rohdewald wrote:
> On Tuesday 28 July 2009, Christopher Arndt wrote:
>> setup(name='regex',
>>     version='1.0',
>>     py_modules = ['regex'],
>>     ext_modules=[Extension('_regex', ['_regex.c'])],
>> )
>>
>> Also, you need to copy "unicodedata_db.h" from the "Modules"
>> directory of the Python source tree to your working directory,
>> since this file apparently is not installed into the include
>> directory of a Python installation.
> 
> using issue2636-20090729.zip
> 
> I have Python 2.6.2 on ubuntu 9.04
> 
> with ggc-4.3:
> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -
> Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c _regex.c -o 
> build/temp.linux-i686-2.6/_regex.o
> _regex.c: In Funktion »bmatch_context«:
> _regex.c:1462: Fehler: Als Erhöhungsoperand wird L-Wert erfordert
> _regex.c:1470: Fehler: Als Erhöhungsoperand wird L-Wert erfordert
> _regex.c:1478: Fehler: Als Verringerungsoperand wird L-Wert erfordert
> 
> with gcc-4.4:
> gcc-4.4 -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-
> prototypes -fPIC -I/usr/include/python2.6 -c _regex.c -o 
> build/temp.linux-i686-2.6/_regex.o
> _regex.c: In function ‘bmatch_context’:
> _regex.c:1462: error: lvalue required as increment operand
> _regex.c:1470: error: lvalue required as increment operand
> _regex.c:1478: error: lvalue required as decrement operand
> 
There are other lines which are similar, eg line 1487. Do they all give
the same/similar error with your compiler?



More information about the Python-list mailing list