Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #20440

Re: re module: Nothing to repeat, but no sre_constants.error: nothing to repeat ?

References (1 earlier) <CAHzaPEMbxr9K9i_qUouAmrk3VVm0_W23tL_z+9RxO1SQiLOxJA@mail.gmail.com> <CABicbJLpyVhDJfq7omb1n1UnwZoGt3NCJ+fdG8nvHh+a2m5BbA@mail.gmail.com> <4F3AA287.9070604@mrabarnett.plus.com> <CABicbJ+sgDMGsRbb6p+b_Y3ZyBdgbHfaFrK1u_1Lo9Lqr0003A@mail.gmail.com> <4F3B13B9.2010108@mrabarnett.plus.com>
From Devin Jeanpierre <jeanpierreda@gmail.com>
Date 2012-02-15 08:43 -0500
Subject Re: re module: Nothing to repeat, but no sre_constants.error: nothing to repeat ?
Newsgroups comp.lang.python
Message-ID <mailman.5828.1329313467.27778.python-list@python.org> (permalink)

Show all headers | View raw


On Tue, Feb 14, 2012 at 9:08 PM, MRAB <python@mrabarnett.plus.com> wrote:
> There is one place in the re engine where it tries to avoid getting
> stuck in an infinite loop because of a zero-width match, but the fix
> inadvertently causes another bug. It's described in issue #1647489.

Just read the issue. Interesting, didn't know that was a bug rather
than deliberate behavior. The other behavior (only match empty space
once) makes more sense though. Thanks for linking.

Still, that's for avoiding infinite loops in finditer/findall, not
match/search :S

-- Devin

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: re module: Nothing to repeat, but no sre_constants.error: nothing to repeat ? Devin Jeanpierre <jeanpierreda@gmail.com> - 2012-02-15 08:43 -0500

csiph-web