Re: Regular Expression in Python 2.0

2002-08-03 Thread Christian Tismer
Phil Harris wrote: > Ooops, change stackless.org to stackless.com in my last message. Heck, thanks for the suggestion of stackless.org !!! -- Christian Tismer :^) Mission Impossible 5oftware : Have a break! Take a ride on Python's Johannes-Niemeyer-

Re: Regular Expression in Python 2.0

2001-02-01 Thread David Niergarth
on 1/31/01 9:14 AM, Trent Mick at [EMAIL PROTECTED] wrote: > Using stackless might help. Either way you should report this to > [EMAIL PROTECTED] where Fredrik Lundt, the guy who implemented the new > regex engine (sre) in Python 2.0, will be listening. He should be able to give > you a more auth

Re: Regular Expression in Python 2.0

2001-01-31 Thread Markus Schönhaber
> > re = pre # Avoids the need of changing existing code > > or that can be shortened to > > import pre as re Hey, learned something new! Thanks. Gruß Markus ___ ActivePython mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman

Re: Regular Expression in Python 2.0

2001-01-31 Thread Trent Mick
> #import re # comment out this line - new regexp (implicitly loads "sre" I > think) > import pre # the python 1.5 implementation of regexp > > re = pre # Avoids the need of changing existing code or that can be shortened to import pre as re Cheers, Trent -- Trent Mick [EMAIL PROTECTED

Re: Regular Expression in Python 2.0

2001-01-31 Thread Markus Schönhaber
> Python 2.0: > When I use regular expression with rather big file (150,000 byte), I > get error: "RuntimeError: maximum recursion limit exceeded" > > But on Pytnon 1.52 in the same situation it's OK. Maybe you are using non-greedy regexps - i. e. something like 'a*?'. It is a known bug that they

RE: Regular Expression in Python 2.0

2001-01-31 Thread Houman G
> On Wed, Jan 31, 2001 at 12:57:26PM +0300, Karpov Denis > Sergeevic wrote: > > Python 2.0: > > When I use regular expression with rather big file (150,000 byte), I > > get error: "RuntimeError: maximum recursion limit exceeded" > > > > But on Pytnon 1.52 in the same situation it's OK. > > > > May

Re: Regular Expression in Python 2.0

2001-01-31 Thread Trent Mick
On Wed, Jan 31, 2001 at 12:57:26PM +0300, Karpov Denis Sergeevic wrote: > Python 2.0: > When I use regular expression with rather big file (150,000 byte), I > get error: "RuntimeError: maximum recursion limit exceeded" > > But on Pytnon 1.52 in the same situation it's OK. > > Maybe because stack

Re: Regular Expression in Python 2.0

2001-01-31 Thread Phil Harris
Ooops, change stackless.org to stackless.com in my last message. On Wed, 31 Jan 2001 12:57:26 +0300, I seem to recall, ëÁÒÐÏ× <ëÁÒÐÏ× äÅÎÉÓ óÅÒÇÅÅ×ÉÞ <[EMAIL PROTECTED]>> scrawled something like: > Python 2.0: > When I use regular expression with rather big file (150,000 byte), I > get error: "

Re: Regular Expression in Python 2.0

2001-01-31 Thread Phil Harris
Dennis, Did you change your py152 to use the stackless variant of the executable? http://www.stackless.org You can also get a stackless version of py20, that may help. Phil On Wed, 31 Jan 2001 12:57:26 +0300, I seem to recall, ëÁÒÐÏ× <ëÁÒÐÏ× äÅÎÉÓ óÅÒÇÅÅ×ÉÞ <[EMAIL PROTECTED]>> scrawled som