Re: New implementation of re module

2009-08-04 Thread Alex Willmer
On Jul 27, 5:34 pm, MRAB pyt...@mrabarnett.plus.com wrote: Hi all, I've been working on a new implementation of the re module. The details are athttp://bugs.python.org/issue2636, specifically fromhttp://bugs.python.org/issue2636#msg90954. I've included a .pyd file for Python 2.6 on Windows

Re: New implementation of re module

2009-08-03 Thread John Machin
On Jul 28, 2:34 am, MRAB pyt...@mrabarnett.plus.com wrote: Hi all, I've been working on a new implementation of the re module. The details are athttp://bugs.python.org/issue2636, specifically fromhttp://bugs.python.org/issue2636#msg90954. I've included a .pyd file for Python 2.6 on Windows

Re: New implementation of re module

2009-08-03 Thread MRAB
John Machin wrote: On Jul 28, 2:34 am, MRAB pyt...@mrabarnett.plus.com wrote: Hi all, I've been working on a new implementation of the re module. The details are athttp://bugs.python.org/issue2636, specifically fromhttp://bugs.python.org/issue2636#msg90954. I've included a .pyd file

Re: New implementation of re module

2009-07-30 Thread Wolfgang Rohdewald
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

Re: New implementation of re module

2009-07-30 Thread MRAB
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

Re: New implementation of re module

2009-07-30 Thread Wolfgang Rohdewald
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 setup.py build running build running build_py running build_ext

Re: New implementation of re module

2009-07-30 Thread MRAB
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 setup.py build running build running

Re: New implementation of re module

2009-07-30 Thread Wolfgang Rohdewald
On Thursday 30 July 2009, MRAB wrote: So it complains about: ++(RE_CHAR*)context-text_ptr but not about: ++info-repeat.count 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

Re: New implementation of re module

2009-07-30 Thread Wolfgang Rohdewald
On Thursday 30 July 2009, Wolfgang Rohdewald wrote: so I did the conversion mentioned there. This works: I actually do not know if it works - but it compiles. -- Wolfgang -- http://mail.python.org/mailman/listinfo/python-list

Re: New implementation of re module

2009-07-30 Thread Piet van Oostrum
MRAB pyt...@mrabarnett.plus.com (M) wrote: M Hi all, M I've been working on a new implementation of the re module. The details M are at http://bugs.python.org/issue2636, specifically from M http://bugs.python.org/issue2636#msg90954. I've included a .pyd file for M Python 2.6 on Windows if you

Re: New implementation of re module

2009-07-30 Thread MRAB
Wolfgang Rohdewald wrote: On Thursday 30 July 2009, Wolfgang Rohdewald wrote: so I did the conversion mentioned there. This works: I actually do not know if it works - but it compiles. Yes, it works. I've updated my code accordingly and it'll be in the next release. --

Re: New implementation of re module

2009-07-30 Thread MRAB
Piet van Oostrum wrote: MRAB pyt...@mrabarnett.plus.com (M) wrote: M Hi all, M I've been working on a new implementation of the re module. The details M are at http://bugs.python.org/issue2636, specifically from M http://bugs.python.org/issue2636#msg90954. I've included a .pyd file for M

Re: New implementation of re module

2009-07-29 Thread Mike
On Jul 29, 10:45 am, MRAB pyt...@mrabarnett.plus.com wrote: Mike wrote: - findall/finditer doesn't find overlapping matches.  Sometimes you really *do* want to know all possible matches, even if they overlap. Perhaps by adding overlapped=True? Something like that would be great, yes. -

Re: New implementation of re module

2009-07-28 Thread MRAB
Aahz wrote: In article mailman.3787.1248712420.8015.python-l...@python.org, MRAB pyt...@mrabarnett.plus.com wrote: I've been working on a new implementation of the re module. The details are at http://bugs.python.org/issue2636, specifically from http://bugs.python.org/issue2636#msg90954. I've

Re: New implementation of re module

