This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Raphaël Riel
Recipients Raphaël Riel, ezio.melotti, mrabarnett
Date 2017-10-11.14:56:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1507733773.23.0.213398074469.issue31759@psf.upfronthosting.co.za>
In-reply-to
Content
re won't raise nor return when working with Runaway Regular Expression.
It will compute "almost" indefinitely. Although I'm pretty sure it *may* complete sometime, it's definetly looks like it's stuck.

```
> python -VVVV
Python 3.6.2 (default, Aug 23 2017, 14:57:08)
[GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.42)]
```

Reproduce with attached file.

Should there be a (configurable?) limit on the number of steps involved in the process.
Or some warnings and/or hard limit that raises exception?

https://pythex.org/ will fail with a HTTP502 BadGateway (server taking too long to respond)
https://regex101.com/ python's tester seems to set a limit for this case. I can't say how they managed this.
History
Date User Action Args
2017-10-11 14:56:13Raphaël Rielsetrecipients: + Raphaël Riel, ezio.melotti, mrabarnett
2017-10-11 14:56:13Raphaël Rielsetmessageid: <1507733773.23.0.213398074469.issue31759@psf.upfronthosting.co.za>
2017-10-11 14:56:13Raphaël Riellinkissue31759 messages
2017-10-11 14:56:13Raphaël Rielcreate