Xqt closed this task as "Resolved".
Xqt claimed this task.
Xqt added a comment.

Does not occure anymore:

>>> import pwb, pywikibot as py
>>> from pywikibot.pagegenerators import PrefixingPageGenerator
>>> ppg = PrefixingPageGenerator('a', step=2, total=3)

WARNING: __main__:2: DeprecationWarning: step argument of pywikibot.pagegenerators.PrefixingPageGenerator is deprecated.

>>> for _ in range(3):
	print list(ppg)

	
[Page(A), Page(A!B!C Titans Berg. Land), Page(A$)]
[Page(A), Page(A!B!C Titans Berg. Land), Page(A$)]
[Page(A), Page(A!B!C Titans Berg. Land), Page(A$)]

or with step parameter:

>>> import pwb, pywikibot as py
>>> from pywikibot.pagegenerators import PrefixingPageGenerator
>>> ppg = PrefixingPageGenerator('a', total=3)
>>> from pywikibot import config
>>> config.step = 2
>>> for _ in range(3):
	print list(ppg)

	
[Page(A), Page(A!B!C Titans Berg. Land), Page(A$)]
[Page(A), Page(A!B!C Titans Berg. Land), Page(A$)]
[Page(A), Page(A!B!C Titans Berg. Land), Page(A$)]
>>>

TASK DETAIL
https://phabricator.wikimedia.org/T85204

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt
Cc: Xqt, Dvorapa, jayvdb, Daviskr, valhallasw, Aklapper, pywikibot-bugs-list, Magul, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, Dalba, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to