Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #20425
| References | <CABicbJLzLM9As_Ji3EV3kZoV_5_OS129jnFdzZtbgBQTiNBDQA@mail.gmail.com> <CAHzaPEMbxr9K9i_qUouAmrk3VVm0_W23tL_z+9RxO1SQiLOxJA@mail.gmail.com> <CABicbJLpyVhDJfq7omb1n1UnwZoGt3NCJ+fdG8nvHh+a2m5BbA@mail.gmail.com> <4F3AA287.9070604@mrabarnett.plus.com> |
|---|---|
| From | Devin Jeanpierre <jeanpierreda@gmail.com> |
| Date | 2012-02-14 20:43 -0500 |
| Subject | Re: re module: Nothing to repeat, but no sre_constants.error: nothing to repeat ? |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.5816.1329270228.27778.python-list@python.org> (permalink) |
On Tue, Feb 14, 2012 at 1:05 PM, MRAB <python@mrabarnett.plus.com> wrote: >> And yeah, even something as crazy as ()* works, but as soon as it >> becomes (a*)* it doesn't work. Weird. >> > I think it's a combination of warning the user about something that's > pointless, > as in the case of "$*", and producing a pattern which could cause the > internal > regex engine to get stuck in an infinite loop. Considering that ()* works fine, I can't imagine it ever gets stuck in infinite loops. But I admit I am too lazy to check against the interpreter. Also, complete failure is an exceptionally (heh) poor way of warning people about stuff. I hope that's not really it. -- Devin
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: re module: Nothing to repeat, but no sre_constants.error: nothing to repeat ? Devin Jeanpierre <jeanpierreda@gmail.com> - 2012-02-14 20:43 -0500
csiph-web