2009-07-28 Thread Christopher Arndt
On 27 Jul., 21:27, Wolfgang Rohdewald wolfg...@rohdewald.de wrote: how do I compile _regex.c on Linux? This simple setup.py file should do the trick: from distutils.core import setup, Extension setup(name='regex', version='1.0', py_modules = ['regex'],

Re: New implementation of re module

2009-07-28 Thread MRAB
Christopher Arndt wrote: On 27 Jul., 21:27, Wolfgang Rohdewald wolfg...@rohdewald.de wrote: how do I compile _regex.c on Linux? This simple setup.py file should do the trick: from distutils.core import setup, Extension setup(name='regex', version='1.0', py_modules = ['regex'],

Re: New implementation of re module

2009-07-28 Thread William Dode
On 28-07-2009, MRAB wrote: With the official Python 2.6 distribution for Mac OS X it works. The source code is intended to replace the current 're' module in Python 2.7 (and I'll be porting it to Python 3.2), so I'm not that worried about Python versions earlier than 2.6 for testing,

Re: New implementation of re module

2009-07-28 Thread Aahz
In article mailman.3843.1248793153.8015.python-l...@python.org, MRAB pyt...@mrabarnett.plus.com wrote: Aahz wrote: In article mailman.3787.1248712420.8015.python-l...@python.org, MRAB pyt...@mrabarnett.plus.com wrote: I've been working on a new implementation of the re module. The details

Re: New implementation of re module

2009-07-28 Thread Mark Lawrence
MRAB wrote: Hi all, I've been working on a new implementation of the re module. The details are at http://bugs.python.org/issue2636, specifically from http://bugs.python.org/issue2636#msg90954. I've included a .pyd file for Python 2.6 on Windows if you want to try it out. I'm interested in how

Re: New implementation of re module

2009-07-28 Thread MRAB
William Dode wrote: On 28-07-2009, MRAB wrote: With the official Python 2.6 distribution for Mac OS X it works. The source code is intended to replace the current 're' module in Python 2.7 (and I'll be porting it to Python 3.2), so I'm not that worried about Python versions earlier than 2.6

New implementation of re module

2009-07-27 Thread MRAB
Hi all, I've been working on a new implementation of the re module. The details are at http://bugs.python.org/issue2636, specifically from http://bugs.python.org/issue2636#msg90954. I've included a .pyd file for Python 2.6 on Windows if you want to try it out. I'm interested in how fast

Re: New implementation of re module

2009-07-27 Thread William Dode
On 27-07-2009, MRAB wrote: Hi all, I've been working on a new implementation of the re module. The details are at http://bugs.python.org/issue2636, specifically from http://bugs.python.org/issue2636#msg90954. I've included a .pyd file for Python 2.6 on Windows if you want to try it out

Re: New implementation of re module

2009-07-27 Thread Wolfgang Rohdewald
On Monday 27 July 2009, MRAB wrote: I've been working on a new implementation of the re module. The details are at http://bugs.python.org/issue2636, specifically from http://bugs.python.org/issue2636#msg90954. I've included a .pyd file for Python 2.6 on Windows if you want to try it out. how

Re: New implementation of re module

2009-07-27 Thread MRAB
William Dode wrote: On 27-07-2009, MRAB wrote: Hi all, I've been working on a new implementation of the re module. The details are at http://bugs.python.org/issue2636, specifically from http://bugs.python.org/issue2636#msg90954. I've included a .pyd file for Python 2.6 on Windows if you want

Re: New implementation of re module

2009-07-27 Thread Aahz
In article mailman.3787.1248712420.8015.python-l...@python.org, MRAB pyt...@mrabarnett.plus.com wrote: I've been working on a new implementation of the re module. The details are at http://bugs.python.org/issue2636, specifically from http://bugs.python.org/issue2636#msg90954. I've included

Re: New implementation of re module

2009-07-27 Thread OKB (not okblacke)
MRAB wrote: http://bugs.python.org/issue2636#msg90954 Variable-length lookbehind! My hero! -- --OKB (not okblacke) Brendan Barnwell Do not follow where the path may lead. Go, instead, where there is no path, and leave a trail. --author unknown --