User Details
- User Since
- Nov 16 2014, 1:34 PM (497 w, 2 d)
- Availability
- Available
- IRC Nick
- xqt
- LDAP User
- Xqt
- MediaWiki User
- Xqt [ Global Accounts ]
Today
@Soda: I just removed phetools from proofreadPage because it is not functional anyway.
Yesterday
I propose to remove all H23 test because they are for Python 2 I guess.
I am setting up a private wiki for test purposes and will investigate deeper in this matter.
What a huge and great patch, thanks a lot. I'll try to review it soon.
Sun, May 26
Waiting for upstream.
The shell script is no longer used but the tests still fails. See the other issue T363651.
@Aram: nice idea but isn't welcome.py obsolete if this extension is installed on a site?
Reopened after patch revert due to T365942
Stalled until Pillow 10.4 is released in July.
Sat, May 25
Wed, May 22
Was ist for 15, 30, 45, 60, 120, 180, 240, 300 seconds or sth else?
Tue, May 21
The preleading PS gave me that hint
PSC:\Pywikibot> ...
Using empty strings with PS
Try the follwing example invoking the Python command shell.
@Aram: I see, you are using Powershell to invoke the python command. I was able to reproduce the reported behavior with Powershell and it seems that PS ignores empty strings. Please use the cmd comand propt and it will work as expected.
What is the behaviour and the log with Python 3.12 without escaping?
Just an idea to circumvent this sys.argv problem is to use a preleading linespace but does not work if the template is in the first line on the page:
Does an escaping work:
python pwb.py -simulate replace -page:ئانیشک -site:wiktionary:ckb -regex "{{wikipedia}}\n?" \"\" -summary:"Replace test"
Mon, May 20
Really strange, the empty string is lost in sys.args. What is your Windows version?
@Rubin: I guess this is made by the {{примечания}} template wich adds this additional line; could you pleas check it?
@Aram: please run the following command for tests:
The regression was introduced with Pywikibot 8.1 (see above). Previous runs were 30 times faster for the first time and 300 times for the second. The patch above fastens up the second call but the api calls seems sequentiell instead of simultaneously which would be expected with concurrent.futures.
Hi @ericpien: I think preload_sites script is a good measurement. After collecting the siteinfo (and after Pywikibot 8.1 userinfo) the second call must much more faster. Thank you for your patch but I would suggest to use the already implemented CachedRequest to cache the userinfo which is already used for siteinfo. The advantage is that parallel running task will also benefit from it. At userinfo method the cached request can be implemented like
Sun, May 19
Sat, May 18
Fri, May 17
The design of Page.templates() as well as Page.itertemplates() are incluenced from compat version where only templates (ns 10) are given. That might be the reason why those both page methods do not support a namespaces parameter like pagetemplates do and the documentation also has only templates in mind: Return a list of/Iterate Page objects for templates used on this Page. Template parameters are ignored. This method only returns embedded templates, ...
Thu, May 16
Tue, May 14
Mon, May 13
Sun, May 12
I just noticed that replace.py script of pywikibot can't replace your pattern with null.
No it works with empty pattern like this but I guess there is somethin wrong with the generator. For example tr the following command