def __init__(self, site_info, items):

        self.site_info = SiteInfo(site_info)
        """
        Metadata from the <siteinfo> tag :
        :class:`~mwxml.iteration.site_info.SiteInfo`
        """

        # Should be a lazy generator of page info
        self.items = items or range(0)
        """
        An iterator of :class:`mwxml.Page` and/or
        :class:`mwxml.LogItem` elements
        """
        self.pages = (item for item in items if isinstance(item, Page))
        "An iterator of :class:`mwxml.Page` elements"
        self.log_items = (item for item in items if isinstance(item, LogItem))
        "An iterator of :class:`mwxml.LogItem` elements"
def __init__ ( self , site_info , items ) : self . site_info = SiteInfo ( site_info ) self . items = items or range ( 0 ) self . pages = ( item for item in items if isinstance ( item , Page ) ) self . log_items = ( item for item in items if isinstance ( item , LogItem ) )
Metadata from the <siteinfo> tag :
        :class:`~mwxml.iteration.site_info.SiteInfo`