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 Callipygean
Recipients Callipygean, Windson Yang, ezio.melotti, mrabarnett, steven.daprano
Date 2018-11-02.15:24:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAKeNK3qPi4Cs4x-f1kFo6c+dfK3DdSmpU8rBK+yrNx2UcvrR6A@mail.gmail.com>
In-reply-to <1541168499.13.0.788709270274.issue35146@psf.upfronthosting.co.za>
Content
Yes I realised that, as I said earlier.  But it could say, "Invalid regular
expression" and not produce ten lines of error messages.

On Fri, 2 Nov 2018 at 14:21, Steven D'Aprano <report@bugs.python.org> wrote:

>
> Steven D'Aprano <steve+python@pearwood.info> added the comment:
>
> This is not a bug in Python, it is an invalid (broken) regular expression.
> There is nothing that the interpreter or the regular expression engine can
> do, because you are telling it to do something that makes no sense. What do
> you expect findall to find, if you ask it to find something nonsensical?
>
> You say:
>
> "repeat this pattern any number of times"
>
> but there is no "this pattern" to be repeated. You are asking for
> something impossible. The only legitimate response is to report back that
> the regular expression is invalid and cannot be compiled, and fail
> immediately.
>
> ----------
> nosy: +steven.daprano
> resolution:  -> not a bug
> stage:  -> resolved
> status: open -> closed
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue35146>
> _______________________________________
>
History
Date User Action Args
2018-11-02 15:24:59Callipygeansetrecipients: + Callipygean, ezio.melotti, mrabarnett, steven.daprano, Windson Yang
2018-11-02 15:24:59Callipygeanlinkissue35146 messages
2018-11-02 15:24:59Callipygeancreate