New implementation of re module

MRAB python at
Thu Jul 30 08:56:32 EDT 2009

Wolfgang Rohdewald wrote:
> On Thursday 30 July 2009, MRAB wrote:
>> There are other lines which are similar, eg line 1487. Do they all
>> give the same/similar error with your compiler?
> yes. The full output with gcc-4.3:
> notebook:~/kmj/src$ LANG=C python  build
> running build
> running build_py
> running build_ext
> building '_regex' extension
> 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 function 'bmatch_context':
> _regex.c:1462: error: lvalue required as increment operand
> error: command 'gcc' failed with exit status 1
So it complains about:


but not about:


Does this mean that the gcc compiler thinks that the cast makes it an
rvalue? I'm using Visual C++ 2008 Express Edition, which doesn't
complain. What does the C standard say?

More information about the Python-list mailing list