Mpaa created this task. Mpaa added a subscriber: Mpaa. Mpaa added a project: pywikibot-core. Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION ``` import pywikibot
site = pywikibot.Site('en', 'wikipedia') cat = pywikibot.Category(site, "Category:French writers")
cats = cat.subcategories(total=3) for c in enumerate(cats): print c
cats1 = cat.subcategories() for c in enumerate(cats1): print c ``` gives: (0, Category(Category:French Guianan writers)) (1, Category(Category:French Polynesian writers)) (2, Category(Category:Guadeloupean writers))
(0, Category(Category:French Guianan writers)) (1, Category(Category:French Polynesian writers)) (2, Category(Category:Guadeloupean writers))
while the category has 26 subcategories instead.
TASK DETAIL https://phabricator.wikimedia.org/T88217
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Mpaa Cc: pywikipedia-bugs, Aklapper, Mpaa, jayvdb
Mpaa added a comment.
There is also a lot of repetition in members(), articles() and subcategories(). There should be one general function and the others two defined in terms of the general one.
TASK DETAIL https://phabricator.wikimedia.org/T88217
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Mpaa Cc: pywikipedia-bugs, Aklapper, Mpaa, jayvdb
pywikipedia-bugs@lists.wikimedia.org