I got a mail from Gerrit with the above subject.
Just to put my 2 cents: while this change may help the regex to be more
readable, such changes in high-scale may harden the transforming of regexes
between Pywikibot format and AWB format, and we have a Phab ticket about
the cooperation. As we use more Python-specific regexes, the Pywikibot
users and AWB uers may be able to help each other less on bot owners'
noticeboards.
This is not a critics, just a point of view which may worth to consider.
--
Bináris
Show replies by date
Hi,
The phab ticket T101591 is indefinite and I’ve no glue what to do there and that task is
more or less useless. There should be single steps we can work on.
There was one task to implement CI tests with IronPython but neither GitHub action nor
AppVeyor nor Jenkins supports it. Finally I have declined it after 7 years.
Porting fullmatch usage to js is very easy but we have also finditer(), findall(),
verbosity, named groups etc. which is not supported by js but I am against giving it up
for compatibility.
Or does someone care about php linktrail regexes how they can be converted to Python?
What about other functions and methods e.g. textlib, tools.chars, removeprefix/suffix and
other stuff?
Maybe there are tools, libraries or how-tos to convert one regex to the other, surely one
can find some hints. But personally I do not see any good reason to force compatible
regexes by accepting unreadable, ugly and error-prone code. Moreover this would be useless
at the moment as long as there is no further task which makes the undetermined cooperation
more concretely.
Best
xqt
> Am 26.12.2022 um 11:22 schrieb Bináris <wikiposta(a)gmail.com>om>:
>
>
> I got a mail from Gerrit with the above subject.
>
> Just to put my 2 cents: while this change may help the regex to be more readable,
such changes in high-scale may harden the transforming of regexes between Pywikibot format
and AWB format, and we have a Phab ticket about the cooperation. As we use more
Python-specific regexes, the Pywikibot users and AWB uers may be able to help each other
less on bot owners' noticeboards.
>
> This is not a critics, just a point of view which may worth to consider.
> --
> Bináris
> _______________________________________________
> pywikibot mailing list -- pywikibot(a)lists.wikimedia.org
> To unsubscribe send an email to pywikibot-leave(a)lists.wikimedia.org