https://bugzilla.wikimedia.org/show_bug.cgi?id=54999

Maarten Dammers <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #4 from Maarten Dammers <[email protected]> ---
Looks like this generator has been implemented:

def PreloadingItemGenerator(generator, step=50):
    """
    Yield preloaded pages taken from another generator.

    Function basically is copied from above, but for ItemPage's

    @param generator: pages to iterate over
    @param step: how many pages to preload at once
    """

But it contains a bug: The documentation says it expects a page generator, but
in reality it expect an itempage generator.

It should probably contain some logic to check for each page if it's an
ItemPage already and otherwise make an itempage (like in WikidataItemGenerator)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to